2024-01-07 21:33:22 +00:00
|
|
|
/*
|
|
|
|
Example:
|
|
|
|
<tab class="tab">
|
|
|
|
<div>Graphics</div>
|
|
|
|
<div class="tab__indicator"></div>
|
|
|
|
</tab>
|
|
|
|
*/
|
|
|
|
|
2024-01-07 00:04:28 +00:00
|
|
|
.tabs tabs {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab {
|
|
|
|
@extend %nav-all;
|
2024-01-22 16:43:21 +00:00
|
|
|
@extend %header-3;
|
2024-01-07 00:04:28 +00:00
|
|
|
display: block;
|
2024-01-07 21:33:22 +00:00
|
|
|
position: relative;
|
|
|
|
padding: space(20) space(24);
|
2024-01-07 00:04:28 +00:00
|
|
|
background-color: rgba(0,0,0,0);
|
|
|
|
margin: 0;
|
|
|
|
color: $color-text-inactive;
|
|
|
|
transition: color $transition-quick;
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
color: $color-text;
|
2024-01-07 21:33:22 +00:00
|
|
|
|
|
|
|
.tab__indicator {
|
|
|
|
background-color: $color-border-solid;
|
|
|
|
}
|
|
|
|
|
2024-01-07 00:04:28 +00:00
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: $color-text;
|
|
|
|
}
|
|
|
|
}
|
2024-01-07 21:33:22 +00:00
|
|
|
|
|
|
|
.tab__indicator {
|
|
|
|
position: absolute;
|
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
|
right: 0;
|
|
|
|
bottom: 2dp;
|
|
|
|
left: 0;
|
|
|
|
height: 2dp;
|
|
|
|
}
|