2021-02-15 07:50:28 +00:00
|
|
|
@import "../utilities/mixins"
|
|
|
|
|
2018-01-29 09:42:34 +00:00
|
|
|
$breadcrumb-item-color: $link !default
|
|
|
|
$breadcrumb-item-hover-color: $link-hover !default
|
|
|
|
$breadcrumb-item-active-color: $text-strong !default
|
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
$breadcrumb-item-padding-vertical: 0 !default
|
|
|
|
$breadcrumb-item-padding-horizontal: 0.75em !default
|
|
|
|
|
|
|
|
$breadcrumb-item-separator-color: $border-hover !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.breadcrumb
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %block
|
|
|
|
@extend %unselectable
|
2018-01-29 09:42:34 +00:00
|
|
|
font-size: $size-normal
|
|
|
|
white-space: nowrap
|
|
|
|
a
|
|
|
|
align-items: center
|
|
|
|
color: $breadcrumb-item-color
|
|
|
|
display: flex
|
|
|
|
justify-content: center
|
2021-02-15 07:50:28 +00:00
|
|
|
padding: $breadcrumb-item-padding-vertical $breadcrumb-item-padding-horizontal
|
2018-01-29 09:42:34 +00:00
|
|
|
&:hover
|
|
|
|
color: $breadcrumb-item-hover-color
|
|
|
|
li
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
|
|
|
&:first-child a
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("padding", 0, false)
|
2018-01-29 09:42:34 +00:00
|
|
|
&.is-active
|
|
|
|
a
|
|
|
|
color: $breadcrumb-item-active-color
|
|
|
|
cursor: default
|
|
|
|
pointer-events: none
|
|
|
|
& + li::before
|
|
|
|
color: $breadcrumb-item-separator-color
|
|
|
|
content: "\0002f"
|
2021-02-15 07:50:28 +00:00
|
|
|
ul,
|
|
|
|
ol
|
|
|
|
align-items: flex-start
|
2018-01-29 09:42:34 +00:00
|
|
|
display: flex
|
2021-02-15 07:50:28 +00:00
|
|
|
flex-wrap: wrap
|
2018-01-29 09:42:34 +00:00
|
|
|
justify-content: flex-start
|
|
|
|
.icon
|
|
|
|
&:first-child
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("margin", 0.5em)
|
2018-01-29 09:42:34 +00:00
|
|
|
&:last-child
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("margin", 0.5em, false)
|
2018-01-29 09:42:34 +00:00
|
|
|
// Alignment
|
|
|
|
&.is-centered
|
2021-02-15 07:50:28 +00:00
|
|
|
ol,
|
|
|
|
ul
|
2018-01-29 09:42:34 +00:00
|
|
|
justify-content: center
|
|
|
|
&.is-right
|
2021-02-15 07:50:28 +00:00
|
|
|
ol,
|
|
|
|
ul
|
2018-01-29 09:42:34 +00:00
|
|
|
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
|
|
|
|
li + li::before
|
|
|
|
content: "\02192"
|
|
|
|
&.has-bullet-separator
|
|
|
|
li + li::before
|
|
|
|
content: "\02022"
|
|
|
|
&.has-dot-separator
|
|
|
|
li + li::before
|
|
|
|
content: "\000b7"
|
|
|
|
&.has-succeeds-separator
|
|
|
|
li + li::before
|
|
|
|
content: "\0227B"
|