_breadcrumb.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. .breadcrumb {
  2. display: flex;
  3. flex-wrap: wrap;
  4. padding: $breadcrumb-padding-y $breadcrumb-padding-x;
  5. margin-bottom: $breadcrumb-margin-bottom;
  6. list-style: none;
  7. background-color: $breadcrumb-bg;
  8. @include border-radius($border-radius);
  9. }
  10. .breadcrumb-item {
  11. // The separator between breadcrumbs (by default, a forward-slash: "/")
  12. + .breadcrumb-item::before {
  13. display: inline-block; // Suppress underlining of the separator in modern browsers
  14. padding-right: $breadcrumb-item-padding;
  15. padding-left: $breadcrumb-item-padding;
  16. color: $breadcrumb-divider-color;
  17. content: "#{$breadcrumb-divider}";
  18. }
  19. // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
  20. // without `<ul>`s. The `::before` pseudo-element generates an element
  21. // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
  22. //
  23. // To trick IE into suppressing the underline, we give the pseudo-element an
  24. // underline and then immediately remove it.
  25. + .breadcrumb-item:hover::before {
  26. text-decoration: underline;
  27. }
  28. // stylelint-disable-next-line no-duplicate-selectors
  29. + .breadcrumb-item:hover::before {
  30. text-decoration: none;
  31. }
  32. &.active {
  33. color: $breadcrumb-active-color;
  34. }
  35. }