mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 08:09:58 +03:00
96bd052ecf
* Improve visibility of font size chooser * Move slider dot sizes into variables * Use a standard font size instead of percentage in Slider * Use shorthand for padding in FontScalingPanel * Change Slider text pos to px to be consistent when font changes * Cleaner dot size for Slider selection
81 lines
1.9 KiB
SCSS
81 lines
1.9 KiB
SCSS
/*
|
|
Copyright 2021 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_FontScalingPanel {
|
|
color: $primary-content;
|
|
> .mx_SettingsTab_SubHeading {
|
|
margin-bottom: 32px;
|
|
}
|
|
}
|
|
|
|
.mx_FontScalingPanel .mx_Field {
|
|
width: 256px;
|
|
}
|
|
|
|
.mx_FontScalingPanel_fontSlider,
|
|
.mx_FontScalingPanel_fontSlider_preview {
|
|
@mixin mx_Settings_fullWidthField;
|
|
}
|
|
|
|
.mx_FontScalingPanel_fontSlider {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: 15px 15px 35px;
|
|
background: rgba($appearance-tab-border-color, 0.2);
|
|
border-radius: 10px;
|
|
font-size: 10px;
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.mx_FontScalingPanel_fontSlider_preview {
|
|
border: 1px solid $appearance-tab-border-color;
|
|
border-radius: 10px;
|
|
padding: 0 16px 9px 16px;
|
|
pointer-events: none;
|
|
display: flow-root;
|
|
|
|
.mx_EventTile[data-layout=bubble] {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.mx_EventTile_msgOption {
|
|
display: none;
|
|
}
|
|
|
|
&.mx_IRCLayout {
|
|
padding-top: 9px;
|
|
}
|
|
}
|
|
|
|
.mx_FontScalingPanel_fontSlider_smallText {
|
|
font-size: 15px;
|
|
padding-right: 20px;
|
|
padding-left: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mx_FontScalingPanel_fontSlider_largeText {
|
|
font-size: 18px;
|
|
padding-left: 20px;
|
|
padding-right: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mx_FontScalingPanel_customFontSizeField {
|
|
margin-left: calc($font-16px + 10px);
|
|
}
|