mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
af5f9b7c41
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
230 lines
5.3 KiB
SCSS
230 lines
5.3 KiB
SCSS
/*
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
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_AppearanceUserSettingsTab_fontSlider,
|
|
.mx_AppearanceUserSettingsTab_fontSlider_preview,
|
|
.mx_AppearanceUserSettingsTab_Layout {
|
|
@mixin mx_Settings_fullWidthField;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab .mx_Field {
|
|
width: 256px;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_fontScaling {
|
|
color: $primary-fg-color;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: 15px;
|
|
background: rgba($appearance-tab-border-color, 0.2);
|
|
border-radius: 10px;
|
|
font-size: 10px;
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_preview {
|
|
border: 1px solid $appearance-tab-border-color;
|
|
border-radius: 10px;
|
|
padding: 0 16px 9px 16px;
|
|
pointer-events: none;
|
|
|
|
.mx_EventTile_msgOption {
|
|
display: none;
|
|
}
|
|
|
|
&.mx_IRCLayout {
|
|
padding-top: 9px;
|
|
}
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_smallText {
|
|
font-size: 15px;
|
|
padding-right: 20px;
|
|
padding-left: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_fontSlider_largeText {
|
|
font-size: 18px;
|
|
padding-left: 20px;
|
|
padding-right: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab {
|
|
> .mx_SettingsTab_SubHeading {
|
|
margin-bottom: 32px;
|
|
}
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_themeSection {
|
|
$radio-bg-color: $input-darker-bg-color;
|
|
color: $primary-fg-color;
|
|
|
|
> .mx_ThemeSelectors {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
|
|
margin-top: 4px;
|
|
margin-bottom: 30px;
|
|
|
|
> .mx_RadioButton {
|
|
padding: $font-16px;
|
|
box-sizing: border-box;
|
|
border-radius: 10px;
|
|
width: 180px;
|
|
|
|
background: $radio-bg-color;
|
|
opacity: 0.4;
|
|
|
|
flex-shrink: 1;
|
|
flex-grow: 0;
|
|
|
|
margin-right: 15px;
|
|
margin-top: 10px;
|
|
|
|
font-weight: 600;
|
|
color: $muted-fg-color;
|
|
|
|
> span {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
> .mx_RadioButton_enabled {
|
|
opacity: 1;
|
|
|
|
// These colors need to be hardcoded because they don't change with the theme
|
|
&.mx_ThemeSelector_light {
|
|
background-color: #f3f8fd;
|
|
color: #2e2f32;
|
|
}
|
|
|
|
&.mx_ThemeSelector_dark {
|
|
// 5% lightened version of 181b21
|
|
background-color: #25282e;
|
|
color: #f3f8fd;
|
|
|
|
> input > div {
|
|
border-color: $input-darker-bg-color;
|
|
> div {
|
|
border-color: $input-darker-bg-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.mx_ThemeSelector_black {
|
|
background-color: #000000;
|
|
color: #f3f8fd;
|
|
|
|
> input > div {
|
|
border-color: $input-darker-bg-color;
|
|
> div {
|
|
border-color: $input-darker-bg-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_SettingsTab_customFontSizeField {
|
|
margin-left: calc($font-16px + 10px);
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_Layout_RadioButtons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
.mx_AppearanceUserSettingsTab_spacer {
|
|
width: 24px;
|
|
}
|
|
|
|
> .mx_AppearanceUserSettingsTab_Layout_RadioButton {
|
|
flex-grow: 0;
|
|
flex-shrink: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
width: 300px;
|
|
|
|
border: 1px solid $appearance-tab-border-color;
|
|
border-radius: 10px;
|
|
|
|
.mx_EventTile_msgOption,
|
|
.mx_MessageActionBar {
|
|
display: none;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_Layout_RadioButton_preview {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.mx_RadioButton {
|
|
flex-grow: 0;
|
|
padding: 10px;
|
|
}
|
|
|
|
.mx_EventTile_content {
|
|
margin-right: 0;
|
|
}
|
|
|
|
&.mx_AppearanceUserSettingsTab_Layout_RadioButton_selected {
|
|
border-color: $accent-color;
|
|
}
|
|
}
|
|
|
|
.mx_RadioButton {
|
|
border-top: 1px solid $appearance-tab-border-color;
|
|
|
|
> input + div {
|
|
border-color: rgba($muted-fg-color, 0.2);
|
|
}
|
|
}
|
|
|
|
.mx_RadioButton_checked {
|
|
background-color: rgba($accent-color, 0.08);
|
|
}
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_Advanced {
|
|
color: $primary-fg-color;
|
|
|
|
> * {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_AdvancedToggle {
|
|
color: $accent-color;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mx_AppearanceUserSettingsTab_systemFont {
|
|
margin-left: calc($font-16px + 10px);
|
|
}
|
|
}
|