2014-12-02 23:02:35 +01:00
|
|
|
.breadcrumb {
|
2015-12-08 11:20:25 +01:00
|
|
|
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
2015-04-29 21:00:11 +02:00
|
|
|
margin-bottom: $spacer-y;
|
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-09-05 06:28:01 +02:00
|
|
|
@include clearfix;
|
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 {
|
|
|
|
float: left;
|
2014-12-02 23:02:35 +01:00
|
|
|
|
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
|
|
|
}
|
|
|
|
+ .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;
|
|
|
|
}
|
|
|
|
}
|