2020-05-19 16:53:54 +00:00
|
|
|
.breadcrumb {
|
2022-11-04 15:49:41 +00:00
|
|
|
// scss-docs-start breadcrumb-css-vars
|
|
|
|
--#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x};
|
|
|
|
--#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
|
|
|
|
--#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
|
|
|
|
@include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
|
|
|
|
--#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
|
|
|
|
--#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
|
|
|
|
--#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
|
|
|
|
--#{$prefix}breadcrumb-item-padding-x: #{$breadcrumb-item-padding-x};
|
|
|
|
--#{$prefix}breadcrumb-item-active-color: #{$breadcrumb-active-color};
|
|
|
|
// scss-docs-end breadcrumb-css-vars
|
|
|
|
|
2020-05-19 16:53:54 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2022-11-04 15:49:41 +00:00
|
|
|
padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
|
|
|
|
margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
|
|
|
|
@include font-size(var(--#{$prefix}breadcrumb-font-size));
|
2020-05-19 16:53:54 +00:00
|
|
|
list-style: none;
|
2022-11-04 15:49:41 +00:00
|
|
|
background-color: var(--#{$prefix}breadcrumb-bg);
|
|
|
|
@include border-radius(var(--#{$prefix}breadcrumb-border-radius));
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.breadcrumb-item {
|
|
|
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
|
|
|
+ .breadcrumb-item {
|
2022-11-04 15:49:41 +00:00
|
|
|
padding-left: var(--#{$prefix}breadcrumb-item-padding-x);
|
2020-05-19 16:53:54 +00:00
|
|
|
|
|
|
|
&::before {
|
2021-03-30 12:34:31 +00:00
|
|
|
float: left; // Suppress inline spacings and underlining of the separator
|
2022-11-04 15:49:41 +00:00
|
|
|
padding-right: var(--#{$prefix}breadcrumb-item-padding-x);
|
|
|
|
color: var(--#{$prefix}breadcrumb-divider-color);
|
|
|
|
content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2022-11-04 15:49:41 +00:00
|
|
|
color: var(--#{$prefix}breadcrumb-item-active-color);
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
}
|