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.
122 lines
2.5 KiB
SCSS
122 lines
2.5 KiB
SCSS
/*
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
Copyright 2019 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_ContextualMenu_wrapper {
|
|
position: fixed;
|
|
z-index: 5000;
|
|
}
|
|
|
|
.mx_ContextualMenu_background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 1.0;
|
|
z-index: 5000;
|
|
}
|
|
|
|
.mx_ContextualMenu {
|
|
border-radius: 4px;
|
|
box-shadow: 4px 4px 12px 0 $menu-box-shadow-color;
|
|
background-color: $menu-bg-color;
|
|
color: $primary-fg-color;
|
|
position: absolute;
|
|
font-size: 0.933rem;
|
|
z-index: 5001;
|
|
}
|
|
|
|
.mx_ContextualMenu_right {
|
|
right: 0;
|
|
}
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_right {
|
|
right: 8px;
|
|
}
|
|
|
|
.mx_ContextualMenu_chevron_right {
|
|
position: absolute;
|
|
right: -8px;
|
|
top: 0px;
|
|
width: 0;
|
|
height: 0;
|
|
border-top: 8px solid transparent;
|
|
border-left: 8px solid $menu-bg-color;
|
|
border-bottom: 8px solid transparent;
|
|
}
|
|
|
|
.mx_ContextualMenu_left {
|
|
left: 0;
|
|
}
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_left {
|
|
left: 8px;
|
|
}
|
|
|
|
.mx_ContextualMenu_chevron_left {
|
|
position: absolute;
|
|
left: -8px;
|
|
top: 0px;
|
|
width: 0;
|
|
height: 0;
|
|
border-top: 8px solid transparent;
|
|
border-right: 8px solid $menu-bg-color;
|
|
border-bottom: 8px solid transparent;
|
|
}
|
|
|
|
.mx_ContextualMenu_top {
|
|
top: 0;
|
|
}
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_top {
|
|
top: 8px;
|
|
}
|
|
|
|
.mx_ContextualMenu_chevron_top {
|
|
position: absolute;
|
|
left: 0px;
|
|
top: -8px;
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 8px solid transparent;
|
|
border-bottom: 8px solid $menu-bg-color;
|
|
border-right: 8px solid transparent;
|
|
}
|
|
|
|
.mx_ContextualMenu_bottom {
|
|
bottom: 0;
|
|
}
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_bottom {
|
|
bottom: 8px;
|
|
}
|
|
|
|
.mx_ContextualMenu_chevron_bottom {
|
|
position: absolute;
|
|
left: 0px;
|
|
bottom: -8px;
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 8px solid transparent;
|
|
border-top: 8px solid $menu-bg-color;
|
|
border-right: 8px solid transparent;
|
|
}
|
|
|
|
.mx_ContextualMenu_spinner {
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|