cycat-project-website/_sass/bootstrap/_breadcrumb.scss

43 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

2018-12-09 08:21:01 +01:00
.breadcrumb {
display: flex;
flex-wrap: wrap;
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
margin-bottom: $breadcrumb-margin-bottom;
2020-08-23 12:01:06 +02:00
@include font-size($breadcrumb-font-size);
2018-12-09 08:21:01 +01:00
list-style: none;
background-color: $breadcrumb-bg;
2020-08-23 12:01:06 +02:00
@include border-radius($breadcrumb-border-radius);
2018-12-09 08:21:01 +01:00
}
.breadcrumb-item {
// The separator between breadcrumbs (by default, a forward-slash: "/")
2020-08-23 12:01:06 +02:00
+ .breadcrumb-item {
2018-12-09 08:21:01 +01:00
padding-left: $breadcrumb-item-padding;
2020-08-23 12:01:06 +02:00
&::before {
display: inline-block; // Suppress underlining of the separator in modern browsers
padding-right: $breadcrumb-item-padding;
color: $breadcrumb-divider-color;
content: escape-svg($breadcrumb-divider);
}
2018-12-09 08:21:01 +01:00
}
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
// without `<ul>`s. The `::before` pseudo-element generates an element
// *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
//
// To trick IE into suppressing the underline, we give the pseudo-element an
// underline and then immediately remove it.
+ .breadcrumb-item:hover::before {
text-decoration: underline;
}
// stylelint-disable-next-line no-duplicate-selectors
+ .breadcrumb-item:hover::before {
text-decoration: none;
}
&.active {
color: $breadcrumb-active-color;
}
}