mirror of
https://github.com/papercss/papercss
synced 2024-06-07 16:32:15 +02:00
36 lines
612 B
SCSS
36 lines
612 B
SCSS
.tabs {
|
|
.content {
|
|
display: none;
|
|
padding: 0.75rem 0 0;
|
|
}
|
|
|
|
input {
|
|
display: none;
|
|
|
|
&:checked + label {
|
|
@include color(color, 'primary');
|
|
border-bottom: solid 3px $secondary;
|
|
}
|
|
|
|
@for $num from 1 through 5 {
|
|
&[id='tab#{$num}']:checked ~ div[id='content#{$num}'] {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
label {
|
|
@include color('color', primary-light);
|
|
display: inline-block;
|
|
font-weight: 600;
|
|
margin: 0 0 -1px;
|
|
padding: 0.75rem;
|
|
text-align: center;
|
|
|
|
&:hover {
|
|
@include color('color', muted);
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|