_breadcrumb.scss 1.23 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
.breadcrumb {
2
3
  display: flex;
  flex-wrap: wrap;
4
  padding: $breadcrumb-padding-y $breadcrumb-padding-x;
5
  margin-bottom: $breadcrumb-margin-bottom;
Mark Otto's avatar
Mark Otto committed
6
7
  list-style: none;
  background-color: $breadcrumb-bg;
8
  @include border-radius($breadcrumb-border-radius);
9
}
Mark Otto's avatar
Mark Otto committed
10

11
.breadcrumb-item {
12
  // The separator between breadcrumbs (by default, a forward-slash: "/")
13
  + .breadcrumb-item::before {
14
    display: inline-block; // Suppress underlining of the separator in modern browsers
15
16
17
18
    padding-right: $breadcrumb-item-padding;
    padding-left: $breadcrumb-item-padding;
    color: $breadcrumb-divider-color;
    content: "#{$breadcrumb-divider}";
Mark Otto's avatar
Mark Otto committed
19
20
  }

21
22
23
24
25
26
  // 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.
27
  + .breadcrumb-item:hover::before {
28
    text-decoration: underline;
29
  }
XhmikosR's avatar
XhmikosR committed
30
  // stylelint-disable-next-line no-duplicate-selectors
31
  + .breadcrumb-item:hover::before {
32
    text-decoration: none;
33
34
  }

35
  &.active {
Mark Otto's avatar
Mark Otto committed
36
37
38
    color: $breadcrumb-active-color;
  }
}