2018-04-12 01:23:35 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2018-04-12 01:23:35 +02:00
|
|
|
Copyright 2016 OpenMarket Ltd
|
|
|
|
|
2024-09-09 15:57:16 +02: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 01:23:35 +02:00
|
|
|
*/
|
|
|
|
|
2022-02-09 11:51:12 +01:00
|
|
|
.mx_GenericEventListSummary {
|
2018-04-12 01:23:35 +02:00
|
|
|
position: relative;
|
2022-06-28 15:05:19 +02:00
|
|
|
|
2022-07-07 14:01:37 +02:00
|
|
|
.mx_GenericEventListSummary_avatars {
|
|
|
|
margin-right: $spacing-8;
|
|
|
|
}
|
|
|
|
|
2023-03-24 13:57:32 +01:00
|
|
|
.mx_GenericEventListSummary_spacer {
|
|
|
|
border-bottom: 1px solid $primary-hairline-color;
|
2023-06-06 16:03:52 +02:00
|
|
|
margin-left: 63px;
|
2023-03-24 13:57:32 +01:00
|
|
|
line-height: $font-30px; /* TODO: Use a variable */
|
|
|
|
|
|
|
|
.mx_IRCLayout & {
|
|
|
|
line-height: var(--line-height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-23 12:57:22 +02:00
|
|
|
.mx_GenericEventListSummary_toggle {
|
2024-01-02 19:56:39 +01:00
|
|
|
/* We reuse a title cased translation */
|
2023-08-23 12:57:22 +02:00
|
|
|
text-transform: lowercase;
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="irc"],
|
|
|
|
&[data-layout="group"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
|
|
float: right;
|
2022-07-07 14:01:37 +02:00
|
|
|
margin-inline: 0 10px;
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="group"] {
|
2022-07-07 14:01:37 +02:00
|
|
|
margin-top: $spacing-8;
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="bubble"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
--maxWidth: 70%;
|
2022-07-07 14:01:37 +02:00
|
|
|
display: flex;
|
2022-06-28 15:05:19 +02:00
|
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
|
|
|
|
2022-07-07 14:01:37 +02:00
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
|
|
margin-block: 0;
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[aria-expanded="false"] {
|
2022-07-27 15:39:29 +02:00
|
|
|
order: 9; /* TODO: Remove */
|
2022-07-07 14:01:37 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[aria-expanded="true"] {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-inline-start: auto; /* reduce clickable area */
|
|
|
|
margin-inline-end: var(--EventTile_bubble-margin-inline-end); /* as the parent has zero margin */
|
2022-07-07 14:01:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-24 13:57:32 +01:00
|
|
|
.mx_GenericEventListSummary_spacer {
|
2022-07-07 14:01:37 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-expanded="false"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
align-items: center;
|
2022-07-06 12:16:24 +02:00
|
|
|
justify-content: space-between;
|
|
|
|
column-gap: 5px;
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* ideally we'd use display=contents here for the layout to all work regardless of the *ELS but */
|
|
|
|
/* that breaks ScrollPanel's reliance upon offsetTop so we have to have a bit more finesse. */
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-expanded="true"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
flex-direction: column;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2022-07-07 14:01:37 +02:00
|
|
|
}
|
2022-06-28 15:05:19 +02:00
|
|
|
|
2022-07-07 14:01:37 +02:00
|
|
|
.mx_MatrixChat_useCompactLayout & {
|
|
|
|
font-size: $font-13px;
|
|
|
|
margin-top: $spacing-4;
|
2022-06-28 15:05:19 +02:00
|
|
|
|
2022-07-07 14:01:37 +02:00
|
|
|
.mx_EventTile_line {
|
2023-06-29 12:30:25 +02:00
|
|
|
line-height: 1.25;
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
|
2023-03-24 13:57:32 +01:00
|
|
|
.mx_GenericEventListSummary_spacer {
|
2023-06-29 12:30:25 +02:00
|
|
|
line-height: 1.375;
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
|
2022-07-07 14:01:37 +02:00
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-29 12:30:25 +02:00
|
|
|
|
|
|
|
/* Make all state events one order smaller than the other events */
|
|
|
|
.mx_EventTile {
|
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2023-07-12 19:46:49 +02:00
|
|
|
color: $secondary-content;
|
2023-06-29 12:30:25 +02:00
|
|
|
}
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2022-02-17 12:46:19 +01:00
|
|
|
.mx_GenericEventListSummary_unstyledList {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-09 11:51:12 +01:00
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2018-04-12 01:23:35 +02:00
|
|
|
display: inline-flex;
|
2023-07-12 19:46:49 +02:00
|
|
|
color: $secondary-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2022-02-09 11:51:12 +01:00
|
|
|
.mx_GenericEventListSummary_avatars {
|
2018-04-12 01:23:35 +02:00
|
|
|
display: inline-block;
|
2020-03-31 16:26:23 +02:00
|
|
|
line-height: $font-12px;
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2022-07-07 14:01:37 +02:00
|
|
|
.mx_BaseAvatar {
|
|
|
|
margin-right: -4px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|