breadcrumb.pcss.css

Same filename in this branch
  1. 9 core/themes/claro/css/components/breadcrumb.pcss.css
  2. 9 core/themes/claro/css/layout/breadcrumb.pcss.css
Same filename in other branches
  1. 8.9.x core/themes/claro/css/components/breadcrumb.pcss.css
  2. 8.9.x core/themes/claro/css/layout/breadcrumb.pcss.css
  3. 10 core/themes/olivero/css/components/breadcrumb.pcss.css
  4. 10 core/themes/claro/css/components/breadcrumb.pcss.css
  5. 10 core/themes/claro/css/layout/breadcrumb.pcss.css
  6. 11.x core/themes/olivero/css/components/breadcrumb.pcss.css
  7. 11.x core/themes/claro/css/components/breadcrumb.pcss.css
  8. 11.x 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/variables.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. margin-inline-start: 0;
  59. margin-inline-end: 0;
  60. padding-block-end: 0;
  61. padding-inline-start: 0;
  62. white-space: normal;
  63. }
  64. }
  65. .breadcrumb__item {
  66. display: inline-block;
  67. &:nth-child(n+2):before {
  68. display: inline-block;
  69. width: 8px;
  70. height: 8px;
  71. margin-inline: 16px 20px;
  72. content: "";
  73. transform: rotate(45deg); /* LTR */
  74. border-block-start: 2px solid var(--color--gray-25);
  75. border-inline-end: 2px solid var(--color--gray-25);
  76. }
  77. &:last-child {
  78. margin-inline-end: var(--sp3);
  79. @media (--lg) {
  80. margin-inline-end: 0;
  81. }
  82. }
  83. }
  84. [dir="rtl"] .breadcrumb__item:nth-child(n+2):before {
  85. transform: rotate(-45deg);
  86. }
  87. .breadcrumb__link {
  88. text-decoration: none;
  89. color: var(--color--blue-20);
  90. &:hover,
  91. &:focus {
  92. text-decoration: underline;
  93. }
  94. }

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