da34e6241d
Font size of the whole app would ideally be controlled by a single value. This value is currently hard coded using the :root CSS selector. It is the intention to make this value configurable within riot. In the interim all font-sizes have been converted to rem by the simple process of regex. Replacing px values with their equivalent rem values assuming a font size of 15px and then rounded to three decimal places, which was the base at the time of this transformation. I'm expecting another commit cleaning up rem values but I thought it best to leave that to review. This commit doesn't address any scaling issues. I thought it better to land this unwieldy, mechanical, invisible change before the others otherwise the pr would be impossible to review thoroughly.
94 lines
2.2 KiB
SCSS
94 lines
2.2 KiB
SCSS
/*
|
|
Copyright 2017 Travis Ralston
|
|
Copyright 2019 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_TabbedView {
|
|
margin: 0;
|
|
padding: 0 0 0 58px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabels {
|
|
width: 170px;
|
|
max-width: 170px;
|
|
color: $tab-label-fg-color;
|
|
position: fixed;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel {
|
|
vertical-align: text-top;
|
|
cursor: pointer;
|
|
display: block;
|
|
border-radius: 3px;
|
|
font-size: 0.933rem;
|
|
min-height: 24px; // use min-height instead of height to allow the label to overflow a bit
|
|
margin-bottom: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_active {
|
|
background-color: $tab-label-active-bg-color;
|
|
color: $tab-label-active-fg-color;
|
|
}
|
|
|
|
.mx_TabbedView_maskedIcon {
|
|
margin-left: 6px;
|
|
margin-right: 9px;
|
|
margin-top: 1px;
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.mx_TabbedView_maskedIcon::before {
|
|
display: inline-block;
|
|
background-color: $tab-label-icon-bg-color;
|
|
mask-repeat: no-repeat;
|
|
mask-size: 16px;
|
|
width: 16px;
|
|
height: 22px;
|
|
mask-position: center;
|
|
content: '';
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_active .mx_TabbedView_maskedIcon::before {
|
|
background-color: $tab-label-active-icon-bg-color;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_TabbedView_tabPanel {
|
|
margin-left: 240px; // 170px sidebar + 70px padding
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0; // firefox
|
|
}
|
|
|
|
.mx_TabbedView_tabPanelContent {
|
|
flex-grow: 1;
|
|
overflow: auto;
|
|
min-height: 0; // firefox
|
|
}
|