bulma/sass/components/tabs.sass

105 lines
2.0 KiB
Sass
Raw Normal View History

2016-01-24 00:03:43 +00:00
.tabs
@extend .block
2016-01-24 00:03:43 +00:00
line-height: 24px
overflow: hidden
overflow-x: auto
white-space: nowrap
a
border-bottom: 1px solid $border
color: $text
display: block
margin-bottom: -1px
padding: 5px 0
vertical-align: top
&:hover
border-bottom-color: $text-strong
color: $text-strong
li
display: block
2016-01-24 00:03:43 +00:00
vertical-align: top
& + li
margin-left: 20px
2016-04-10 15:27:27 +00:00
// Modifiers
2016-01-24 00:03:43 +00:00
&.is-active
a
border-bottom-color: $link
color: $link
ul
border-bottom: 1px solid $border
display: flex
2016-04-10 15:27:27 +00:00
.fa
font-size: 14px
line-height: 20px
margin: 2px -2px
width: 20px
// Modifiers
2016-01-24 00:03:43 +00:00
&.is-boxed
a
border: 1px solid transparent
border-radius: $radius $radius 0 0
padding: 5px 15px
&:hover
background: $background
border-bottom-color: $border
li
& + li
margin-left: 5px
2016-04-10 15:27:27 +00:00
// Modifiers
2016-01-24 00:03:43 +00:00
&.is-active
a
background: white
border-color: $border
border-bottom-color: transparent
2016-04-10 15:27:27 +00:00
// Modifiers
&.is-centered
li
&,
& + li
margin: 0 2px
2016-04-10 15:27:27 +00:00
&.is-centered
a
padding: 5px 10px
li
& + li
margin-left: 0
ul
justify-content: center
text-align: center
&.is-fullwidth
li
flex: 1
& + li
margin-left: 0
ul
justify-content: center
text-align: center
&.is-right
ul
justify-content: flex-end
2016-01-24 00:03:43 +00:00
&.is-toggle
a
border: 1px solid $border
margin-bottom: 0
padding: 5px 10px
position: relative
&:hover
background: $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
2016-04-10 15:27:27 +00:00
// Modifiers
2016-01-24 00:03:43 +00:00
&.is-active
a
background: $primary
border-color: $primary
color: $primary-invert
z-index: 1
ul
border-bottom: none