KNACSS/sass/components/tabs.scss
2017-08-01 22:02:31 +02:00

51 lines
981 B
SCSS

/* ----------------------------- */
/* ==Tabs */
/* ----------------------------- */
/* see example on https://knacss.com/styleguide.html#tabs */
/* NOTE : tabs need JavaScript to be activated */
.tabs-menu {
list-style: none;
padding-left: 0;
border-bottom: 2px solid $color-forms;
&-item {
@media (min-width: $tiny) {
display: inline-block;
}
margin-bottom: -2px;
}
&-link {
display: block;
@media (min-width: $tiny) {
display: inline-block;
}
padding: $tiny-value $medium-plus-value;
text-decoration: none;
transition: .25s background-color;
&:hover {
color: $color-forms;
}
&.is-active, &:focus {
outline: 0;
color: #fff;
background-color: $color-forms;
}
}
}
.tabs-content-item {
padding-top: 10px;
&[aria-hidden="true"] {
visibility: hidden;
@extend .visually-hidden;
}
&[aria-hidden="false"] {
visibility: visible;
}
}