2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget {
|
|
|
|
margin-top: 15px;
|
|
|
|
margin-right: 15px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
display: flex;
|
2021-07-22 19:10:25 +08:00
|
|
|
border-left: 2px solid $preview-widget-bar-color;
|
|
|
|
border-radius: 2px;
|
2021-11-29 20:52:09 +08:00
|
|
|
color: $info-plinth-fg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_image {
|
|
|
|
flex: 0 0 100px;
|
|
|
|
margin-left: 15px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_caption {
|
|
|
|
margin-left: 15px;
|
|
|
|
flex: 1 1 auto;
|
2021-07-22 23:48:17 +08:00
|
|
|
overflow: hidden; // cause it to wrap rather than clip
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_title {
|
|
|
|
font-weight: bold;
|
|
|
|
white-space: normal;
|
2021-07-08 20:16:58 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-09 21:50:55 +08:00
|
|
|
.mx_LinkPreviewWidget_siteName {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_description {
|
|
|
|
margin-top: 8px;
|
|
|
|
white-space: normal;
|
|
|
|
word-wrap: break-word;
|
2021-07-08 20:16:58 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
-webkit-box-orient: vertical;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
|
|
|
.mx_LinkPreviewWidget {
|
|
|
|
margin-top: 6px;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
|
|
|
}
|