layout-sidebar.css

Special grid system for sidebar.

File

core/themes/olivero/css/layout/layout-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. * Special grid system for sidebar.
  10. */
  11. .sidebar-grid {
  12. & > .site-main {
  13. grid-column: 1 / 7;
  14. align-self: flex-start;
  15. @media (min-width: 43.75rem) {
  16. grid-column: 1 / 15;
  17. }
  18. @media (min-width: 62.5rem) {
  19. display: grid;
  20. grid-template-columns: repeat(8, minmax(0, 1fr));
  21. grid-column: 3 / 11;
  22. & > .region--content-above,
  23. & > .region--content {
  24. grid-template-columns: repeat(8, minmax(0, 1fr));
  25. grid-column: 1 / 9;
  26. }
  27. & .layout--content-narrow,
  28. & .layout--pass--content-narrow > *,
  29. & .layout--content-medium,
  30. & .layout--pass--content-medium > * {
  31. grid-column: 1 / 9;
  32. }
  33. }
  34. }
  35. & .region--sidebar {
  36. grid-column: 1 / 7;
  37. @media (min-width: 43.75rem) {
  38. grid-column: 3 / 13;
  39. }
  40. @media (min-width: 62.5rem) {
  41. grid-column: 12 / 15;
  42. }
  43. }
  44. }

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