region-content-below.pcss.css

Same filename in other branches
  1. 9 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/media-queries.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) / 2));
  12. flex-grow: 1;
  13. flex-shrink: 0;
  14. margin-inline-end: var(--grid-gap);
  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) * 0.667));
  24. &:nth-child(2n),
  25. &:last-child {
  26. margin-inline-end: var(--grid-gap);
  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.