menu-sidebar.pcss.css

Same filename in other branches
  1. 9 core/themes/olivero/css/components/navigation/menu-sidebar.pcss.css
  2. 11.x core/themes/olivero/css/components/navigation/menu-sidebar.pcss.css

Styles for menu placed in sidebar region.

File

core/themes/olivero/css/components/navigation/menu-sidebar.pcss.css

View source
  1. /**
  2. * @file
  3. * Styles for menu placed in sidebar region.
  4. */
  5. @import "../../base/media-queries.pcss.css";
  6. .menu--sidebar {
  7. list-style: none;
  8. & .menu {
  9. list-style: none;
  10. }
  11. & .menu--level-1 {
  12. margin: 0;
  13. }
  14. & .menu__link {
  15. position: relative;
  16. display: block;
  17. padding-block: var(--sp0-75);
  18. padding-inline-start: 0;
  19. padding-inline-end: 0;
  20. font-family: var(--font-serif);
  21. font-size: 18px;
  22. /* Bottom divider line. */
  23. &::after {
  24. position: absolute;
  25. inset-block-end: 0;
  26. inset-inline-start: 0;
  27. width: var(--sp4);
  28. height: 0;
  29. content: "";
  30. border-block-start: solid 2px var(--color--gray-95);
  31. }
  32. }
  33. & .menu__link--link {
  34. text-decoration: none;
  35. color: var(--color-text-neutral-loud);
  36. font-weight: 600;
  37. &:hover {
  38. color: var(--color--primary-50);
  39. }
  40. }
  41. /* No bottom divider line for last menu item. */
  42. & .menu__item--level-1:last-child > .menu__link:last-child,
  43. & .menu__item--level-1:last-child > .menu__item--level-2:last-child > .menu__link:last-child {
  44. &::after {
  45. content: none;
  46. }
  47. }
  48. }

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