2016-01-24 00:03:43 +00:00
|
|
|
.tabs
|
2016-09-22 23:14:18 +01:00
|
|
|
+block
|
2017-04-15 17:54:47 +01:00
|
|
|
+overflow-touch
|
2016-09-22 23:14:18 +01:00
|
|
|
+unselectable
|
2016-05-07 23:40:06 +01:00
|
|
|
align-items: stretch
|
|
|
|
|
display: flex
|
2016-10-30 22:52:04 +00:00
|
|
|
font-size: $size-normal
|
2016-05-07 23:40:06 +01:00
|
|
|
justify-content: space-between
|
2016-01-24 00:03:43 +00:00
|
|
|
overflow: hidden
|
|
|
|
|
overflow-x: auto
|
|
|
|
|
white-space: nowrap
|
|
|
|
|
a
|
2016-05-05 22:23:08 +01:00
|
|
|
align-items: center
|
2016-01-24 00:03:43 +00:00
|
|
|
border-bottom: 1px solid $border
|
|
|
|
|
color: $text
|
2016-05-05 22:23:08 +01:00
|
|
|
display: flex
|
|
|
|
|
justify-content: center
|
2016-01-24 00:03:43 +00:00
|
|
|
margin-bottom: -1px
|
2016-10-30 22:52:04 +00:00
|
|
|
padding: 0.5em 1em
|
2016-01-24 00:03:43 +00:00
|
|
|
vertical-align: top
|
|
|
|
|
&:hover
|
|
|
|
|
border-bottom-color: $text-strong
|
|
|
|
|
color: $text-strong
|
|
|
|
|
li
|
2016-01-26 00:02:38 +00:00
|
|
|
display: block
|
2016-01-24 00:03:43 +00:00
|
|
|
&.is-active
|
|
|
|
|
a
|
2016-12-22 18:17:26 +00:00
|
|
|
border-bottom-color: $primary
|
|
|
|
|
color: $primary
|
2016-01-24 00:03:43 +00:00
|
|
|
ul
|
2016-05-07 23:40:06 +01:00
|
|
|
align-items: center
|
2016-01-24 00:03:43 +00:00
|
|
|
border-bottom: 1px solid $border
|
2016-01-26 00:02:38 +00:00
|
|
|
display: flex
|
2016-07-31 11:45:56 +01:00
|
|
|
flex-grow: 1
|
2016-09-11 12:00:49 +01:00
|
|
|
flex-shrink: 0
|
2016-05-07 23:40:06 +01:00
|
|
|
justify-content: flex-start
|
|
|
|
|
&.is-left
|
2016-10-30 22:52:04 +00:00
|
|
|
padding-right: 0.75em
|
2016-05-07 23:40:06 +01:00
|
|
|
&.is-center
|
|
|
|
|
flex: none
|
|
|
|
|
justify-content: center
|
2016-10-30 22:52:04 +00:00
|
|
|
padding-left: 0.75em
|
|
|
|
|
padding-right: 0.75em
|
2016-05-07 23:40:06 +01:00
|
|
|
&.is-right
|
|
|
|
|
justify-content: flex-end
|
2016-10-30 22:52:04 +00:00
|
|
|
padding-left: 0.75em
|
2016-05-05 22:23:08 +01:00
|
|
|
.icon
|
|
|
|
|
&:first-child
|
2016-10-30 22:52:04 +00:00
|
|
|
margin-right: 0.5em
|
2016-05-05 22:23:08 +01:00
|
|
|
&:last-child
|
2016-10-30 22:52:04 +00:00
|
|
|
margin-left: 0.5em
|
2016-05-07 23:40:06 +01:00
|
|
|
// Alignment
|
|
|
|
|
&.is-centered
|
|
|
|
|
ul
|
|
|
|
|
justify-content: center
|
|
|
|
|
&.is-right
|
|
|
|
|
ul
|
|
|
|
|
justify-content: flex-end
|
|
|
|
|
// Styles
|
2016-01-24 00:03:43 +00:00
|
|
|
&.is-boxed
|
|
|
|
|
a
|
|
|
|
|
border: 1px solid transparent
|
|
|
|
|
border-radius: $radius $radius 0 0
|
|
|
|
|
&:hover
|
2016-06-29 23:59:48 +01:00
|
|
|
background-color: $background
|
2016-01-24 00:03:43 +00:00
|
|
|
border-bottom-color: $border
|
|
|
|
|
li
|
|
|
|
|
&.is-active
|
|
|
|
|
a
|
2016-06-29 23:59:48 +01:00
|
|
|
background-color: $white
|
2016-01-24 00:03:43 +00:00
|
|
|
border-color: $border
|
2016-05-08 01:35:43 +01:00
|
|
|
border-bottom-color: transparent !important
|
2016-04-10 16:27:27 +01:00
|
|
|
&.is-fullwidth
|
|
|
|
|
li
|
2016-07-31 11:45:56 +01:00
|
|
|
flex-grow: 1
|
2016-09-11 12:00:49 +01:00
|
|
|
flex-shrink: 0
|
2016-01-24 00:03:43 +00:00
|
|
|
&.is-toggle
|
|
|
|
|
a
|
|
|
|
|
border: 1px solid $border
|
|
|
|
|
margin-bottom: 0
|
|
|
|
|
position: relative
|
|
|
|
|
&:hover
|
2016-06-29 23:59:48 +01:00
|
|
|
background-color: $background
|
2016-01-24 00:03:43 +00:00
|
|
|
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
|
2016-06-29 23:59:48 +01:00
|
|
|
background-color: $primary
|
2016-01-24 00:03:43 +00:00
|
|
|
border-color: $primary
|
|
|
|
|
color: $primary-invert
|
|
|
|
|
z-index: 1
|
2016-01-26 00:02:38 +00:00
|
|
|
ul
|
|
|
|
|
border-bottom: none
|
2016-05-07 23:40:06 +01:00
|
|
|
// Sizes
|
|
|
|
|
&.is-small
|
|
|
|
|
font-size: $size-small
|
|
|
|
|
&.is-medium
|
|
|
|
|
font-size: $size-medium
|
|
|
|
|
&.is-large
|
|
|
|
|
font-size: $size-large
|