mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-02 02:29:24 +01:00
- Add CSS custom property with fallback to Sass variable - Update docs to mention the new CSS custom property - Rewrite some of the docs to use divider instead of separator, and add some context here and there
29 lines
800 B
SCSS
29 lines
800 B
SCSS
.breadcrumb {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
|
margin-bottom: $breadcrumb-margin-bottom;
|
|
@include font-size($breadcrumb-font-size);
|
|
list-style: none;
|
|
background-color: $breadcrumb-bg;
|
|
@include border-radius($breadcrumb-border-radius);
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
|
+ .breadcrumb-item {
|
|
padding-left: $breadcrumb-item-padding-x;
|
|
|
|
&::before {
|
|
float: left; // Suppress inline spacings and underlining of the separator
|
|
padding-right: $breadcrumb-item-padding-x;
|
|
color: $breadcrumb-divider-color;
|
|
content: var(--bs-breadcrumb-divider, escape-svg($breadcrumb-divider));
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
color: $breadcrumb-active-color;
|
|
}
|
|
}
|