region-content-below.pcss.css

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

Content below region layout.

File

core/themes/olivero/css/layout/region-content-below.pcss.css

View source
  1. /**
  2. * @file
  3. * Content below region layout.
  4. */
  5. @import "../base/variables.pcss.css";
  6. .region--content-below {
  7. @media (--md) {
  8. display: flex;
  9. flex-wrap: wrap;
  10. & > * {
  11. flex-basis: calc(50% - (var(--grid-gap--md) / 2));
  12. flex-grow: 1;
  13. flex-shrink: 0;
  14. margin-inline-end: var(--grid-gap--md);
  15. &:nth-child(2n),
  16. &:last-child {
  17. margin-inline-end: 0;
  18. }
  19. }
  20. }
  21. @media (--md) {
  22. & > * {
  23. flex-basis: calc(33.33% - (var(--grid-gap--md) * 0.667));
  24. &:nth-child(2n),
  25. &:last-child {
  26. margin-inline-end: var(--grid-gap--md);
  27. }
  28. &:nth-child(3n),
  29. &:last-child {
  30. margin-inline-end: 0;
  31. }
  32. }
  33. }
  34. }

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