2021-11-26 23:41:04 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-11-26 23:41:04 +08:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
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.
|
2021-11-26 23:41:04 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_QuickSettingsButton {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
border-radius: 8px;
|
|
|
|
position: relative;
|
|
|
|
margin: 12px auto;
|
2021-11-30 04:10:34 +08:00
|
|
|
color: $secondary-content;
|
|
|
|
min-width: 32px;
|
|
|
|
min-height: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
|
|
|
|
&.expanded {
|
|
|
|
margin-left: 20px;
|
2022-07-27 21:39:29 +08:00
|
|
|
padding-left: 44px; /* align with toggle collapse button text */
|
2021-11-30 04:10:34 +08:00
|
|
|
padding-right: 8px;
|
|
|
|
}
|
2021-11-26 23:41:04 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2021-11-30 04:10:34 +08:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
left: 0;
|
2024-01-15 18:56:46 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/settings-solid.svg");
|
2021-11-26 23:41:04 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2024-01-15 18:56:46 +08:00
|
|
|
mask-size: 24px;
|
2021-11-26 23:41:04 +08:00
|
|
|
background: $secondary-content;
|
|
|
|
}
|
|
|
|
|
2021-11-30 04:10:34 +08:00
|
|
|
&:not(.expanded):hover {
|
2021-11-26 23:41:04 +08:00
|
|
|
background-color: $quaternary-content;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $primary-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_QuickSettingsButton_ContextMenuWrapper .mx_ContextualMenu {
|
|
|
|
padding: 16px;
|
|
|
|
width: max-content;
|
|
|
|
min-width: 200px;
|
2022-07-27 21:39:29 +08:00
|
|
|
contain: unset; /* let the dropdown paint beyond the context menu */
|
2021-11-26 23:41:04 +08:00
|
|
|
|
|
|
|
> div > h2 {
|
2023-06-29 18:30:25 +08:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-11-26 23:41:04 +08:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2024-03-13 21:38:32 +08:00
|
|
|
color: var(--cpd-color-text-secondary);
|
2021-11-26 23:41:04 +08:00
|
|
|
margin: 0 0 16px;
|
|
|
|
}
|
|
|
|
|
2022-03-24 04:17:57 +08:00
|
|
|
.mx_AccessibleButton_hasKind {
|
2021-11-26 23:41:04 +08:00
|
|
|
display: block;
|
2022-03-24 04:17:57 +08:00
|
|
|
margin-top: 4px;
|
2021-11-26 23:41:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> div > h4 {
|
2023-06-29 18:30:25 +08:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-11-26 23:41:04 +08:00
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
text-transform: uppercase;
|
2024-03-13 21:38:32 +08:00
|
|
|
color: var(--cpd-color-text-secondary);
|
2021-11-26 23:41:04 +08:00
|
|
|
margin: 20px 0 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_QuickSettingsButton_pinToSidebarHeading {
|
|
|
|
padding-left: 24px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Checkbox {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_QuickSettingsButton_favouritesCheckbox,
|
|
|
|
.mx_QuickSettingsButton_peopleCheckbox {
|
|
|
|
.mx_Checkbox_background + div {
|
|
|
|
padding-left: 22px;
|
|
|
|
position: relative;
|
|
|
|
margin-left: 6px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2024-03-13 21:38:32 +08:00
|
|
|
color: var(--cpd-color-text-primary);
|
2021-11-26 23:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_QuickSettingsButton_moreOptionsButton {
|
|
|
|
padding-left: 22px;
|
|
|
|
margin-left: 22px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2024-03-13 21:38:32 +08:00
|
|
|
color: var(--cpd-color-text-primary);
|
2021-11-26 23:41:04 +08:00
|
|
|
position: relative;
|
|
|
|
margin-bottom: 16px;
|
2022-03-02 17:18:45 +08:00
|
|
|
}
|
|
|
|
}
|
2021-11-26 23:41:04 +08:00
|
|
|
|
2022-03-02 17:18:45 +08:00
|
|
|
.mx_QuickSettingsButton_icon {
|
2023-05-19 08:03:39 +08:00
|
|
|
// TODO remove when all icons have fill=currentColor
|
2022-03-02 17:18:45 +08:00
|
|
|
* {
|
|
|
|
fill: $secondary-content;
|
2021-11-26 23:41:04 +08:00
|
|
|
}
|
2023-05-19 08:03:39 +08:00
|
|
|
color: $secondary-content;
|
2022-03-02 17:18:45 +08:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
2021-11-26 23:41:04 +08:00
|
|
|
}
|