63 lines
1.2 KiB
SCSS
63 lines
1.2 KiB
SCSS
.tabs {
|
|
position: relative;
|
|
}
|
|
|
|
.tabs__list {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--color-tabs-background);
|
|
padding: var(--spacing-medium) var(--spacing-main-padding);
|
|
|
|
& > *:not(.tab) {
|
|
// If there is anything after the tabs, render it on the opposite side of the page
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
.tabs__list--channel-page {
|
|
padding-left: calc(var(--channel-thumbnail-width) + var(--spacing-large));
|
|
padding-right: var(--spacing-medium);
|
|
height: 4rem;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
padding-left: var(--spacing-medium);
|
|
}
|
|
}
|
|
|
|
.tab {
|
|
@extend .button--link;
|
|
margin-right: var(--spacing-large);
|
|
padding: 5px 0;
|
|
color: var(--color-tab-text);
|
|
position: relative;
|
|
font-size: var(--font-body);
|
|
|
|
&::after {
|
|
position: absolute;
|
|
bottom: calc(var(--tab-indicator-size) * -2);
|
|
height: 0;
|
|
width: 100%;
|
|
content: '';
|
|
}
|
|
|
|
&:focus {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.tab__divider {
|
|
position: absolute;
|
|
margin-top: calc(var(--tab-indicator-size) * -1);
|
|
}
|
|
|
|
.tab::after,
|
|
.tab__divider {
|
|
display: block;
|
|
transition: all var(--animation-duration) var(--animation-style);
|
|
}
|
|
|
|
.tab:hover::after,
|
|
.tab__divider {
|
|
height: var(--tab-indicator-size);
|
|
background-color: var(--color-tab-divider);
|
|
}
|