2019-01-22 20:28:33 +00:00
|
|
|
/*
|
2020-09-03 14:20:46 +00:00
|
|
|
Copyright 2019, 2020 New Vector Ltd
|
2019-01-22 20:28:33 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2020-09-04 12:18:57 +00:00
|
|
|
.mx_SettingsTab {
|
2022-06-14 07:05:43 +00:00
|
|
|
--SettingsTab_section-margin-bottom-preferences-labs: 30px;
|
2022-07-27 13:39:29 +00:00
|
|
|
--SettingsTab_heading_nth_child-margin-top: 30px; /* TODO: Use a spacing variable */
|
2022-06-25 18:06:08 +00:00
|
|
|
--SettingsTab_fullWidthField-margin-inline-end: 100px;
|
2022-07-27 13:39:29 +00: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 13:37:29 +00:00
|
|
|
color: $primary-content;
|
2022-06-17 09:04:52 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: $links;
|
|
|
|
}
|
2020-09-04 12:18:57 +00:00
|
|
|
}
|
|
|
|
|
2019-03-14 23:11:44 +00:00
|
|
|
.mx_SettingsTab_warningText {
|
2021-11-11 13:37:29 +00:00
|
|
|
color: $alert;
|
2019-03-14 23:11:44 +00:00
|
|
|
}
|
|
|
|
|
2019-01-19 03:22:36 +00:00
|
|
|
.mx_SettingsTab_heading {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-20px;
|
2019-01-30 06:11:16 +00:00
|
|
|
font-weight: 600;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2022-07-27 13:39:29 +00:00
|
|
|
margin-top: 10px; /* TODO: Use a spacing variable */
|
|
|
|
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
2022-07-28 08:10:04 +00:00
|
|
|
margin-right: 100px; /* TODO: Use a spacing variable */
|
2019-01-19 03:22:36 +00:00
|
|
|
|
2022-06-17 09:04:52 +00:00
|
|
|
&:nth-child(n + 2) {
|
2022-06-26 10:43:33 +00:00
|
|
|
margin-top: var(--SettingsTab_heading_nth_child-margin-top);
|
2022-06-17 09:04:52 +00:00
|
|
|
}
|
2019-08-19 14:45:04 +00:00
|
|
|
}
|
|
|
|
|
2019-01-19 03:22:36 +00:00
|
|
|
.mx_SettingsTab_subheading {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-16px;
|
2019-01-30 06:11:16 +00:00
|
|
|
display: block;
|
|
|
|
font-weight: 600;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-top: $spacing-12;
|
2022-07-27 13:39:29 +00:00
|
|
|
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
2022-07-28 08:10:04 +00:00
|
|
|
margin-right: 100px; /* TODO: Use a spacing variable */
|
2019-01-19 03:22:36 +00:00
|
|
|
}
|
|
|
|
|
2019-01-22 06:08:01 +00:00
|
|
|
.mx_SettingsTab_subsectionText {
|
2022-06-14 18:17:10 +00:00
|
|
|
color: $secondary-content;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2019-01-30 06:11:16 +00:00
|
|
|
display: block;
|
2022-07-27 13:39:29 +00:00
|
|
|
margin-top: 10px; /* TODO: Use a spacing variable */
|
|
|
|
margin-inline-end: 80px; /* Align with the rest of the view */
|
|
|
|
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-start: 0;
|
2019-01-21 23:03:44 +00:00
|
|
|
}
|
2019-01-23 22:50:41 +00: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 08:55:51 +00:00
|
|
|
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-bottom: $spacing-24;
|
2020-03-05 14:10:44 +00:00
|
|
|
|
2020-03-16 16:29:15 +00:00
|
|
|
.mx_SettingsFlag {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-end: $end-gutter;
|
2022-07-27 13:39:29 +00:00
|
|
|
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
2022-06-17 09:04:52 +00:00
|
|
|
|
|
|
|
.mx_SettingsFlag_label {
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
2022-07-27 13:39:29 +00: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 16:29:15 +00:00
|
|
|
}
|
|
|
|
|
2021-08-10 08:55:51 +00:00
|
|
|
> p {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-end: $end-gutter;
|
2021-08-10 08:55:51 +00:00
|
|
|
}
|
|
|
|
|
2020-03-16 16:29:15 +00:00
|
|
|
&.mx_SettingsTab_subsectionText .mx_SettingsFlag {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-inline-end: 0 !important;
|
2020-03-16 16:29:15 +00:00
|
|
|
}
|
2019-01-23 22:50:41 +00:00
|
|
|
}
|
|
|
|
|
2022-01-06 10:09:26 +00:00
|
|
|
.mx_SettingsTab_toggleWithDescription {
|
2022-06-17 09:04:52 +00:00
|
|
|
margin-top: $spacing-24;
|
2022-01-06 10:09:26 +00:00
|
|
|
}
|
2022-08-08 13:51:00 +00:00
|
|
|
|
|
|
|
.mx_SettingsTab_sections {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-gap: $spacing-32;
|
|
|
|
|
2022-08-09 08:14:30 +00:00
|
|
|
padding: $spacing-16 0;
|
2022-08-08 13:51:00 +00:00
|
|
|
}
|