2020-04-16 17:31:40 +08:00
|
|
|
/*
|
2021-08-06 16:40:26 +08:00
|
|
|
Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.
|
2020-04-16 17:31:40 +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-04-23 00:31:49 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider,
|
2021-07-21 20:55:30 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_preview {
|
2020-04-16 17:31:40 +08:00
|
|
|
@mixin mx_Settings_fullWidthField;
|
2020-04-16 19:09:36 +08:00
|
|
|
}
|
2020-04-23 00:31:49 +08:00
|
|
|
|
2020-06-16 00:42:30 +08:00
|
|
|
.mx_AppearanceUserSettingsTab .mx_Field {
|
|
|
|
width: 256px;
|
|
|
|
}
|
|
|
|
|
2020-06-16 22:41:10 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_fontScaling {
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2020-06-16 22:41:10 +08:00
|
|
|
}
|
|
|
|
|
2020-04-23 00:31:49 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2020-04-23 18:22:51 +08:00
|
|
|
padding: 15px;
|
2020-06-22 19:28:15 +08:00
|
|
|
background: rgba($appearance-tab-border-color, 0.2);
|
2020-04-23 00:31:49 +08:00
|
|
|
border-radius: 10px;
|
2020-04-23 17:58:00 +08:00
|
|
|
font-size: 10px;
|
2020-04-23 18:49:54 +08:00
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 24px;
|
2020-04-23 00:31:49 +08:00
|
|
|
}
|
|
|
|
|
2020-06-16 22:41:10 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_preview {
|
2020-06-22 19:28:15 +08:00
|
|
|
border: 1px solid $appearance-tab-border-color;
|
2020-06-16 22:41:10 +08:00
|
|
|
border-radius: 10px;
|
|
|
|
padding: 0 16px 9px 16px;
|
|
|
|
pointer-events: none;
|
2021-07-21 15:34:30 +08:00
|
|
|
display: flow-root;
|
|
|
|
|
|
|
|
.mx_EventTile[data-layout=bubble] {
|
|
|
|
margin-top: 30px;
|
|
|
|
}
|
2020-06-17 00:55:19 +08:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
display: none;
|
2020-06-17 01:08:49 +08:00
|
|
|
}
|
2020-06-17 00:55:19 +08:00
|
|
|
|
|
|
|
&.mx_IRCLayout {
|
|
|
|
padding-top: 9px;
|
|
|
|
}
|
2020-06-16 22:41:10 +08:00
|
|
|
}
|
|
|
|
|
2020-04-23 00:31:49 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_smallText {
|
|
|
|
font-size: 15px;
|
2020-04-23 18:22:51 +08:00
|
|
|
padding-right: 20px;
|
|
|
|
padding-left: 5px;
|
2020-06-22 19:28:15 +08:00
|
|
|
font-weight: 500;
|
2020-04-23 00:31:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_largeText {
|
|
|
|
font-size: 18px;
|
2020-04-23 18:22:51 +08:00
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 5px;
|
2020-06-22 19:28:15 +08:00
|
|
|
font-weight: 500;
|
2020-04-23 00:31:49 +08:00
|
|
|
}
|
2020-06-09 01:17:02 +08:00
|
|
|
|
2020-06-11 19:27:09 +08:00
|
|
|
.mx_AppearanceUserSettingsTab {
|
|
|
|
> .mx_SettingsTab_SubHeading {
|
|
|
|
margin-bottom: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-09 01:17:02 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_themeSection {
|
|
|
|
$radio-bg-color: $input-darker-bg-color;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2020-06-09 01:17:02 +08:00
|
|
|
|
|
|
|
> .mx_ThemeSelectors {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-06-09 01:37:36 +08:00
|
|
|
flex-wrap: wrap;
|
2020-06-09 01:17:02 +08:00
|
|
|
|
2020-06-15 19:06:40 +08:00
|
|
|
margin-top: 4px;
|
2020-06-11 19:27:09 +08:00
|
|
|
margin-bottom: 30px;
|
2020-06-09 01:17:02 +08:00
|
|
|
|
|
|
|
> .mx_RadioButton {
|
|
|
|
padding: $font-16px;
|
2020-06-11 19:27:09 +08:00
|
|
|
box-sizing: border-box;
|
2020-06-09 01:17:02 +08:00
|
|
|
border-radius: 10px;
|
|
|
|
width: 180px;
|
2020-06-11 19:27:09 +08:00
|
|
|
|
2020-06-15 19:23:14 +08:00
|
|
|
background: $radio-bg-color;
|
|
|
|
opacity: 0.4;
|
2020-06-11 19:27:09 +08:00
|
|
|
|
2020-06-09 01:17:02 +08:00
|
|
|
flex-shrink: 1;
|
|
|
|
flex-grow: 0;
|
2020-06-11 19:27:09 +08:00
|
|
|
|
2020-06-09 01:17:02 +08:00
|
|
|
margin-right: 15px;
|
2020-06-09 01:37:36 +08:00
|
|
|
margin-top: 10px;
|
2020-06-11 19:27:09 +08:00
|
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2020-06-09 01:17:02 +08:00
|
|
|
}
|
|
|
|
|
2020-06-11 19:27:09 +08:00
|
|
|
> .mx_RadioButton_enabled {
|
2020-06-15 19:23:14 +08:00
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
// These colors need to be hardcoded because they don't change with the theme
|
2020-06-09 01:17:02 +08:00
|
|
|
&.mx_ThemeSelector_light {
|
|
|
|
background-color: #f3f8fd;
|
|
|
|
color: #2e2f32;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_ThemeSelector_dark {
|
2020-06-22 19:28:15 +08:00
|
|
|
// 5% lightened version of 181b21
|
|
|
|
background-color: #25282e;
|
2020-06-11 19:27:09 +08:00
|
|
|
color: #f3f8fd;
|
2020-06-09 01:17:02 +08:00
|
|
|
|
|
|
|
> input > div {
|
|
|
|
border-color: $input-darker-bg-color;
|
|
|
|
> div {
|
|
|
|
border-color: $input-darker-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_ThemeSelector_black {
|
|
|
|
background-color: #000000;
|
2020-06-11 19:27:09 +08:00
|
|
|
color: #f3f8fd;
|
2020-06-09 01:17:02 +08:00
|
|
|
|
|
|
|
> input > div {
|
|
|
|
border-color: $input-darker-bg-color;
|
|
|
|
> div {
|
|
|
|
border-color: $input-darker-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SettingsTab_customFontSizeField {
|
|
|
|
margin-left: calc($font-16px + 10px);
|
|
|
|
}
|
2020-06-15 22:33:52 +08:00
|
|
|
|
|
|
|
.mx_AppearanceUserSettingsTab_Advanced {
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2020-06-24 23:06:50 +08:00
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
2020-06-15 22:33:52 +08:00
|
|
|
.mx_AppearanceUserSettingsTab_AdvancedToggle {
|
|
|
|
color: $accent-color;
|
2020-06-24 23:06:50 +08:00
|
|
|
cursor: pointer;
|
2020-06-15 22:33:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppearanceUserSettingsTab_systemFont {
|
|
|
|
margin-left: calc($font-16px + 10px);
|
|
|
|
}
|
|
|
|
}
|