123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- .tabs
- @extend .block
- @extend .unselectable
- align-items: stretch
- display: flex
- justify-content: space-between
- line-height: 24px
- overflow: hidden
- overflow-x: auto
- white-space: nowrap
- a
- align-items: center
- border-bottom: 1px solid $border
- color: $text
- display: flex
- justify-content: center
- margin-bottom: -1px
- padding: 6px 12px
- vertical-align: top
- &:hover
- border-bottom-color: $text-strong
- color: $text-strong
- li
- display: block
- &.is-active
- a
- border-bottom-color: $link
- color: $link
- ul
- align-items: center
- border-bottom: 1px solid $border
- display: flex
- flex-grow: 1
- justify-content: flex-start
- &.is-left
- padding-right: 10px
- &.is-center
- flex: none
- justify-content: center
- padding-left: 10px
- padding-right: 10px
- &.is-right
- justify-content: flex-end
- padding-left: 10px
- .icon
- &:first-child
- margin-right: 8px
- &:last-child
- margin-left: 8px
- // Alignment
- &.is-centered
- ul
- justify-content: center
- &.is-right
- ul
- justify-content: flex-end
- // Styles
- &.is-boxed
- a
- border: 1px solid transparent
- border-radius: $radius $radius 0 0
- padding-bottom: 5px
- padding-top: 5px
- &:hover
- background-color: $background
- border-bottom-color: $border
- li
- &.is-active
- a
- background-color: $white
- border-color: $border
- border-bottom-color: transparent !important
- &.is-fullwidth
- li
- flex-grow: 1
- &.is-toggle
- a
- border: 1px solid $border
- margin-bottom: 0
- padding-bottom: 5px
- padding-top: 5px
- position: relative
- &:hover
- background-color: $background
- border-color: $border-hover
- z-index: 2
- li
- & + li
- margin-left: -1px
- &:first-child a
- border-radius: $radius 0 0 $radius
- &:last-child a
- border-radius: 0 $radius $radius 0
- &.is-active
- a
- background-color: $primary
- border-color: $primary
- color: $primary-invert
- z-index: 1
- ul
- border-bottom: none
- // Sizes
- &.is-small
- font-size: $size-small
- a
- padding: 2px 8px
- &.is-boxed,
- &.is-toggle
- a
- padding-bottom: 1px
- padding-top: 1px
- &.is-medium
- font-size: $size-medium
- a
- padding: 10px 16px
- &.is-boxed,
- &.is-toggle
- a
- padding-bottom: 9px
- padding-top: 9px
- &.is-large
- font-size: $size-large
- a
- padding: 14px 20px
- &.is-boxed,
- &.is-toggle
- a
- padding-bottom: 13px
- padding-top: 13px
|