KNACSS/sass/components/tabs.scss
Raphael Goetter 802dc55cc9 focus fix 2
2017-08-01 22:09:16 +02:00

51 lines
982 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, &:focus {
color: $color-forms;
}
&.is-active {
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;
}
}