layout-builder-fourcol-section.pcss.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-builder-fourcol-section.pcss.css
  2. 10 core/themes/olivero/css/layout/layout-builder-fourcol-section.pcss.css
/*
 * @file
 * Provides the layout styles for four-column layout section.
 */

@import "../base/media-queries.pcss.css";

.layout--fourcol-section {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: var(--layout-fourcol-grid);
}

/* Two column layout. */
@media (--md) {
  .layout--fourcol-section {
    --layout-fourcol-grid: repeat(2, minmax(0, 1fr));
  }
}

/* Four column layout. */
@media (--lg) {
  .layout--fourcol-section {
    --layout-fourcol-grid: repeat(4, minmax(0, 1fr));
  }
}

File

core/themes/olivero/css/layout/layout-builder-fourcol-section.pcss.css

View source
  1. /*
  2. * @file
  3. * Provides the layout styles for four-column layout section.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .layout--fourcol-section {
  7. display: grid;
  8. gap: var(--grid-gap);
  9. grid-template-columns: var(--layout-fourcol-grid);
  10. }
  11. /* Two column layout. */
  12. @media (--md) {
  13. .layout--fourcol-section {
  14. --layout-fourcol-grid: repeat(2, minmax(0, 1fr));
  15. }
  16. }
  17. /* Four column layout. */
  18. @media (--lg) {
  19. .layout--fourcol-section {
  20. --layout-fourcol-grid: repeat(4, minmax(0, 1fr));
  21. }
  22. }

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