2019-01-23 04:28:33 +08:00
|
|
|
/*
|
2020-09-03 22:20:46 +08:00
|
|
|
Copyright 2019, 2020 New Vector Ltd
|
2019-01-23 04:28:33 +08: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 20:18:57 +08:00
|
|
|
.mx_SettingsTab {
|
2022-06-14 15:05:43 +08:00
|
|
|
--SettingsTab_section-margin-bottom-preferences-labs: 30px;
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $primary-content;
|
2022-06-17 17:04:52 +08:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: $links;
|
|
|
|
}
|
2020-09-04 20:18:57 +08:00
|
|
|
}
|
|
|
|
|
2019-03-15 07:11:44 +08:00
|
|
|
.mx_SettingsTab_warningText {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $alert;
|
2019-03-15 07:11:44 +08:00
|
|
|
}
|
|
|
|
|
2019-01-19 11:22:36 +08:00
|
|
|
.mx_SettingsTab_heading {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-20px;
|
2019-01-30 14:11:16 +08:00
|
|
|
font-weight: 600;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-top: 10px; // TODO: Use a spacing variable
|
|
|
|
margin-bottom: 10px; // TODO: Use a spacing variable
|
2019-01-19 11:22:36 +08:00
|
|
|
|
2022-06-17 17:04:52 +08:00
|
|
|
&:nth-child(n + 2) {
|
|
|
|
margin-top: 30px; // TODO: Use a spacing variable
|
|
|
|
}
|
2019-08-19 22:45:04 +08:00
|
|
|
}
|
|
|
|
|
2019-01-19 11:22:36 +08:00
|
|
|
.mx_SettingsTab_subheading {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-16px;
|
2019-01-30 14:11:16 +08:00
|
|
|
display: block;
|
|
|
|
font-weight: 600;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-top: $spacing-12;
|
|
|
|
margin-bottom: 10px; // TODO: Use a spacing variable
|
2019-01-19 11:22:36 +08:00
|
|
|
}
|
|
|
|
|
2019-01-22 14:08:01 +08:00
|
|
|
.mx_SettingsTab_subsectionText {
|
2022-06-15 02:17:10 +08:00
|
|
|
color: $secondary-content;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2019-01-30 14:11:16 +08:00
|
|
|
display: block;
|
2022-06-17 17:04:52 +08: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
|
|
|
|
margin-inline-start: 0;
|
2019-01-22 07:03:44 +08:00
|
|
|
}
|
2019-01-24 06:50:41 +08:00
|
|
|
|
2020-03-05 22:10:44 +08:00
|
|
|
.mx_SettingsTab_section {
|
2022-06-17 17:04:52 +08:00
|
|
|
$end-gutter: 80px;
|
2021-08-10 16:55:51 +08:00
|
|
|
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-bottom: $spacing-24;
|
2020-03-05 22:10:44 +08:00
|
|
|
|
2020-03-17 00:29:15 +08:00
|
|
|
.mx_SettingsFlag {
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-inline-end: $end-gutter;
|
|
|
|
margin-bottom: 10px; // TODO: Use a spacing variable
|
|
|
|
|
|
|
|
.mx_SettingsFlag_label {
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
max-width: calc(100% - $font-48px); // Force word wrap instead of colliding with the switch
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ToggleSwitch {
|
|
|
|
float: inline-end;
|
|
|
|
}
|
2020-03-17 00:29:15 +08:00
|
|
|
}
|
|
|
|
|
2021-08-10 16:55:51 +08:00
|
|
|
> p {
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-inline-end: $end-gutter;
|
2021-08-10 16:55:51 +08:00
|
|
|
}
|
|
|
|
|
2020-03-17 00:29:15 +08:00
|
|
|
&.mx_SettingsTab_subsectionText .mx_SettingsFlag {
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-inline-end: 0 !important;
|
2020-03-17 00:29:15 +08:00
|
|
|
}
|
2019-01-24 06:50:41 +08:00
|
|
|
}
|
|
|
|
|
2019-01-25 06:47:04 +08:00
|
|
|
.mx_SettingsTab_linkBtn {
|
2019-01-30 14:11:16 +08:00
|
|
|
cursor: pointer;
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent;
|
2019-01-30 14:11:16 +08:00
|
|
|
word-break: break-all;
|
2019-01-30 10:28:30 +08:00
|
|
|
}
|
|
|
|
|
2022-01-06 18:09:26 +08:00
|
|
|
.mx_SettingsTab_toggleWithDescription {
|
2022-06-17 17:04:52 +08:00
|
|
|
margin-top: $spacing-24;
|
2022-01-06 18:09:26 +08:00
|
|
|
}
|