layout-content-medium.pcss.css

Same filename in other branches
  1. 10 core/themes/olivero/css/layout/layout-content-medium.pcss.css
  2. 11.x core/themes/olivero/css/layout/layout-content-medium.pcss.css

Grid system definition for the content wide layout.

File

core/themes/olivero/css/layout/layout-content-medium.pcss.css

View source
  1. /**
  2. * @file
  3. * Grid system definition for the content wide layout.
  4. */
  5. @import "../base/variables.pcss.css";
  6. .layout--content-medium,
  7. .layout--pass--content-medium > * {
  8. grid-column: 1 / 7;
  9. width: 100%;
  10. @media (--grid-md) {
  11. grid-column: 2 / 14;
  12. }
  13. @media (--lg) {
  14. grid-column: 3 / 13;
  15. }
  16. }
  17. /*
  18. If .layout--content-medium is nested within itself, or an element that's inheriting the
  19. layout--content-medium styles from its parent region, go full width within its
  20. parent .grid-full.
  21. */
  22. .layout--pass--content-medium > *,
  23. .layout--content-medium {
  24. & .layout--content-medium,
  25. & .layout--pass--content-medium > * {
  26. @media (--grid-md) {
  27. grid-column: 1 / 13;
  28. }
  29. @media (--lg) {
  30. grid-column: 1 / 11;
  31. }
  32. }
  33. }

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