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 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
|
|
|
*/
|
|
|
|
|
2022-02-09 18:51:12 +08:00
|
|
|
.mx_GenericEventListSummary {
|
2018-04-12 07:23:35 +08:00
|
|
|
position: relative;
|
2022-06-28 21:05:19 +08:00
|
|
|
|
2022-07-07 20:01:37 +08:00
|
|
|
.mx_GenericEventListSummary_avatars {
|
|
|
|
margin-right: $spacing-8;
|
|
|
|
}
|
|
|
|
|
2023-03-24 20:57:32 +08:00
|
|
|
.mx_GenericEventListSummary_spacer {
|
|
|
|
border-bottom: 1px solid $primary-hairline-color;
|
2023-06-06 22:03:52 +08:00
|
|
|
margin-left: 63px;
|
2023-03-24 20:57:32 +08:00
|
|
|
line-height: $font-30px; /* TODO: Use a variable */
|
|
|
|
|
|
|
|
.mx_IRCLayout & {
|
|
|
|
line-height: var(--line-height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-23 18:57:22 +08:00
|
|
|
.mx_GenericEventListSummary_toggle {
|
2024-01-03 02:56:39 +08:00
|
|
|
/* We reuse a title cased translation */
|
2023-08-23 18:57:22 +08:00
|
|
|
text-transform: lowercase;
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[data-layout="irc"],
|
|
|
|
&[data-layout="group"] {
|
2022-06-28 21:05:19 +08:00
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
|
|
float: right;
|
2022-07-07 20:01:37 +08:00
|
|
|
margin-inline: 0 10px;
|
2022-06-28 21:05:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[data-layout="group"] {
|
2022-07-07 20:01:37 +08:00
|
|
|
margin-top: $spacing-8;
|
2022-06-28 21:05:19 +08:00
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[data-layout="bubble"] {
|
2022-06-28 21:05:19 +08:00
|
|
|
--maxWidth: 70%;
|
2022-07-07 20:01:37 +08:00
|
|
|
display: flex;
|
2022-06-28 21:05:19 +08:00
|
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
|
|
|
|
2022-07-07 20:01:37 +08:00
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
|
|
margin-block: 0;
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[aria-expanded="false"] {
|
2022-07-27 21:39:29 +08:00
|
|
|
order: 9; /* TODO: Remove */
|
2022-07-07 20:01:37 +08:00
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[aria-expanded="true"] {
|
2022-07-27 21:39:29 +08: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 20:01:37 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-24 20:57:32 +08:00
|
|
|
.mx_GenericEventListSummary_spacer {
|
2022-07-07 20:01:37 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[data-expanded="false"] {
|
2022-06-28 21:05:19 +08:00
|
|
|
align-items: center;
|
2022-07-06 18:16:24 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
column-gap: 5px;
|
2022-06-28 21:05:19 +08:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08: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 21:53:23 +08:00
|
|
|
&[data-expanded="true"] {
|
2022-06-28 21:05:19 +08:00
|
|
|
flex-direction: column;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2022-07-07 20:01:37 +08:00
|
|
|
}
|
2022-06-28 21:05:19 +08:00
|
|
|
|
2022-07-07 20:01:37 +08:00
|
|
|
.mx_MatrixChat_useCompactLayout & {
|
|
|
|
font-size: $font-13px;
|
|
|
|
margin-top: $spacing-4;
|
2022-06-28 21:05:19 +08:00
|
|
|
|
2022-07-07 20:01:37 +08:00
|
|
|
.mx_EventTile_line {
|
2023-06-29 18:30:25 +08:00
|
|
|
line-height: 1.25;
|
2022-06-28 21:05:19 +08:00
|
|
|
}
|
|
|
|
|
2023-03-24 20:57:32 +08:00
|
|
|
.mx_GenericEventListSummary_spacer {
|
2023-06-29 18:30:25 +08:00
|
|
|
line-height: 1.375;
|
2022-06-28 21:05:19 +08:00
|
|
|
}
|
|
|
|
|
2022-07-07 20:01:37 +08:00
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2022-06-28 21:05:19 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-29 18:30:25 +08:00
|
|
|
|
|
|
|
/* Make all state events one order smaller than the other events */
|
|
|
|
.mx_EventTile {
|
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2023-07-13 01:46:49 +08:00
|
|
|
color: $secondary-content;
|
2023-06-29 18:30:25 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-02-17 19:46:19 +08:00
|
|
|
.mx_GenericEventListSummary_unstyledList {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-09 18:51:12 +08:00
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2018-04-12 07:23:35 +08:00
|
|
|
display: inline-flex;
|
2023-07-13 01:46:49 +08:00
|
|
|
color: $secondary-content;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-02-09 18:51:12 +08:00
|
|
|
.mx_GenericEventListSummary_avatars {
|
2018-04-12 07:23:35 +08:00
|
|
|
display: inline-block;
|
2020-03-31 22:26:23 +08:00
|
|
|
line-height: $font-12px;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-07 20:01:37 +08:00
|
|
|
.mx_BaseAvatar {
|
|
|
|
margin-right: -4px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|