region-content-below.pcss.css 714 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. }