Files
ThreadNet-Web/res/css/views/elements/_GenericEventListSummary.pcss
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

134 lines
3.2 KiB
Plaintext
Raw Normal View History

/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
Copyright 2016 OpenMarket Ltd
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
*/
.mx_GenericEventListSummary {
position: relative;
.mx_GenericEventListSummary_avatars {
margin-right: $spacing-8;
}
.mx_GenericEventListSummary_spacer {
border-bottom: 1px solid $primary-hairline-color;
margin-left: 63px;
line-height: $font-30px; /* TODO: Use a variable */
.mx_IRCLayout & {
line-height: var(--line-height);
}
}
.mx_GenericEventListSummary_toggle {
2024-01-02 18:56:39 +00:00
/* We reuse a title cased translation */
text-transform: lowercase;
}
2022-07-15 14:53:23 +01:00
&[data-layout="irc"],
&[data-layout="group"] {
.mx_GenericEventListSummary_toggle {
float: right;
margin-inline: 0 10px;
}
}
2022-07-15 14:53:23 +01:00
&[data-layout="group"] {
margin-top: $spacing-8;
}
2022-07-15 14:53:23 +01:00
&[data-layout="bubble"] {
--maxWidth: 70%;
display: flex;
margin-left: calc(var(--avatarSize) + var(--gutterSize));
.mx_GenericEventListSummary_toggle {
margin-block: 0;
2022-07-15 14:53:23 +01:00
&[aria-expanded="false"] {
order: 9; /* TODO: Remove */
}
2022-07-15 14:53:23 +01:00
&[aria-expanded="true"] {
margin-inline-start: auto; /* reduce clickable area */
margin-inline-end: var(--EventTile_bubble-margin-inline-end); /* as the parent has zero margin */
}
}
.mx_GenericEventListSummary_spacer {
display: none;
}
2022-07-15 14:53:23 +01:00
&[data-expanded="false"] {
align-items: center;
justify-content: space-between;
column-gap: 5px;
}
/* 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 14:53:23 +01:00
&[data-expanded="true"] {
flex-direction: column;
margin: 0;
}
&::after {
content: "";
clear: both;
}
&:hover {
&::before {
background: transparent;
}
}
}
.mx_MatrixChat_useCompactLayout & {
font-size: $font-13px;
margin-top: $spacing-4;
.mx_EventTile_line {
2023-06-29 11:30:25 +01:00
line-height: 1.25;
}
.mx_GenericEventListSummary_spacer {
2023-06-29 11:30:25 +01:00
line-height: 1.375;
}
.mx_TextualEvent.mx_GenericEventListSummary_summary {
2023-06-29 11:30:25 +01:00
font: var(--cpd-font-body-sm-regular);
}
}
2023-06-29 11:30:25 +01:00
/* Make all state events one order smaller than the other events */
.mx_EventTile {
font: var(--cpd-font-body-sm-regular);
2023-07-12 18:46:49 +01:00
color: $secondary-content;
2023-06-29 11:30:25 +01:00
}
}
2022-02-17 11:46:19 +00:00
.mx_GenericEventListSummary_unstyledList {
list-style: none;
padding: 0;
}
.mx_TextualEvent.mx_GenericEventListSummary_summary {
2023-06-29 11:30:25 +01:00
font: var(--cpd-font-body-sm-regular);
display: inline-flex;
2023-07-12 18:46:49 +01:00
color: $secondary-content;
}
.mx_GenericEventListSummary_avatars {
display: inline-block;
2020-03-31 15:26:23 +01:00
line-height: $font-12px;
.mx_BaseAvatar {
margin-right: -4px;
cursor: pointer;
}
}