2019-01-18 20:43:17 +00:00
|
|
|
/*
|
|
|
|
Copyright 2017 Travis Ralston
|
2019-01-18 22:07:11 +00:00
|
|
|
Copyright 2019 New Vector Ltd
|
2019-01-18 20:43:17 +00: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 {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabels {
|
2019-01-25 19:51:33 +00:00
|
|
|
width: 150px;
|
|
|
|
max-width: 150px;
|
2019-01-18 20:43:17 +00:00
|
|
|
height: 100%;
|
2019-01-18 22:07:11 +00:00
|
|
|
color: $tab-label-fg-color;
|
2019-01-18 20:43:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel {
|
2019-01-21 23:03:44 +00:00
|
|
|
vertical-align: text-top;
|
2019-01-18 20:43:17 +00:00
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
2019-01-18 22:07:11 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 600;
|
2019-01-25 19:51:33 +00:00
|
|
|
min-height: 20px; // use min-height instead of height to allow the label to overflow a bit
|
2019-01-19 03:25:44 +00:00
|
|
|
margin-bottom: 6px;
|
2019-01-22 16:54:35 +00:00
|
|
|
position: relative;
|
2019-01-18 20:43:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_active {
|
2019-01-18 22:07:11 +00:00
|
|
|
background-color: $tab-label-active-bg-color;
|
|
|
|
color: $tab-label-active-fg-color;
|
2019-01-18 20:43:17 +00:00
|
|
|
}
|
|
|
|
|
2019-01-22 00:27:43 +00:00
|
|
|
// TODO: Remove temporary hack alongside "visit old settings" tab
|
|
|
|
.mx_TabbedView_tabLabel_TEMP_HACK {
|
|
|
|
background-color: orange;
|
|
|
|
}
|
|
|
|
|
2019-01-22 16:54:35 +00:00
|
|
|
.mx_TabbedView_maskedIcon {;
|
2019-01-19 02:40:21 +00:00
|
|
|
margin-left: 6px;
|
|
|
|
margin-right: 9px;
|
2019-01-28 17:24:18 +00:00
|
|
|
margin-top: 1px;
|
2019-01-21 23:03:44 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2019-01-19 02:40:21 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2019-01-22 16:54:35 +00:00
|
|
|
.mx_TabbedView_maskedIcon:before {
|
|
|
|
display: inline-block;
|
2019-01-19 02:40:21 +00:00
|
|
|
background-color: $tab-label-icon-bg-color;
|
|
|
|
mask-repeat: no-repeat;
|
2019-01-21 23:03:44 +00:00
|
|
|
mask-size: 14px;
|
2019-01-22 16:54:35 +00:00
|
|
|
width: 14px;
|
2019-01-28 17:24:18 +00:00
|
|
|
height: 18px;
|
2019-01-19 02:40:21 +00:00
|
|
|
mask-position: center;
|
|
|
|
content: '';
|
2019-01-22 16:54:35 +00:00
|
|
|
vertical-align: middle;
|
2019-01-19 02:40:21 +00:00
|
|
|
}
|
|
|
|
|
2019-01-22 16:54:35 +00:00
|
|
|
.mx_TabbedView_tabLabel_active .mx_TabbedView_maskedIcon:before {
|
2019-01-19 02:40:21 +00:00
|
|
|
background-color: $tab-label-active-icon-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2019-01-18 20:43:17 +00:00
|
|
|
.mx_TabbedView_tabPanel {
|
2019-01-18 22:07:11 +00:00
|
|
|
width: calc(100% - 320px);
|
|
|
|
display: inline-block;
|
2019-01-19 03:22:36 +00:00
|
|
|
margin-left: 70px;
|
2019-01-19 03:09:23 +00:00
|
|
|
flex-grow: 1;
|
2019-01-18 20:43:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanelContent {
|
2019-01-18 22:07:11 +00:00
|
|
|
flex-grow: 1;
|
2019-01-22 00:27:43 +00:00
|
|
|
min-width: 560px;
|
2019-01-18 20:43:17 +00:00
|
|
|
}
|