mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
139 lines
3.3 KiB
SCSS
139 lines
3.3 KiB
SCSS
/*
|
|
Copyright 2016 OpenMarket Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_GenericEventListSummary {
|
|
position: relative;
|
|
|
|
&[data-layout=irc],
|
|
&[data-layout=group] {
|
|
.mx_GenericEventListSummary_toggle {
|
|
float: right;
|
|
margin: 8px 10px 0 0;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_avatars {
|
|
padding-top: $spacing-8;
|
|
}
|
|
}
|
|
|
|
&[data-layout=irc] {
|
|
.mx_GenericEventListSummary_avatars {
|
|
padding: 0;
|
|
margin: 0 9px 0 0;
|
|
}
|
|
}
|
|
|
|
&[data-layout=bubble] {
|
|
--maxWidth: 70%;
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
|
|
|
&[data-expanded=false] {
|
|
display: flex;
|
|
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.
|
|
&[data-expanded=true] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
}
|
|
|
|
&::after {
|
|
content: "";
|
|
clear: both;
|
|
}
|
|
|
|
&:hover {
|
|
&::before {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
margin-block: 0;
|
|
|
|
&[aria-expanded=false] {
|
|
order: 9;
|
|
}
|
|
|
|
&[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_line {
|
|
display: none;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_avatars {
|
|
padding-top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_GenericEventListSummary_unstyledList {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
|
font-size: $font-14px;
|
|
display: inline-flex;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_avatars {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
line-height: $font-12px;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_avatars .mx_BaseAvatar {
|
|
margin-right: -4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_line {
|
|
border-bottom: 1px solid $primary-hairline-color;
|
|
margin-left: 63px;
|
|
line-height: $font-30px;
|
|
}
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
|
.mx_GenericEventListSummary {
|
|
font-size: $font-13px;
|
|
.mx_EventTile_line {
|
|
line-height: $font-20px;
|
|
}
|
|
}
|
|
|
|
.mx_GenericEventListSummary_line {
|
|
line-height: $font-22px;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
|
font-size: $font-13px;
|
|
}
|
|
}
|