mirror of
https://github.com/papercss/papercss
synced 2024-06-08 08:52:25 +02:00
39 lines
715 B
SCSS
39 lines
715 B
SCSS
.tabs {
|
|
.content {
|
|
display: none;
|
|
flex-basis: 100%;
|
|
padding: 0.75rem 0 0;
|
|
}
|
|
|
|
input {
|
|
display: none;
|
|
|
|
&:checked + label {
|
|
@include color(color, 'primary');
|
|
@include color('border-bottom-color', 'secondary');
|
|
border-bottom-style: solid;
|
|
border-bottom-width: 3px;
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|
|
}
|