You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.7 KiB

7 months ago
  1. .breadcrumb {
  2. // scss-docs-start breadcrumb-css-vars
  3. --#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x};
  4. --#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
  5. --#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
  6. @include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
  7. --#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
  8. --#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
  9. --#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
  10. --#{$prefix}breadcrumb-item-padding-x: #{$breadcrumb-item-padding-x};
  11. --#{$prefix}breadcrumb-item-active-color: #{$breadcrumb-active-color};
  12. // scss-docs-end breadcrumb-css-vars
  13. display: flex;
  14. flex-wrap: wrap;
  15. padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
  16. margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
  17. @include font-size(var(--#{$prefix}breadcrumb-font-size));
  18. list-style: none;
  19. background-color: var(--#{$prefix}breadcrumb-bg);
  20. @include border-radius(var(--#{$prefix}breadcrumb-border-radius));
  21. }
  22. .breadcrumb-item {
  23. // The separator between breadcrumbs (by default, a forward-slash: "/")
  24. + .breadcrumb-item {
  25. padding-left: var(--#{$prefix}breadcrumb-item-padding-x);
  26. &::before {
  27. float: left; // Suppress inline spacings and underlining of the separator
  28. padding-right: var(--#{$prefix}breadcrumb-item-padding-x);
  29. color: var(--#{$prefix}breadcrumb-divider-color);
  30. content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
  31. }
  32. }
  33. &.active {
  34. color: var(--#{$prefix}breadcrumb-item-active-color);
  35. }
  36. }