element-call/src/tabs/Tabs.module.css

86 lines
1.1 KiB
CSS
Raw Normal View History

2021-12-06 17:34:10 -08:00
.tabContainer {
display: flex;
2021-12-14 15:28:54 -08:00
flex: 1;
2022-01-21 15:43:03 -08:00
flex-direction: column;
2021-12-06 17:34:10 -08:00
}
.tabList {
display: flex;
list-style: none;
padding: 0;
2022-01-21 15:43:03 -08:00
margin: 0 auto 24px auto;
2021-12-06 17:34:10 -08:00
}
.tab {
2021-12-10 10:54:18 -08:00
max-width: 190px;
min-width: fit-content;
2021-12-06 17:34:10 -08:00
height: 32px;
border-radius: 8px;
background-color: transparent;
display: flex;
align-items: center;
2022-01-21 15:43:03 -08:00
padding: 0 8px;
2021-12-06 17:34:10 -08:00
border: none;
cursor: pointer;
}
.tab > * {
2021-12-13 16:28:50 -08:00
color: var(--textColor4);
2022-01-21 15:43:03 -08:00
margin: 0 8px 0 0;
2021-12-06 17:34:10 -08:00
}
.tab svg * {
2021-12-13 16:28:50 -08:00
fill: var(--textColor4);
2021-12-06 17:34:10 -08:00
}
.tab > :last-child {
margin-right: 0;
}
.tab.selected {
background-color: #0dbd8b;
}
.tab.selected * {
color: #ffffff;
}
.tab.selected svg * {
fill: #ffffff;
}
.tab.disabled {
}
.tabPanel {
display: flex;
flex-direction: column;
flex: 1;
2022-01-21 15:43:03 -08:00
padding: 0;
2021-12-10 10:54:18 -08:00
overflow-y: auto;
2021-12-06 17:34:10 -08:00
}
2022-01-21 15:43:03 -08:00
@media (min-width: 800px) {
.tab {
padding: 0 16px;
}
.tab > * {
margin: 0 16px 0 0;
}
.tabContainer {
width: 100%;
flex-direction: row;
2022-01-21 17:02:24 -08:00
margin: 27px 16px;
2022-01-21 15:43:03 -08:00
}
.tabList {
flex-direction: column;
margin-bottom: 0;
}
.tabPanel {
padding: 0 40px;
}
}