bulma/sass/components/breadcrumb.sass

75 lines
1.6 KiB
Sass
Raw Permalink Normal View History

2017-10-10 08:54:53 +00:00
$breadcrumb-item-color: $link !default
2017-07-28 20:05:15 +00:00
$breadcrumb-item-hover-color: $link-hover !default
$breadcrumb-item-active-color: $text-strong !default
$breadcrumb-item-separator-color: $text !default
.breadcrumb
+block
+unselectable
align-items: stretch
display: flex
font-size: $size-normal
overflow: hidden
overflow-x: auto
white-space: nowrap
a
align-items: center
2017-07-28 20:05:15 +00:00
color: $breadcrumb-item-color
display: flex
justify-content: center
padding: 0.5em 0.75em
&:hover
2017-07-28 20:05:15 +00:00
color: $breadcrumb-item-hover-color
li
align-items: center
display: flex
2017-09-18 21:37:58 +00:00
&:first-child a
padding-left: 0
&.is-active
a
2017-07-28 20:05:15 +00:00
color: $breadcrumb-item-active-color
cursor: default
pointer-events: none
2017-07-28 20:05:15 +00:00
& + li::before
color: $breadcrumb-item-separator-color
content: "\0002f"
ul, ol
align-items: center
display: flex
flex-grow: 1
flex-shrink: 0
justify-content: flex-start
.icon
&:first-child
margin-right: 0.5em
&:last-child
margin-left: 0.5em
// Alignment
&.is-centered
ol, ul
justify-content: center
&.is-right
ol, ul
justify-content: flex-end
// Sizes
&.is-small
font-size: $size-small
&.is-medium
font-size: $size-medium
&.is-large
font-size: $size-large
// Styles
&.has-arrow-separator
2017-07-28 20:05:15 +00:00
li + li::before
content: "\02192"
&.has-bullet-separator
2017-07-28 20:05:15 +00:00
li + li::before
content: "\02022"
&.has-dot-separator
2017-07-28 20:05:15 +00:00
li + li::before
content: "\000b7"
&.has-succeeds-separator
2017-07-28 20:05:15 +00:00
li + li::before
content: "\0227B"