2019-01-22 13:28:33 -07:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2019-2024 New Vector Ltd.
|
2019-01-22 13:28:33 -07:00
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
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.
|
2019-01-22 13:28:33 -07:00
|
|
|
*/
|
|
|
|
|
|
2020-09-04 13:18:57 +01:00
|
|
|
.mx_SettingsTab {
|
2022-07-27 14:39:29 +01:00
|
|
|
--SettingsTab_tooltip-max-width: 120px; /* So it fits in the space provided by the page */
|
2022-06-25 12:40:16 +00:00
|
|
|
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $primary-content;
|
2022-06-17 09:04:52 +00:00
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
color: $links;
|
|
|
|
|
}
|
2023-05-26 10:42:01 +12:00
|
|
|
|
2025-01-15 13:44:20 +01:00
|
|
|
form:not(.mx_EncryptionUserSettingsTab form) {
|
2023-05-26 10:42:01 +12:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: $spacing-8;
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
}
|
|
|
|
|
// never want full width buttons
|
|
|
|
|
// event when other content is 100% width
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
|
align-self: flex-start;
|
|
|
|
|
justify-self: flex-start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_Field {
|
|
|
|
|
margin: 0;
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
2020-09-04 13:18:57 +01:00
|
|
|
}
|
|
|
|
|
|
2019-03-14 17:11:44 -06:00
|
|
|
.mx_SettingsTab_warningText {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $alert;
|
2019-03-14 17:11:44 -06:00
|
|
|
}
|
|
|
|
|
|
2019-01-21 23:08:01 -07:00
|
|
|
.mx_SettingsTab_subsectionText {
|
2022-06-14 20:17:10 +02:00
|
|
|
color: $secondary-content;
|
2023-06-29 11:30:25 +01:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2019-01-29 23:11:16 -07:00
|
|
|
display: block;
|
2023-06-06 14:03:52 +00:00
|
|
|
margin-top: 10px;
|
2022-07-27 14:39:29 +01:00
|
|
|
margin-inline-end: 80px; /* Align with the rest of the view */
|
2023-06-06 14:03:52 +00:00
|
|
|
margin-bottom: 10px;
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-start: 0;
|
2019-01-21 23:08:01 -07:00
|
|
|
}
|
2019-01-23 15:50:41 -07:00
|
|
|
|
2020-03-05 14:10:44 +00:00
|
|
|
.mx_SettingsTab_section {
|
2022-06-17 09:04:52 +00:00
|
|
|
$end-gutter: 80px;
|
2021-08-10 09:55:51 +01:00
|
|
|
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-bottom: $spacing-24;
|
2020-03-05 14:10:44 +00:00
|
|
|
|
2020-03-16 17:29:15 +01:00
|
|
|
.mx_SettingsFlag {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-end: $end-gutter;
|
2023-06-06 14:03:52 +00:00
|
|
|
margin-bottom: 10px;
|
2022-06-17 09:04:52 +00:00
|
|
|
|
|
|
|
|
.mx_SettingsFlag_label {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
display: inline-block;
|
2022-07-27 14:39:29 +01:00
|
|
|
max-width: calc(100% - $font-48px); /* Force word wrap instead of colliding with the switch */
|
2022-06-17 09:04:52 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ToggleSwitch {
|
|
|
|
|
float: inline-end;
|
|
|
|
|
}
|
2020-03-16 17:29:15 +01:00
|
|
|
}
|
|
|
|
|
|
2021-08-10 09:55:51 +01:00
|
|
|
> p {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-end: $end-gutter;
|
2021-08-10 09:55:51 +01:00
|
|
|
}
|
|
|
|
|
|
2020-03-16 17:29:15 +01:00
|
|
|
&.mx_SettingsTab_subsectionText .mx_SettingsFlag {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-end: 0 !important;
|
2020-03-16 17:29:15 +01:00
|
|
|
}
|
2019-01-23 15:50:41 -07:00
|
|
|
}
|
|
|
|
|
|
2022-08-08 15:51:00 +02:00
|
|
|
.mx_SettingsTab_sections {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr;
|
2025-08-06 13:59:04 +01:00
|
|
|
gap: $spacing-32;
|
2022-08-08 15:51:00 +02:00
|
|
|
|
2023-05-03 09:14:36 +12:00
|
|
|
padding-bottom: $spacing-16;
|
2022-08-08 15:51:00 +02:00
|
|
|
}
|