2014-12-02 17:02:35 -05:00
|
|
|
.breadcrumb {
|
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;
|
2015-06-22 21:53:04 -04:00
|
|
|
@include border-radius($border-radius);
|
2015-09-05 00:28:01 -04:00
|
|
|
@include clearfix;
|
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 {
|
|
|
|
float: left;
|
2014-12-02 17:02:35 -05:00
|
|
|
|
2016-01-06 21:34:28 -05:00
|
|
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
2015-12-08 05:20:25 -05:00
|
|
|
+ .breadcrumb-item::before {
|
2016-01-06 21:34:28 -05:00
|
|
|
display: inline-block; // Suppress underlining of the separator in modern browsers
|
2015-12-08 05:20:25 -05:00
|
|
|
padding-right: $breadcrumb-item-padding;
|
|
|
|
padding-left: $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
|
|
|
}
|
|
|
|
+ .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;
|
|
|
|
}
|
|
|
|
}
|