2022-04-27 17:10:27 +00:00
|
|
|
/*
|
2024-09-09 13:57:16 +00:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2022-04-27 17:10:27 +00:00
|
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 13:57:16 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2022-04-27 17:10:27 +00:00
|
|
|
*/
|
|
|
|
|
2022-07-04 19:07:50 +00:00
|
|
|
.mx_ThreadSummary,
|
|
|
|
.mx_ThreadSummary_content {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummary,
|
|
|
|
.mx_ThreadSummary_icon {
|
|
|
|
margin-top: $spacing-8;
|
|
|
|
}
|
2022-04-27 17:10:27 +00:00
|
|
|
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
min-width: 267px;
|
2022-07-27 13:39:29 +00:00
|
|
|
/* leave space on both left & right gutters */
|
2022-07-15 13:53:23 +00:00
|
|
|
max-width: min(calc(100% - var(--EventTile_group_line-spacing-inline-start)), 600px);
|
2022-04-27 17:10:27 +00:00
|
|
|
width: fit-content;
|
|
|
|
height: 40px;
|
|
|
|
position: relative;
|
2023-07-12 17:46:49 +00:00
|
|
|
background-color: $panels;
|
2022-07-04 19:07:50 +00:00
|
|
|
padding-inline: $spacing-12 $spacing-16;
|
2022-04-27 17:10:27 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-07-04 19:07:50 +00:00
|
|
|
justify-content: flex-start;
|
2022-04-27 17:10:27 +00:00
|
|
|
border-radius: 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
clear: both;
|
|
|
|
overflow: hidden;
|
2023-07-12 17:46:49 +00:00
|
|
|
border: 1px solid $panels; /* always render a border so the hover effect doesn't require a re-layout */
|
2023-08-01 10:31:21 +00:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2022-04-27 17:10:27 +00:00
|
|
|
|
|
|
|
.mx_ThreadSummary_chevron {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 60px;
|
|
|
|
box-sizing: border-box;
|
2023-07-12 17:46:49 +00:00
|
|
|
/* XXX: We use an HEXA `transparent` to work around a Safari <15.4 bug */
|
2022-04-27 17:10:27 +00:00
|
|
|
background: linear-gradient(270deg, $system 50%, $system-transparent 100%);
|
|
|
|
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(60px);
|
2022-12-12 11:24:14 +00:00
|
|
|
transition: all 0.1s ease-in-out;
|
2022-04-27 17:10:27 +00:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
content: "";
|
2022-04-27 17:10:27 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
2024-11-07 11:39:18 +00:00
|
|
|
right: var(--cpd-space-1x);
|
2022-04-27 17:10:27 +00:00
|
|
|
transform: translateY(-50%);
|
2024-11-07 11:39:18 +00:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/chevron-right.svg");
|
2022-04-27 17:10:27 +00:00
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: $quinary-content;
|
|
|
|
|
|
|
|
.mx_ThreadSummary_chevron {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-04 19:07:50 +00:00
|
|
|
.mx_ThreadSummary_sender,
|
|
|
|
.mx_ThreadSummary_content,
|
|
|
|
.mx_ThreadSummary_replies_amount {
|
|
|
|
line-height: var(--EventTile_ThreadSummary-line-height);
|
|
|
|
}
|
2022-04-27 17:10:27 +00:00
|
|
|
|
2022-07-04 19:07:50 +00:00
|
|
|
.mx_ThreadSummary_sender,
|
|
|
|
.mx_ThreadSummary_content {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2022-04-27 17:10:27 +00:00
|
|
|
|
2022-07-04 19:07:50 +00:00
|
|
|
.mx_ThreadSummary_sender {
|
2023-06-29 10:30:25 +00:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-07-04 19:07:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummary_content {
|
|
|
|
margin-left: $spacing-4;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummary_replies_amount {
|
|
|
|
@mixin ThreadRepliesAmount;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessagePanel_narrow & {
|
|
|
|
min-width: initial;
|
2022-07-27 13:39:29 +00:00
|
|
|
max-width: 100%; /* prevent overflow */
|
2022-07-04 19:07:50 +00:00
|
|
|
width: initial;
|
|
|
|
}
|
2022-04-27 17:10:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummary_avatar {
|
2022-04-29 11:03:39 +00:00
|
|
|
margin-inline-end: $spacing-8;
|
2023-08-30 11:47:35 +00:00
|
|
|
flex-shrink: 0;
|
2022-04-27 17:10:27 +00:00
|
|
|
}
|
2022-07-04 19:07:50 +00:00
|
|
|
|
|
|
|
.mx_ThreadSummary_icon {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: $spacing-8;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
@mixin ThreadSummaryIcon;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-inline-end: $spacing-8;
|
|
|
|
margin-top: -2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a& {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|