105 lines
1.7 KiB
CSS
105 lines
1.7 KiB
CSS
/*
|
|
Copyright 2022 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.
|
|
*/
|
|
|
|
.tabContainer {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.tabList {
|
|
display: flex;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 auto 24px auto;
|
|
}
|
|
|
|
.tab {
|
|
max-width: 190px;
|
|
min-width: fit-content;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
background-color: transparent;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 8px;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tab > * {
|
|
color: var(--secondary-content);
|
|
margin: 0 8px 0 0;
|
|
}
|
|
|
|
.tab svg * {
|
|
fill: var(--secondary-content);
|
|
}
|
|
|
|
.tab > :last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.tab.selected {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
.tab.selected * {
|
|
color: var(--primary-content);
|
|
}
|
|
|
|
.tab.selected svg * {
|
|
fill: var(--primary-content);
|
|
}
|
|
|
|
.tab.disabled {
|
|
}
|
|
|
|
.tabPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
padding: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media (min-width: 800px) {
|
|
.tab {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.tab > * {
|
|
margin: 0 16px 0 0;
|
|
}
|
|
|
|
.tabContainer {
|
|
width: 100%;
|
|
flex-direction: row;
|
|
padding: 27px 20px;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tabList {
|
|
flex-direction: column;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.tabPanel {
|
|
padding: 0 40px;
|
|
}
|
|
}
|