layout-sidebar.pcss.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-sidebar.pcss.css
  2. 10 core/themes/olivero/css/layout/layout-sidebar.pcss.css

Special grid system for sidebar.

File

core/themes/olivero/css/layout/layout-sidebar.pcss.css

View source
  1. /**
  2. * @file
  3. * Special grid system for sidebar.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .sidebar-grid {
  7. & > .site-main {
  8. grid-column: 1 / 7;
  9. align-self: flex-start;
  10. @media (--grid-md) {
  11. grid-column: 1 / 15;
  12. }
  13. @media (--lg) {
  14. display: grid;
  15. grid-template-columns: repeat(8, minmax(0, 1fr));
  16. grid-column: 3 / 11;
  17. & > .region--content-above,
  18. & > .region--content {
  19. grid-template-columns: repeat(8, minmax(0, 1fr));
  20. grid-column: 1 / 9;
  21. }
  22. & .layout--content-narrow,
  23. & .layout--pass--content-narrow > *,
  24. & .layout--content-medium,
  25. & .layout--pass--content-medium > * {
  26. grid-column: 1 / 9;
  27. }
  28. }
  29. }
  30. & .region--sidebar {
  31. grid-column: 1 / 7;
  32. @media (--grid-md) {
  33. grid-column: 3 / 13;
  34. }
  35. @media (--lg) {
  36. grid-column: 12 / 15;
  37. }
  38. }
  39. }

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