menu-sidebar.css

Styles for menu placed in sidebar region.

File

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

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styles for menu placed in sidebar region.
  10. */
  11. .menu--sidebar {
  12. list-style: none;
  13. & .menu {
  14. list-style: none;
  15. }
  16. & .menu--level-1 {
  17. margin: 0;
  18. }
  19. & .menu__link {
  20. position: relative;
  21. display: block;
  22. padding-block: var(--sp0-75);
  23. padding-inline-start: 0;
  24. padding-inline-end: 0;
  25. font-family: var(--font-serif);
  26. font-size: 1.125rem;
  27. /* Bottom divider line. */
  28. &::after {
  29. position: absolute;
  30. inset-block-end: 0;
  31. inset-inline-start: 0;
  32. width: var(--sp4);
  33. height: 0;
  34. content: "";
  35. border-block-start: solid 2px var(--color--gray-95);
  36. }
  37. }
  38. & .menu__link--link {
  39. -webkit-text-decoration: none;
  40. text-decoration: none;
  41. color: var(--color-text-neutral-loud);
  42. font-weight: 600;
  43. &:hover {
  44. color: var(--color--primary-50);
  45. }
  46. }
  47. /* No bottom divider line for last menu item. */
  48. & .menu__item--level-1:last-child > .menu__link:last-child,
  49. & .menu__item--level-1:last-child > .menu__item--level-2:last-child > .menu__link:last-child {
  50. &::after {
  51. content: none;
  52. }
  53. }
  54. }

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