element-web/res/css/views/settings/tabs/_SettingsTab.scss

106 lines
2.3 KiB
SCSS
Raw Normal View History

/*
Copyright 2019, 2020 New Vector Ltd
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.
*/
.mx_SettingsTab {
color: $primary-content;
}
.mx_SettingsTab_warningText {
color: $alert;
}
2019-01-19 03:22:36 +00:00
.mx_SettingsTab_heading {
font-size: $font-20px;
font-weight: 600;
color: $primary-content;
margin-bottom: 10px;
margin-top: 10px;
2019-01-19 03:22:36 +00:00
}
.mx_SettingsTab_heading:nth-child(n + 2) {
margin-top: 30px;
}
2019-01-19 03:22:36 +00:00
.mx_SettingsTab_subheading {
font-size: $font-16px;
display: block;
font-weight: 600;
color: $primary-content;
margin-bottom: 10px;
margin-top: 12px;
2019-01-19 03:22:36 +00:00
}
.mx_SettingsTab_subsectionText {
color: $settings-subsection-fg-color;
font-size: $font-14px;
display: block;
margin: 10px 80px 10px 0; // Align with the rest of the view
}
.mx_SettingsTab_section {
2021-08-10 08:55:51 +00:00
$right-gutter: 80px;
margin-bottom: 24px;
2020-03-16 16:29:15 +00:00
.mx_SettingsFlag {
2021-08-10 08:55:51 +00:00
margin-right: $right-gutter;
2020-03-16 16:29:15 +00:00
margin-bottom: 10px;
}
2021-08-10 08:55:51 +00:00
> p {
margin-right: $right-gutter;
}
2020-03-16 16:29:15 +00:00
&.mx_SettingsTab_subsectionText .mx_SettingsFlag {
2021-08-10 08:55:51 +00:00
margin-right: 0 !important;
2020-03-16 16:29:15 +00:00
}
}
.mx_SettingsTab_section .mx_SettingsFlag .mx_SettingsFlag_label {
vertical-align: middle;
display: inline-block;
font-size: $font-14px;
color: $primary-content;
2020-04-07 14:07:34 +00:00
max-width: calc(100% - $font-48px); // Force word wrap instead of colliding with the switch
box-sizing: border-box;
padding-right: 10px;
}
.mx_SettingsTab_section .mx_SettingsFlag .mx_SettingsFlag_microcopy {
margin-top: 4px;
font-size: $font-12px;
line-height: $font-15px;
color: $secondary-content;
}
.mx_SettingsTab_section .mx_SettingsFlag .mx_ToggleSwitch {
float: right;
}
.mx_SettingsTab_linkBtn {
cursor: pointer;
color: $accent;
word-break: break-all;
}
.mx_SettingsTab a {
color: $accent-alt;
}
.mx_SettingsTab_toggleWithDescription {
margin-top: 24px;
}