mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
91 lines
1.9 KiB
SCSS
91 lines
1.9 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;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabels {
|
|
width: 136px;
|
|
height: 100%;
|
|
color: $tab-label-fg-color;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel {
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
display: block;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
height: 20px;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_active {
|
|
background-color: $tab-label-active-bg-color;
|
|
color: $tab-label-active-fg-color;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-left: 6px;
|
|
margin-right: 9px;
|
|
position: relative;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_icon > .mx_TabbedView_maskedIcon {
|
|
width: 12px;
|
|
height: 12px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_icon > .mx_TabbedView_maskedIcon:before {
|
|
background-color: $tab-label-icon-bg-color;
|
|
mask-repeat: no-repeat;
|
|
mask-size: 12px;
|
|
mask-position: center;
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_active .mx_TabbedView_tabLabel_icon > .mx_TabbedView_maskedIcon:before {
|
|
background-color: $tab-label-active-icon-bg-color;
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_TabbedView_tabPanel {
|
|
width: calc(100% - 320px);
|
|
display: inline-block;
|
|
margin-left: 20px;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.mx_TabbedView_tabPanelContent {
|
|
flex-grow: 1;
|
|
} |