layout-sidebar.pcss.css

Same filename in other branches
  1. 10 core/themes/olivero/css/layout/layout-sidebar.pcss.css
  2. 11.x 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/variables.pcss.css";
  6. .sidebar-grid {
  7. & > .site-main {
  8. grid-column: 1 / 7;
  9. align-self: flex-start;
  10. -ms-grid-row-align: start;
  11. @media (--grid-md) {
  12. grid-column: 1 / 15;
  13. }
  14. @media (--lg) {
  15. display: grid;
  16. grid-template-columns: repeat(8, minmax(0, 1fr));
  17. grid-column: 3 / 11;
  18. & > .region--content-above,
  19. & > .region--content {
  20. grid-template-columns: repeat(8, minmax(0, 1fr));
  21. grid-column: 1 / 9;
  22. }
  23. & .layout--content-narrow,
  24. & .layout--pass--content-narrow > *,
  25. & .layout--content-medium,
  26. & .layout--pass--content-medium > * {
  27. grid-column: 1 / 9;
  28. }
  29. }
  30. }
  31. & .region--sidebar {
  32. -ms-grid-row: 2;
  33. grid-column: 1 / 7;
  34. @media (--grid-md) {
  35. grid-column: 3 / 13;
  36. }
  37. @media (--lg) {
  38. -ms-grid-row: 1;
  39. grid-column: 12 / 15;
  40. }
  41. }
  42. }

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