2019-01-18 23:43:17 +03:00
|
|
|
/*
|
|
|
|
Copyright 2017 Travis Ralston
|
2019-01-19 01:07:11 +03:00
|
|
|
Copyright 2019 New Vector Ltd
|
2021-07-15 11:55:58 +03:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
2019-01-18 23:43:17 +03: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 09:11:16 +03:00
|
|
|
margin: 0;
|
2024-03-13 16:38:32 +03:00
|
|
|
padding: 0 0 0 var(--cpd-space-8x);
|
2019-01-30 09:11:16 +03:00
|
|
|
display: flex;
|
2019-01-30 07:45:15 +03:00
|
|
|
flex-direction: column;
|
2023-05-09 13:02:12 +03:00
|
|
|
inset: 0;
|
2020-10-06 16:48:43 +03:00
|
|
|
margin-top: 8px;
|
2019-01-18 23:43:17 +03:00
|
|
|
}
|
|
|
|
|
2021-07-15 11:55:58 +03:00
|
|
|
.mx_TabbedView_tabsOnLeft {
|
|
|
|
flex-direction: column;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabels {
|
2024-03-05 07:25:47 +03:00
|
|
|
width: 220px;
|
|
|
|
max-width: 220px;
|
2021-07-15 11:55:58 +03:00
|
|
|
position: fixed;
|
2023-05-15 20:57:29 +03:00
|
|
|
margin: 0; /* Remove the default value */
|
|
|
|
padding: 0; /* Remove the default value */
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanel {
|
2024-03-05 07:25:47 +03:00
|
|
|
margin-left: 280px; /* 220px sidebar + 60px padding */
|
2021-07-15 11:55:58 +03:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2024-03-05 07:25:47 +03:00
|
|
|
.mx_TabbedView_tabLabel:hover,
|
2021-07-15 11:55:58 +03:00
|
|
|
.mx_TabbedView_tabLabel_active {
|
2024-02-20 19:24:40 +03:00
|
|
|
color: $tab-label-active-fg-color;
|
2024-03-05 07:25:47 +03:00
|
|
|
|
|
|
|
.mx_TabbedView_maskedIcon::before {
|
|
|
|
background-color: var(--cpd-color-icon-primary);
|
|
|
|
}
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
|
2024-03-05 07:25:47 +03:00
|
|
|
.mx_TabbedView_tabLabel_active {
|
|
|
|
background-color: var(--cpd-color-bg-subtle-secondary);
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_maskedIcon {
|
2024-03-05 07:25:47 +03:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-right: var(--cpd-space-3x);
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_maskedIcon::before {
|
2024-03-05 07:25:47 +03:00
|
|
|
mask-size: 20px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
transition: background-color 0.1s;
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabsOnTop {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabels {
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel {
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 52px;
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
|
|
|
font-size: 15px;
|
2021-08-12 12:53:54 +03:00
|
|
|
color: $tertiary-content;
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanel {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_active {
|
2021-11-11 16:37:29 +03:00
|
|
|
color: $accent;
|
2021-07-15 11:55:58 +03:00
|
|
|
.mx_TabbedView_tabLabel_text {
|
2021-11-11 16:37:29 +03:00
|
|
|
color: $accent;
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_active .mx_TabbedView_maskedIcon::before {
|
2021-11-11 16:37:29 +03:00
|
|
|
background-color: $accent;
|
2021-07-15 11:55:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_maskedIcon {
|
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
|
|
|
margin-left: 0px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_maskedIcon::before {
|
|
|
|
mask-size: 22px;
|
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-18 23:43:17 +03:00
|
|
|
.mx_TabbedView_tabLabels {
|
2019-01-30 09:11:16 +03:00
|
|
|
color: $tab-label-fg-color;
|
2019-01-18 23:43:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel {
|
2020-10-06 16:48:43 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-01-30 09:11:16 +03:00
|
|
|
vertical-align: text-top;
|
|
|
|
cursor: pointer;
|
2024-03-05 07:25:47 +03:00
|
|
|
padding-block: var(--cpd-space-2x);
|
|
|
|
padding-inline: var(--cpd-space-3x) var(--cpd-space-4x);
|
|
|
|
box-sizing: border-box;
|
|
|
|
min-block-size: 40px;
|
2024-05-10 19:29:50 +03:00
|
|
|
min-inline-size: 40px;
|
2024-03-05 07:25:47 +03:00
|
|
|
border-radius: 24px;
|
|
|
|
font: var(--cpd-font-body-md-medium);
|
2019-01-30 09:11:16 +03:00
|
|
|
position: relative;
|
2024-03-05 07:25:47 +03:00
|
|
|
transition:
|
|
|
|
color 0.1s,
|
|
|
|
background-color 0.1s;
|
2024-08-06 19:08:45 +03:00
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-right: var(--cpd-space-3x);
|
|
|
|
}
|
2019-01-18 23:43:17 +03:00
|
|
|
}
|
|
|
|
|
2019-04-09 17:03:13 +03:00
|
|
|
.mx_TabbedView_maskedIcon {
|
2019-01-30 09:11:16 +03:00
|
|
|
display: inline-block;
|
2019-01-19 05:40:21 +03:00
|
|
|
}
|
|
|
|
|
2019-04-09 17:03:13 +03:00
|
|
|
.mx_TabbedView_maskedIcon::before {
|
2019-01-30 09:11:16 +03:00
|
|
|
display: inline-block;
|
2024-03-05 07:25:47 +03:00
|
|
|
background-color: var(--cpd-color-icon-secondary);
|
2019-01-30 09:11:16 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2019-01-19 05:40:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
2019-01-30 09:11:16 +03:00
|
|
|
vertical-align: middle;
|
2019-01-19 05:40:21 +03:00
|
|
|
}
|
|
|
|
|
2019-01-18 23:43:17 +03:00
|
|
|
.mx_TabbedView_tabPanel {
|
2019-01-30 09:11:16 +03:00
|
|
|
flex-grow: 1;
|
2019-01-30 07:45:15 +03:00
|
|
|
display: flex;
|
2022-07-27 16:39:29 +03:00
|
|
|
min-height: 0; /* firefox */
|
2019-01-18 23:43:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanelContent {
|
2019-01-30 09:11:16 +03:00
|
|
|
flex-grow: 1;
|
2019-01-30 07:45:15 +03:00
|
|
|
overflow: auto;
|
2022-07-27 16:39:29 +03:00
|
|
|
min-height: 0; /* firefox */
|
2019-04-08 18:48:42 +03:00
|
|
|
}
|
2024-05-10 19:29:50 +03:00
|
|
|
|
|
|
|
/* Hide the labels on tabs, showing only the icons, on narrow viewports. */
|
2024-05-28 13:59:31 +03:00
|
|
|
@media (max-width: 1024px) {
|
2024-05-10 19:29:50 +03:00
|
|
|
.mx_TabbedView_tabsOnLeft.mx_TabbedView_responsive {
|
|
|
|
.mx_TabbedView_tabLabel_text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.mx_TabbedView_tabPanel {
|
|
|
|
margin-left: 72px; /* 40px sidebar + 32px padding */
|
|
|
|
}
|
|
|
|
.mx_TabbedView_maskedIcon {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
.mx_TabbedView_tabLabels {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
.mx_TabbedView_tabLabel {
|
|
|
|
padding-inline: 0 0;
|
2024-08-06 19:08:45 +03:00
|
|
|
justify-content: center;
|
|
|
|
svg {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2024-05-10 19:29:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|