layout-builder-threecol-section.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-builder-threecol-section.css
  2. 10 core/themes/olivero/css/layout/layout-builder-threecol-section.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/*
 * @file
 * Provides the layout styles for three-column layout section.
 */

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

.layout--threecol-section > .layout__region--first {
  grid-column: var(--layout-threecol-grid__first);
}

.layout--threecol-section > .layout__region--second {
  grid-column: var(--layout-threecol-grid__second);
}

.layout--threecol-section > .layout__region--third {
  grid-column: var(--layout-threecol-grid__third);
}

@media (min-width: 62.5rem) {
  .layout--threecol-section--25-50-25 {
    --layout-threecol-grid: repeat(4, minmax(0, 1fr));
    --layout-threecol-grid__second: span 2;
  }

  .layout--threecol-section--25-25-50 {
    --layout-threecol-grid: repeat(4, minmax(0, 1fr));
    --layout-threecol-grid__third: span 2;
  }

  .layout--threecol-section--50-25-25 {
    --layout-threecol-grid: repeat(4, minmax(0, 1fr));
    --layout-threecol-grid__first: span 2;
  }

  .layout--threecol-section--33-34-33 {
    --layout-threecol-grid: repeat(3, minmax(0, 1fr));
  }
}

File

core/themes/olivero/css/layout/layout-builder-threecol-section.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /*
  8. * @file
  9. * Provides the layout styles for three-column layout section.
  10. */
  11. .layout--threecol-section {
  12. display: grid;
  13. gap: var(--grid-gap);
  14. grid-template-columns: var(--layout-threecol-grid);
  15. }
  16. .layout--threecol-section > .layout__region--first {
  17. grid-column: var(--layout-threecol-grid__first);
  18. }
  19. .layout--threecol-section > .layout__region--second {
  20. grid-column: var(--layout-threecol-grid__second);
  21. }
  22. .layout--threecol-section > .layout__region--third {
  23. grid-column: var(--layout-threecol-grid__third);
  24. }
  25. @media (min-width: 62.5rem) {
  26. .layout--threecol-section--25-50-25 {
  27. --layout-threecol-grid: repeat(4, minmax(0, 1fr));
  28. --layout-threecol-grid__second: span 2;
  29. }
  30. .layout--threecol-section--25-25-50 {
  31. --layout-threecol-grid: repeat(4, minmax(0, 1fr));
  32. --layout-threecol-grid__third: span 2;
  33. }
  34. .layout--threecol-section--50-25-25 {
  35. --layout-threecol-grid: repeat(4, minmax(0, 1fr));
  36. --layout-threecol-grid__first: span 2;
  37. }
  38. .layout--threecol-section--33-34-33 {
  39. --layout-threecol-grid: repeat(3, minmax(0, 1fr));
  40. }
  41. }

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