2014-12-02 23:02:35 +01:00
|
|
|
.breadcrumb {
|
2017-09-05 00:36:12 +02:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2015-12-08 11:20:25 +01:00
|
|
|
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
2017-08-11 07:59:21 +02:00
|
|
|
margin-bottom: $breadcrumb-margin-bottom;
|
2014-12-02 23:02:35 +01:00
|
|
|
list-style: none;
|
|
|
|
background-color: $breadcrumb-bg;
|
2015-06-23 03:53:04 +02:00
|
|
|
@include border-radius($border-radius);
|
2015-12-08 11:20:25 +01:00
|
|
|
}
|
2014-12-02 23:02:35 +01:00
|
|
|
|
2015-12-08 11:20:25 +01:00
|
|
|
.breadcrumb-item {
|
2016-01-07 03:34:28 +01:00
|
|
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
2015-12-08 11:20:25 +01:00
|
|
|
+ .breadcrumb-item::before {
|
2016-01-07 03:34:28 +01:00
|
|
|
display: inline-block; // Suppress underlining of the separator in modern browsers
|
2015-12-08 11:20:25 +01:00
|
|
|
padding-right: $breadcrumb-item-padding;
|
|
|
|
padding-left: $breadcrumb-item-padding;
|
|
|
|
color: $breadcrumb-divider-color;
|
|
|
|
content: "#{$breadcrumb-divider}";
|
2014-12-02 23:02:35 +01:00
|
|
|
}
|
|
|
|
|
2016-01-18 00:50:27 +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.
|
2016-01-07 03:34:28 +01:00
|
|
|
+ .breadcrumb-item:hover::before {
|
2016-01-18 00:50:27 +01:00
|
|
|
text-decoration: underline;
|
2016-01-07 03:34:28 +01:00
|
|
|
}
|
2017-10-03 05:34:56 +02:00
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
2016-01-07 03:34:28 +01:00
|
|
|
+ .breadcrumb-item:hover::before {
|
2016-01-18 00:50:27 +01:00
|
|
|
text-decoration: none;
|
2016-01-07 03:34:28 +01:00
|
|
|
}
|
|
|
|
|
2015-12-08 11:20:25 +01:00
|
|
|
&.active {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $breadcrumb-active-color;
|
|
|
|
}
|
|
|
|
}
|