2019-01-19 04:43:17 +08:00
|
|
|
/*
|
|
|
|
Copyright 2017 Travis Ralston
|
2019-01-19 06:07:11 +08:00
|
|
|
Copyright 2019 New Vector Ltd
|
2019-01-19 04:43:17 +08:00
|
|
|
|
|
|
|
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 {
|
2019-01-30 14:11:16 +08:00
|
|
|
margin: 0;
|
2019-01-30 12:45:15 +08:00
|
|
|
padding: 0 0 0 58px;
|
2019-01-30 14:11:16 +08:00
|
|
|
display: flex;
|
2019-01-30 12:45:15 +08:00
|
|
|
flex-direction: column;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2019-01-19 04:43:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabels {
|
2019-01-30 14:11:16 +08:00
|
|
|
width: 150px;
|
|
|
|
max-width: 150px;
|
|
|
|
color: $tab-label-fg-color;
|
2019-01-30 12:45:15 +08:00
|
|
|
position: fixed;
|
2019-01-19 04:43:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel {
|
2019-01-30 14:11:16 +08:00
|
|
|
vertical-align: text-top;
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 600;
|
|
|
|
min-height: 20px; // use min-height instead of height to allow the label to overflow a bit
|
|
|
|
margin-bottom: 6px;
|
|
|
|
position: relative;
|
2019-01-19 04:43:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_active {
|
2019-01-30 14:11:16 +08:00
|
|
|
background-color: $tab-label-active-bg-color;
|
|
|
|
color: $tab-label-active-fg-color;
|
2019-01-19 04:43:17 +08:00
|
|
|
}
|
|
|
|
|
2019-01-23 00:54:35 +08:00
|
|
|
.mx_TabbedView_maskedIcon {;
|
2019-01-30 14:11:16 +08:00
|
|
|
margin-left: 6px;
|
|
|
|
margin-right: 9px;
|
|
|
|
margin-top: 1px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
display: inline-block;
|
2019-01-19 10:40:21 +08:00
|
|
|
}
|
|
|
|
|
2019-01-23 00:54:35 +08:00
|
|
|
.mx_TabbedView_maskedIcon:before {
|
2019-01-30 14:11:16 +08:00
|
|
|
display: inline-block;
|
|
|
|
background-color: $tab-label-icon-bg-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 14px;
|
|
|
|
width: 14px;
|
|
|
|
height: 18px;
|
|
|
|
mask-position: center;
|
|
|
|
content: '';
|
|
|
|
vertical-align: middle;
|
2019-01-19 10:40:21 +08:00
|
|
|
}
|
|
|
|
|
2019-01-23 00:54:35 +08:00
|
|
|
.mx_TabbedView_tabLabel_active .mx_TabbedView_maskedIcon:before {
|
2019-01-30 14:11:16 +08:00
|
|
|
background-color: $tab-label-active-icon-bg-color;
|
2019-01-19 10:40:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
2019-01-30 14:11:16 +08:00
|
|
|
vertical-align: middle;
|
2019-01-19 10:40:21 +08:00
|
|
|
}
|
|
|
|
|
2019-01-19 04:43:17 +08:00
|
|
|
.mx_TabbedView_tabPanel {
|
2019-01-30 12:45:15 +08:00
|
|
|
margin-left: 220px; // 150px sidebar + 70px padding
|
2019-01-30 14:11:16 +08:00
|
|
|
flex-grow: 1;
|
2019-01-30 12:45:15 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-02-07 05:11:09 +08:00
|
|
|
min-height: 0; // firefox
|
2019-01-19 04:43:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanelContent {
|
2019-01-30 14:11:16 +08:00
|
|
|
flex-grow: 1;
|
2019-01-30 12:45:15 +08:00
|
|
|
overflow: auto;
|
|
|
|
min-height: 0; // firefox
|
2019-01-19 04:43:17 +08:00
|
|
|
}
|