2018-08-27 12:22:25 -07:00
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.tab-switcher {
|
2019-08-12 10:01:38 -07:00
|
|
|
display: flex;
|
2020-05-03 07:36:12 -07:00
|
|
|
|
|
|
|
&.top-tabs {
|
|
|
|
flex-direction: column;
|
|
|
|
> .tabs {
|
|
|
|
width: 100%;
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
padding-top: 5px;
|
|
|
|
flex-direction: row;
|
|
|
|
&::after, &::before {
|
|
|
|
content: '';
|
|
|
|
flex: 1 1 auto;
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
border-bottom-color: $fallback--border;
|
|
|
|
border-bottom-color: var(--border, $fallback--border);
|
|
|
|
}
|
|
|
|
.tab-wrapper {
|
|
|
|
height: 28px;
|
|
|
|
|
|
|
|
&:not(.active)::after {
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
border-bottom-color: $fallback--border;
|
|
|
|
border-bottom-color: var(--border, $fallback--border);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tab {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 1px;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
padding-bottom: 99px;
|
|
|
|
margin-bottom: 6px - 99px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.contents.scrollable-tabs {
|
|
|
|
flex-basis: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.side-tabs {
|
|
|
|
flex-direction: row;
|
2020-05-09 20:46:06 -07:00
|
|
|
@media all and (max-width: 800px) {
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
2020-05-03 07:36:12 -07:00
|
|
|
> .contents {
|
|
|
|
flex: 0 1 80%;
|
2020-05-09 20:46:06 -07:00
|
|
|
@media all and (max-width: 800px) {
|
|
|
|
min-width: 96vw;
|
|
|
|
}
|
2020-05-03 07:36:12 -07:00
|
|
|
}
|
|
|
|
> .tabs {
|
|
|
|
flex: 1 0 auto;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
padding-top: 5px;
|
|
|
|
flex-direction: column;
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
flex: 1 1 auto;
|
|
|
|
border-right: 1px solid;
|
|
|
|
border-right-color: $fallback--border;
|
|
|
|
border-right-color: var(--border, $fallback--border);
|
|
|
|
}
|
|
|
|
.tab-wrapper {
|
|
|
|
min-width: 10em;
|
|
|
|
&:not(.active)::after {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
border-right: 1px solid;
|
|
|
|
border-right-color: $fallback--border;
|
|
|
|
border-right-color: var(--border, $fallback--border);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tab {
|
|
|
|
box-sizing: content-box;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
min-width: 10em;
|
|
|
|
min-width: 1px;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
// padding-right: 200px;
|
|
|
|
// margin-right: 6px - 200px;
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-wrapper {
|
|
|
|
min-width: 10em;
|
|
|
|
&:not(.active)::after {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
border-right: 1px solid;
|
|
|
|
border-right-color: $fallback--border;
|
|
|
|
border-right-color: var(--border, $fallback--border);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tab {
|
|
|
|
box-sizing: content-box;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
min-width: 10em;
|
|
|
|
min-width: 1px;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
// padding-right: 200px;
|
|
|
|
// margin-right: 6px - 200px;
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-12 10:01:38 -07:00
|
|
|
|
2018-11-20 20:38:00 -08:00
|
|
|
.contents {
|
2019-08-12 10:01:38 -07:00
|
|
|
flex: 1 0 auto;
|
|
|
|
min-height: 0px;
|
|
|
|
|
2018-11-20 20:38:00 -08:00
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-08-12 10:01:38 -07:00
|
|
|
|
|
|
|
&.scrollable-tabs {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2018-11-20 20:38:00 -08:00
|
|
|
}
|
2020-05-03 07:36:12 -07:00
|
|
|
|
|
|
|
.tab {
|
|
|
|
position: relative;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
padding: 6px 1em;
|
|
|
|
color: $fallback--text;
|
|
|
|
color: var(--tabText, $fallback--text);
|
|
|
|
background-color: $fallback--fg;
|
|
|
|
background-color: var(--tab, $fallback--fg);
|
|
|
|
|
|
|
|
&:not(.active) {
|
|
|
|
z-index: 4;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
z-index: 6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: transparent;
|
|
|
|
z-index: 5;
|
|
|
|
color: $fallback--text;
|
|
|
|
color: var(--tabActiveText, $fallback--text);
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-height: 26px;
|
|
|
|
vertical-align: top;
|
|
|
|
margin-top: -5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-27 12:22:25 -07:00
|
|
|
.tabs {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2018-11-21 10:28:22 -08:00
|
|
|
box-sizing: border-box;
|
2018-08-27 12:22:25 -07:00
|
|
|
|
|
|
|
&::after, &::before {
|
|
|
|
display: block;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
2020-05-03 07:36:12 -07:00
|
|
|
}
|
2018-08-27 12:22:25 -07:00
|
|
|
|
2020-05-03 07:36:12 -07:00
|
|
|
.tab-wrapper {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex: 0 0 auto;
|
2018-12-15 15:35:42 -08:00
|
|
|
|
2020-05-03 07:36:12 -07:00
|
|
|
&:not(.active) {
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
z-index: 7;
|
2018-08-27 12:22:25 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|