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
|
|
|
|
|
2018-04-09 09:35:44 +00:00
|
|
|
$breadcrumb-item-padding-vertical: 0 !default
|
|
|
|
$breadcrumb-item-padding-horizontal: 0.75em !default
|
|
|
|
|
2019-10-13 14:12:30 +00:00
|
|
|
$breadcrumb-item-separator-color: $border-hover !default
|
2017-07-28 20:05:15 +00:00
|
|
|
|
2017-06-27 20:29:15 +00:00
|
|
|
.breadcrumb
|
2018-09-04 13:24:50 +00:00
|
|
|
@extend %block
|
|
|
|
@extend %unselectable
|
2017-06-27 20:29:15 +00:00
|
|
|
font-size: $size-normal
|
|
|
|
white-space: nowrap
|
|
|
|
a
|
|
|
|
align-items: center
|
2017-07-28 20:05:15 +00:00
|
|
|
color: $breadcrumb-item-color
|
2017-06-27 20:29:15 +00:00
|
|
|
display: flex
|
|
|
|
justify-content: center
|
2018-04-09 09:35:44 +00:00
|
|
|
padding: $breadcrumb-item-padding-vertical $breadcrumb-item-padding-horizontal
|
2017-06-27 20:29:15 +00:00
|
|
|
&:hover
|
2017-07-28 20:05:15 +00:00
|
|
|
color: $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
|
|
|
|
padding-left: 0
|
2017-06-27 20:29:15 +00:00
|
|
|
&.is-active
|
|
|
|
a
|
2017-07-28 20:05:15 +00:00
|
|
|
color: $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
|
|
|
|
color: $breadcrumb-item-separator-color
|
|
|
|
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
|
|
|
|
margin-right: 0.5em
|
|
|
|
&:last-child
|
|
|
|
margin-left: 0.5em
|
|
|
|
// 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
|
|
|
|
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"
|
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"
|