53 lines
1.2 KiB
SCSS
53 lines
1.2 KiB
SCSS
.content-type-tabbedview,
|
|
.content-type-tabbedfieldsets {
|
|
|
|
nav.tab-nav {
|
|
|
|
height: 3rem;
|
|
line-height: 3rem;
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
li {
|
|
display: inline-block;
|
|
label {
|
|
display: block;
|
|
cursor: pointer;
|
|
padding: 0 1rem;
|
|
background: $color_background_dark;
|
|
backdrop-filter: blur($backdrop_blur);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
section.tab {
|
|
display: none;
|
|
box-sizing: border-box;
|
|
border-top: 0.25rem solid;
|
|
border-color: $color_background_light;
|
|
}
|
|
|
|
input.tab-switch {
|
|
display: none; /* these inputs are :checked only through the associated <label> */
|
|
|
|
@for $i from 0 through 10 {
|
|
|
|
&.idx-$i:checked {
|
|
|
|
& ~ nav ul li label.idx-$i {
|
|
color: $color_highlight;
|
|
background: $color_background_light;
|
|
}
|
|
|
|
& ~ section.tab.idx-$i {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|