Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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. }
RSS feed
Powered by Drupal