2018-04-12 07:23:35 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2018-04-12 07:23:35 +08:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
2024-09-09 21:57:16 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2018-04-12 07:23:35 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget {
|
2022-07-04 14:10:46 +08:00
|
|
|
margin: $spacing-16 0 $spacing-16 auto;
|
2018-04-12 07:23:35 +08:00
|
|
|
display: flex;
|
2022-07-04 14:10:46 +08:00
|
|
|
column-gap: $spacing-4;
|
|
|
|
border-inline-start: 2px solid $preview-widget-bar-color;
|
2021-07-22 19:10:25 +08:00
|
|
|
border-radius: 2px;
|
2021-11-29 20:52:09 +08:00
|
|
|
color: $info-plinth-fg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-04 14:10:46 +08:00
|
|
|
.mx_MatrixChat_useCompactLayout & {
|
|
|
|
margin-top: 6px;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Exclude mx_LinkPreviewGroup_hide from wrapping */
|
2022-07-04 14:10:46 +08:00
|
|
|
.mx_LinkPreviewWidget_wrapImageCaption {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
row-gap: $spacing-8;
|
2022-08-18 00:07:18 +08:00
|
|
|
flex: 1;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-04 14:10:46 +08:00
|
|
|
.mx_LinkPreviewWidget_image,
|
|
|
|
.mx_LinkPreviewWidget_caption {
|
|
|
|
margin-inline-start: $spacing-16;
|
2022-07-27 21:39:29 +08:00
|
|
|
min-width: 0; /* Prevent blowout */
|
2022-07-04 14:10:46 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-04 14:10:46 +08:00
|
|
|
.mx_LinkPreviewWidget_image {
|
|
|
|
flex: 0 0 100px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-04 14:10:46 +08:00
|
|
|
.mx_LinkPreviewWidget_caption {
|
|
|
|
flex: 1;
|
2022-07-27 21:39:29 +08:00
|
|
|
overflow: hidden; /* cause it to wrap rather than clip */
|
2022-07-04 14:10:46 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-04 14:10:46 +08:00
|
|
|
.mx_LinkPreviewWidget_title,
|
|
|
|
.mx_LinkPreviewWidget_description {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_title {
|
|
|
|
font-weight: bold;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_siteName {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LinkPreviewWidget_description {
|
|
|
|
margin-top: $spacing-8;
|
|
|
|
word-wrap: break-word;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
}
|