_breadcrumb.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .breadcrumb {
  2. @include unlist();
  3. @include clearfix();
  4. overflow: hidden;
  5. padding-top: 1.4em;
  6. font-size: 0.85em;
  7. li {
  8. display: block;
  9. float: left;
  10. padding: 0.5em 1.3em;
  11. position: relative;
  12. text-decoration: none;
  13. color: $color-white;
  14. white-space: nowrap;
  15. line-height: 1.5em;
  16. a,
  17. span {
  18. color: $color-white;
  19. display: block;
  20. max-width: 12em;
  21. white-space: nowrap;
  22. text-overflow: ellipsis;
  23. overflow: hidden;
  24. line-height: 1.6em;
  25. padding-right: 1em;
  26. &:after {
  27. right: 0;
  28. // z-index: 5;
  29. position: absolute;
  30. font-family: wagtail;
  31. content: map-get($icons, 'arrow-right');
  32. padding-left: 20px;
  33. font-size: 2em;
  34. color: $color-teal-darker;
  35. line-height: 0.9em;
  36. }
  37. }
  38. &:hover {
  39. background: $color-teal-dark;
  40. a {
  41. color: $color-white;
  42. }
  43. }
  44. &:hover:after {
  45. border-left-color: $color-teal-dark;
  46. }
  47. &.home {
  48. a {
  49. // stylelint-disable max-nesting-depth
  50. padding-right: 0;
  51. text-align: center;
  52. width: 3em;
  53. font-size: 1em;
  54. text-overflow: clip;
  55. &:before {
  56. font-size: 1.15rem;
  57. line-height: 0.85em;
  58. padding-top: 0.1em;
  59. }
  60. &:after {
  61. right: -0.3em;
  62. }
  63. }
  64. }
  65. }
  66. header & li {
  67. &:before {
  68. border-left: 1em solid $color-white;
  69. position: absolute;
  70. left: 0;
  71. top: 0;
  72. }
  73. }
  74. &.single {
  75. li a {
  76. white-space: nowrap;
  77. text-overflow: inherit;
  78. max-width: 100%;
  79. }
  80. }
  81. @include media-breakpoint-up(sm) {
  82. padding-top: 0;
  83. background: $color-teal-darker;
  84. margin-left: -($desktop-nice-padding);
  85. margin-right: -($desktop-nice-padding);
  86. li {
  87. a,
  88. span {
  89. &:after {
  90. color: $color-teal;
  91. }
  92. }
  93. }
  94. }
  95. }