bulma/sass/components/tabs.sass

108 lines
2.3 KiB
Sass
Raw Normal View History

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