.breadcrumb {
  padding: $breadcrumb-padding-y $breadcrumb-padding-x;
  margin-bottom: .625rem;
  background-color: $breadcrumb-bg;
  border-radius: $border-radius;
  @include clearfix;
}

.breadcrumb-item {
  color: $breadcrumb-color;
  float: left;
  font-size: .6875rem;
  font-weight: 300;
  letter-spacing: .1em;
  padding-left: 0;
  transform: none;
  // The separator between breadcrumbs (by default, a forward-slash: "/")
  &::before {
    border: none;
    color: $breadcrumb-divider-color;
    content: "#{$breadcrumb-divider}";
    display: inline-block; // Suppress underlining of the separator in modern browsers
    font-weight: 300;
    height: auto;
    margin: 0;
    padding-right: $breadcrumb-item-padding;
    padding-left: $breadcrumb-item-padding;
    transform: none;
    width: auto;
  }
  &:first-child::before {
    display: none;
  }
  // 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.
  + .breadcrumb-item:hover::before {
    text-decoration: underline;
  }
  + .breadcrumb-item:hover::before {
    text-decoration: none;
  }
  &.current {
    color: $breadcrumb-active-color;
    font-weight: bold;
  }
}

.breadcrumb-item-link {
  color: inherit;
  @include hover-focus {
    color: $link-color;
  }
}
