menus-and-lists.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/menus-and-lists.pcss.css
  2. 8.9.x core/themes/claro/css/components/menus-and-lists.pcss.css
  3. 11.x core/themes/claro/css/components/menus-and-lists.pcss.css
/**
 * Menus and lists.
 *
 * These classes are used in claro-toolbar-menu and any list items.
 */

.item-list,
.menu-item {
  --item-list-spacing-l: var(--space-l);
  --item-list-spacing-m: var(--space-m);
}

.item-list ul {
  margin-block: 4px;
  margin-inline: var(--item-list-spacing-l) 0;
  list-style: disc;
}

.item-list ul li,
.menu-item {
  list-style: disc;
}

.menu-item {
  margin: 0;
}

.item-list ul li.collapsed,
.menu-item--collapsed {
  list-style: disc;
}

.item-list ul li.expanded,
.menu-item--expanded {
  list-style: circle;
}

ul {
  &.links li,
  &.inline li {
    padding-inline-end: var(--item-list-spacing-m);
  }

  &.inline li {
    display: inline;
  }
}

File

core/themes/claro/css/components/menus-and-lists.pcss.css

View source
  1. /**
  2. * Menus and lists.
  3. *
  4. * These classes are used in claro-toolbar-menu and any list items.
  5. */
  6. .item-list,
  7. .menu-item {
  8. --item-list-spacing-l: var(--space-l);
  9. --item-list-spacing-m: var(--space-m);
  10. }
  11. .item-list ul {
  12. margin-block: 4px;
  13. margin-inline: var(--item-list-spacing-l) 0;
  14. list-style: disc;
  15. }
  16. .item-list ul li,
  17. .menu-item {
  18. list-style: disc;
  19. }
  20. .menu-item {
  21. margin: 0;
  22. }
  23. .item-list ul li.collapsed,
  24. .menu-item--collapsed {
  25. list-style: disc;
  26. }
  27. .item-list ul li.expanded,
  28. .menu-item--expanded {
  29. list-style: circle;
  30. }
  31. ul {
  32. &.links li,
  33. &.inline li {
  34. padding-inline-end: var(--item-list-spacing-m);
  35. }
  36. &.inline li {
  37. display: inline;
  38. }
  39. }

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