breadcrumb.pcss.css

Same filename in this branch
  1. 11.x core/themes/claro/css/components/breadcrumb.pcss.css
  2. 11.x core/themes/claro/css/layout/breadcrumb.pcss.css
Same filename in other branches
  1. 9 core/themes/olivero/css/components/breadcrumb.pcss.css
  2. 9 core/themes/claro/css/components/breadcrumb.pcss.css
  3. 9 core/themes/claro/css/layout/breadcrumb.pcss.css
  4. 8.9.x core/themes/claro/css/components/breadcrumb.pcss.css
  5. 8.9.x core/themes/claro/css/layout/breadcrumb.pcss.css
  6. 10 core/themes/olivero/css/components/breadcrumb.pcss.css
  7. 10 core/themes/claro/css/components/breadcrumb.pcss.css
  8. 10 core/themes/claro/css/layout/breadcrumb.pcss.css

Breadcrumb region.

File

core/themes/olivero/css/components/breadcrumb.pcss.css

View source
  1. /**
  2. * @file
  3. * Breadcrumb region.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .breadcrumb {
  7. position: relative;
  8. font-size: 14px;
  9. font-weight: bold;
  10. line-height: var(--sp1);
  11. /* Shadow on the right side of breadcrumbs for narrow screens. */
  12. &::after {
  13. position: absolute;
  14. inset-block-start: 0;
  15. inset-inline-end: calc(var(--sp1) * -1);
  16. width: var(--sp3);
  17. height: var(--sp2);
  18. content: "";
  19. background: linear-gradient(to left, var(--color--white) 0%, rgba(255, 255, 255, 0) 100%); /* LTR */
  20. @media (--lg) {
  21. content: none;
  22. }
  23. }
  24. @media (--lg) {
  25. position: static;
  26. }
  27. }
  28. [dir="rtl"] .breadcrumb::after {
  29. background: linear-gradient(to right, var(--color--white) 0%, rgba(255, 255, 255, 0) 100%);
  30. }
  31. .breadcrumb__content {
  32. overflow: auto;
  33. margin-block-start: calc(var(--sp0-5) * -1);
  34. margin-block-end: calc(var(--sp0-5) * -1);
  35. margin-inline-start: calc(var(--sp0-5) * -1);
  36. margin-inline-end: calc(var(--sp1) * -1);
  37. padding-block-start: var(--sp0-5);
  38. padding-block-end: var(--sp0-5);
  39. padding-inline-start: var(--sp0-5);
  40. -webkit-overflow-scrolling: touch;
  41. @media (--lg) {
  42. margin-inline-end: 0;
  43. }
  44. }
  45. .breadcrumb__list {
  46. overflow-x: auto;
  47. width: max-content;
  48. margin-block: 0;
  49. margin-inline-start: calc(var(--sp1) * -1);
  50. margin-inline-end: calc(var(--sp1) * -1);
  51. padding-block: 0 var(--sp1);
  52. padding-inline-start: var(--sp1);
  53. padding-inline-end: 0;
  54. list-style: none;
  55. white-space: nowrap;
  56. @media (--lg) {
  57. overflow: visible;
  58. width: auto;
  59. margin-inline-start: 0;
  60. margin-inline-end: 0;
  61. padding-block-end: 0;
  62. padding-inline-start: 0;
  63. white-space: normal;
  64. }
  65. }
  66. .breadcrumb__item {
  67. display: inline-block;
  68. &:nth-child(n + 2)::before {
  69. display: inline-block;
  70. width: 8px;
  71. height: 8px;
  72. margin-inline: 16px 20px;
  73. content: "";
  74. transform: rotate(45deg); /* LTR */
  75. border-block-start: 2px solid var(--color--gray-45);
  76. border-inline-end: 2px solid var(--color--gray-45);
  77. }
  78. &:last-child {
  79. margin-inline-end: var(--sp3);
  80. @media (--lg) {
  81. margin-inline-end: 0;
  82. }
  83. }
  84. }
  85. [dir="rtl"] .breadcrumb__item:nth-child(n + 2)::before {
  86. transform: rotate(-45deg);
  87. }
  88. .breadcrumb__link {
  89. text-decoration: none;
  90. color: var(--color-text-primary-medium);
  91. &:hover,
  92. &:focus {
  93. text-decoration: underline;
  94. }
  95. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.