2019-05-07 04:35:04 +02:00
|
|
|
.tabs {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs__list {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-tabs-background);
|
2019-06-11 20:10:58 +02:00
|
|
|
padding: var(--spacing-medium) var(--spacing-main-padding);
|
2019-05-07 04:35:04 +02:00
|
|
|
|
|
|
|
& > *: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 {
|
2019-06-11 20:10:58 +02:00
|
|
|
padding-left: calc(var(--channel-thumbnail-width) + var(--spacing-large));
|
|
|
|
padding-right: var(--spacing-medium);
|
2019-11-22 22:13:00 +01:00
|
|
|
height: 4rem;
|
2019-05-07 04:35:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab {
|
2019-07-21 23:31:22 +02:00
|
|
|
@extend .button--link;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-large);
|
2019-05-07 04:35:04 +02:00
|
|
|
padding: 5px 0;
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-tab-text);
|
2019-05-07 04:35:04 +02:00
|
|
|
position: relative;
|
2019-11-22 22:13:00 +01:00
|
|
|
font-size: var(--font-body);
|
2019-05-07 04:35:04 +02:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
bottom: calc(var(--tab-indicator-size) * -2);
|
|
|
|
height: 0;
|
|
|
|
width: 100%;
|
|
|
|
content: '';
|
|
|
|
}
|
2019-07-21 23:31:22 +02:00
|
|
|
|
|
|
|
&[data-selected] {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-link-active);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
2019-07-21 23:31:22 +02:00
|
|
|
}
|
2019-05-07 04:35:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.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);
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-tab-divider);
|
2019-05-07 04:35:04 +02:00
|
|
|
}
|