mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-23 16:49:23 +08:00
9c7d935aae
* Integrate compound design tokens The icons should not be included in this repo, and should live in the compound design token repo, but for simplicity sake at this phase of the integration they will be added here * Delete unused or incorrect - sass variables * Typography pass * Deprecate _font-weights.pcss and use Compound instead * lint fix * Fix snapshot * Fix typography pass feedback * Remove unwanted e2e test cypress tests should test functionality not visual output. And we should not test visual output by inspecting CSS properties * lintfix * Migration script for baseFontSize * Updates after design review * Update font scaling panel to use min/max size * Fix custom font * Fix font slider e2e test * Update custom font * Update new baseFontSizeV2 * Disambiguate heading props * Fix appearance test * change max font size * fix e2ee test * fix tests * test baseFontSize migration code * typescript strict * Migrate baseFontSize account setting * Change assertion for font size * Fix font size controller test
135 lines
3.4 KiB
Plaintext
135 lines
3.4 KiB
Plaintext
/*
|
|
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;
|
|
|
|
.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);
|
|
}
|
|
}
|
|
|
|
&[data-layout="irc"],
|
|
&[data-layout="group"] {
|
|
.mx_GenericEventListSummary_toggle {
|
|
float: right;
|
|
margin-inline: 0 10px;
|
|
}
|
|
}
|
|
|
|
&[data-layout="group"] {
|
|
margin-top: $spacing-8;
|
|
}
|
|
|
|
&[data-layout="bubble"] {
|
|
--maxWidth: 70%;
|
|
display: flex;
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
|
|
|
.mx_GenericEventListSummary_toggle {
|
|
margin-block: 0;
|
|
|
|
&[aria-expanded="false"] {
|
|
order: 9; /* TODO: Remove */
|
|
}
|
|
|
|
&[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;
|
|
}
|
|
|
|
&[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. */
|
|
&[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 {
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_spacer {
|
|
line-height: 1.375;
|
|
}
|
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
|
font: var(--cpd-font-body-sm-regular);
|
|
}
|
|
}
|
|
|
|
/* Make all state events one order smaller than the other events */
|
|
.mx_EventTile {
|
|
font: var(--cpd-font-body-sm-regular);
|
|
}
|
|
}
|
|
|
|
.mx_GenericEventListSummary_unstyledList {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.mx_TextualEvent.mx_GenericEventListSummary_summary {
|
|
font: var(--cpd-font-body-sm-regular);
|
|
display: inline-flex;
|
|
}
|
|
|
|
.mx_GenericEventListSummary_avatars {
|
|
display: inline-block;
|
|
line-height: $font-12px;
|
|
|
|
.mx_BaseAvatar {
|
|
margin-right: -4px;
|
|
cursor: pointer;
|
|
}
|
|
}
|