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