mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-07 23:07:05 +02:00
* Fix labelling of avatar menu * Make the integration manager toggle more clear. * fix label * lint * Update snapshots. * Refactor many cases of checkbox to use the new compound component. * Remove non-checkbox related changes * Reset some things * Remove usages of mx_checkbox* styling. * Use label locators for apperance tests. * small linter tweaks * lint * update screenshot * Test updates * lint * Realign checkboxes for device selection. * Fixup QuickSettings styling * remove comment * lint * flex comment * remove unused label * remove redundant classes * add test for spaces * lint * Copyright * fixup spaces test * spaces lint * Replace pin with compound pin. * Realign icons * Remove hack for colouring icons * Adjust existing rooms component to correctly label room. * Add test for adding an existing room to an existing space. * Set deterministic sort order for rooms * lint
109 lines
2.7 KiB
Plaintext
109 lines
2.7 KiB
Plaintext
/*
|
|
Copyright 2024,2025 New Vector Ltd.
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
.mx_QuickSettingsButton {
|
|
flex: 0 0 auto;
|
|
border-radius: 8px;
|
|
position: relative;
|
|
margin: 12px auto;
|
|
color: $secondary-content;
|
|
min-width: 32px;
|
|
min-height: 32px;
|
|
line-height: 32px;
|
|
|
|
&.expanded {
|
|
margin-left: 20px;
|
|
padding-left: 44px; /* align with toggle collapse button text */
|
|
padding-right: 8px;
|
|
}
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 32px;
|
|
height: 32px;
|
|
left: 0;
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/settings-solid.svg");
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
mask-size: 24px;
|
|
background: $secondary-content;
|
|
}
|
|
|
|
&:not(.expanded):hover {
|
|
background-color: $quaternary-content;
|
|
|
|
&::before {
|
|
background-color: $primary-content;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_QuickSettingsButton_ContextMenuWrapper .mx_ContextualMenu {
|
|
padding: 16px;
|
|
width: max-content;
|
|
min-width: 200px;
|
|
contain: unset; /* let the dropdown paint beyond the context menu */
|
|
|
|
> div > h2 {
|
|
font-weight: var(--cpd-font-weight-semibold);
|
|
font-size: $font-15px;
|
|
line-height: $font-24px;
|
|
color: var(--cpd-color-text-secondary);
|
|
margin: 0 0 16px;
|
|
}
|
|
|
|
.mx_AccessibleButton_hasKind {
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
> div > h4 {
|
|
font-weight: var(--cpd-font-weight-semibold);
|
|
font-size: $font-12px;
|
|
line-height: $font-15px;
|
|
text-transform: uppercase;
|
|
color: var(--cpd-color-text-secondary);
|
|
margin: 20px 0 12px;
|
|
position: relative;
|
|
display: flex;
|
|
}
|
|
|
|
.mx_QuickSettingsButton_moreOptionsButton {
|
|
margin-left: var(--cpd-space-7x);
|
|
font-size: $font-15px;
|
|
line-height: $font-24px;
|
|
color: var(--cpd-color-text-primary);
|
|
position: relative;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.mx_QuickSettingsButton_option {
|
|
margin-bottom: var(--cpd-space-3x);
|
|
label {
|
|
/* Correctly line up icons and text. */
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_QuickSettingsButton_ContextMenuWrapper_new_room_list {
|
|
.mx_QuickThemeSwitcher {
|
|
margin-top: var(--cpd-space-2x);
|
|
}
|
|
}
|
|
|
|
.mx_QuickSettingsButton_icon {
|
|
margin-right: var(--cpd-space-1x);
|
|
color: $secondary-content;
|
|
width: 18px;
|
|
height: 18px;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|