/* ----------------------------- */ /* ==Tabs */ /* ----------------------------- */ /* see example on https://knacss.com/styleguide.html#tabs */ /* NOTE : tabs need JavaScript to be activated */ $tabs-border : $gray-200 !default; $tabs-active-border : $gray-800 !default; $tabs-color : $color-base !default; $tabs-active-color : $gray-800 !default; $tabs-background : transparent !default; $tabs-active-background : transparent !default; $tabs-border-radius : 0 !default; .tabs-menu { border-bottom: 2px solid $tabs-border; &-link { display: block; margin-bottom: -2px; padding: $spacer-tiny $spacer-medium-plus; border-bottom: 4px solid transparent; color: $tabs-color; background: $tabs-background; text-decoration: none; border-radius: $tabs-border-radius $tabs-border-radius 0 0; transition: .25s; transition-property: color, border, background-color; &.is-active { border-bottom-color: $tabs-active-border; color: $tabs-active-color; background: $tabs-active-background; outline: 0; } &:focus { border-bottom-color: $tabs-active-border; color: $tabs-active-color; outline: 0; } @media (min-width: $small) { display: inline-block; } } } .tabs-content-item { padding-top: $spacer-small; &[aria-hidden="true"] { visibility: hidden; @extend .visually-hidden; } &[aria-hidden="false"] { visibility: visible; } }