2020-08-22 09:19:21 +00:00
|
|
|
$breadcrumb-font-size: var(--size-normal, #{$size-normal}) !default
|
|
|
|
|
|
|
|
$breadcrumb-item-color: var(--link, #{$link}) !default
|
|
|
|
$breadcrumb-item-hover-color: var(--link-hover, #{$link-hover}) !default
|
|
|
|
$breadcrumb-item-active-color: var(--text-strong, #{$text-strong}) !default
|
2017-07-28 20:05:15 +00:00
|
|
|
|
2018-04-09 09:35:44 +00:00
|
|
|
$breadcrumb-item-padding-vertical: 0 !default
|
|
|
|
$breadcrumb-item-padding-horizontal: 0.75em !default
|
|
|
|
|
2020-08-22 09:19:21 +00:00
|
|
|
$breadcrumb-item-separator-color: var(--border-hover, #{$border-hover}) !default
|
2017-07-28 20:05:15 +00:00
|
|
|
|
2017-06-27 20:29:15 +00:00
|
|
|
.breadcrumb
|
2020-08-22 09:19:21 +00:00
|
|
|
--breadcrumb-font-size: #{$content-font-size}
|
|
|
|
--breadcrumb-item-color: #{$breadcrumb-item-color}
|
|
|
|
--breadcrumb-item-hover-color: #{$breadcrumb-item-hover-color}
|
|
|
|
--breadcrumb-item-active-color: #{$breadcrumb-item-active-color}
|
|
|
|
--breadcrumb-item-separator-color: #{$breadcrumb-item-separator-color}
|
|
|
|
--breadcrumb-item-padding-vertical: #{$breadcrumb-item-padding-vertical}
|
|
|
|
--breadcrumb-item-padding-horizontal: #{$breadcrumb-item-padding-horizontal}
|
|
|
|
|
2018-09-04 13:24:50 +00:00
|
|
|
@extend %block
|
|
|
|
@extend %unselectable
|
2020-08-22 09:19:21 +00:00
|
|
|
font-size: var(--breadcrumb-font-size)
|
2017-06-27 20:29:15 +00:00
|
|
|
white-space: nowrap
|
|
|
|
a
|
|
|
|
align-items: center
|
2020-08-22 09:19:21 +00:00
|
|
|
color: var(--breadcrumb-item-color)
|
2017-06-27 20:29:15 +00:00
|
|
|
display: flex
|
|
|
|
justify-content: center
|
2020-08-22 09:19:21 +00:00
|
|
|
padding: var(--breadcrumb-item-padding-vertical) var(--breadcrumb-item-padding-horizontal)
|
2017-06-27 20:29:15 +00:00
|
|
|
&:hover
|
2020-08-22 09:19:21 +00:00
|
|
|
color: var(--breadcrumb-item-hover-color)
|
2017-06-27 20:29:15 +00:00
|
|
|
li
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
2017-09-18 21:37:58 +00:00
|
|
|
&:first-child a
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("padding", 0, false)
|
2017-06-27 20:29:15 +00:00
|
|
|
&.is-active
|
|
|
|
a
|
2020-08-22 09:19:21 +00:00
|
|
|
color: var(--breadcrumb-item-active-color)
|
2017-06-27 20:29:15 +00:00
|
|
|
cursor: default
|
|
|
|
pointer-events: none
|
2017-07-28 20:05:15 +00:00
|
|
|
& + li::before
|
2020-08-22 09:19:21 +00:00
|
|
|
color: var(--breadcrumb-item-separator-color)
|
2017-07-28 20:05:15 +00:00
|
|
|
content: "\0002f"
|
2018-04-09 11:45:52 +00:00
|
|
|
ul,
|
|
|
|
ol
|
|
|
|
align-items: flex-start
|
2017-06-27 20:29:15 +00:00
|
|
|
display: flex
|
2018-04-09 11:45:52 +00:00
|
|
|
flex-wrap: wrap
|
2017-06-27 20:29:15 +00:00
|
|
|
justify-content: flex-start
|
|
|
|
.icon
|
|
|
|
&:first-child
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("margin", 0.5em)
|
2017-06-27 20:29:15 +00:00
|
|
|
&:last-child
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("margin", 0.5em, false)
|
2017-06-27 20:29:15 +00:00
|
|
|
// Alignment
|
|
|
|
&.is-centered
|
2018-04-09 11:45:52 +00:00
|
|
|
ol,
|
2018-04-13 15:17:50 +00:00
|
|
|
ul
|
2017-06-27 20:29:15 +00:00
|
|
|
justify-content: center
|
|
|
|
&.is-right
|
2018-04-09 11:45:52 +00:00
|
|
|
ol,
|
2018-04-13 15:17:50 +00:00
|
|
|
ul
|
2017-06-27 20:29:15 +00:00
|
|
|
justify-content: flex-end
|
|
|
|
// Sizes
|
|
|
|
&.is-small
|
2020-08-22 09:19:21 +00:00
|
|
|
--breadcrumb-font-size: var(--size-small, #{$size-small})
|
2017-06-27 20:29:15 +00:00
|
|
|
&.is-medium
|
2020-08-22 09:19:21 +00:00
|
|
|
--breadcrumb-font-size: var(--size-medium, #{$size-medium})
|
2017-06-27 20:29:15 +00:00
|
|
|
&.is-large
|
2020-08-22 09:19:21 +00:00
|
|
|
--breadcrumb-font-size: var(--size-large, #{$size-large})
|
2017-06-27 20:29:15 +00:00
|
|
|
// Styles
|
|
|
|
&.has-arrow-separator
|
2017-07-28 20:05:15 +00:00
|
|
|
li + li::before
|
|
|
|
content: "\02192"
|
2017-06-27 20:29:15 +00:00
|
|
|
&.has-bullet-separator
|
2017-07-28 20:05:15 +00:00
|
|
|
li + li::before
|
|
|
|
content: "\02022"
|
2017-06-27 20:29:15 +00:00
|
|
|
&.has-dot-separator
|
2017-07-28 20:05:15 +00:00
|
|
|
li + li::before
|
|
|
|
content: "\000b7"
|
2017-06-27 20:29:15 +00:00
|
|
|
&.has-succeeds-separator
|
2017-07-28 20:05:15 +00:00
|
|
|
li + li::before
|
|
|
|
content: "\0227B"
|