mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
6cf9166c4a
It's become obvious that these random floating points everywhere are unwieldy. Now they're all in one place with some fairly logical variable names which will help out in design->implementation phase.
96 lines
2.5 KiB
SCSS
96 lines
2.5 KiB
SCSS
/*
|
|
Copyright 2018 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_TopLeftMenu {
|
|
min-width: 210px;
|
|
border-radius: 4px;
|
|
|
|
.mx_TopLeftMenu_greyedText {
|
|
font-size: $font-12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.mx_TopLeftMenu_upgradeLink {
|
|
font-size: $font-12px;
|
|
|
|
img {
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
.mx_TopLeftMenu_section:not(:last-child) {
|
|
border-bottom: 1px solid $menu-border-color;
|
|
}
|
|
|
|
.mx_TopLeftMenu_section_noIcon {
|
|
margin: 5px 0;
|
|
padding: 5px 20px 5px 15px;
|
|
|
|
div:not(:first-child) {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
.mx_TopLeftMenu_section_withIcon {
|
|
margin: 5px 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
|
|
.mx_TopLeftMenu_icon_home::after {
|
|
mask-image: url('$(res)/img/feather-customised/home.svg');
|
|
}
|
|
|
|
.mx_TopLeftMenu_icon_help::after {
|
|
mask-image: url('$(res)/img/feather-customised/life-buoy.svg');
|
|
}
|
|
|
|
.mx_TopLeftMenu_icon_settings::after {
|
|
mask-image: url('$(res)/img/feather-customised/settings.svg');
|
|
}
|
|
|
|
.mx_TopLeftMenu_icon_signin::after {
|
|
mask-image: url('$(res)/img/feather-customised/sign-in.svg');
|
|
}
|
|
|
|
.mx_TopLeftMenu_icon_signout::after {
|
|
mask-image: url('$(res)/img/feather-customised/sign-out.svg');
|
|
}
|
|
|
|
.mx_AccessibleButton::after {
|
|
mask-repeat: no-repeat;
|
|
mask-position: 0 center;
|
|
mask-size: 16px;
|
|
position: absolute;
|
|
width: 16px;
|
|
height: 16px;
|
|
content: "";
|
|
top: 5px;
|
|
left: 14px;
|
|
background-color: $primary-fg-color;
|
|
}
|
|
|
|
.mx_AccessibleButton {
|
|
position: relative;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
padding: 5px 20px 5px 43px;
|
|
}
|
|
|
|
.mx_AccessibleButton:hover {
|
|
background-color: $menu-selected-color;
|
|
}
|
|
}
|
|
}
|