layout-builder-twocol-section.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-builder-twocol-section.css
  2. 10 core/themes/olivero/css/layout/layout-builder-twocol-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 two-column layout section.
 */

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

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

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

@media (min-width: 43.75rem) {
  .layout--twocol-section--50-50 {
    --layout-twocol-grid: repeat(2, minmax(0, 1fr));
  }

  .layout--twocol-section--33-67 {
    --layout-twocol-grid: repeat(3, minmax(0, 1fr));
    --layout-twocol-grid__second: span 2;
  }

  .layout--twocol-section--67-33 {
    --layout-twocol-grid: repeat(3, minmax(0, 1fr));
    --layout-twocol-grid__first: span 2;
  }

  .layout--twocol-section--25-75 {
    --layout-twocol-grid: repeat(4, minmax(0, 1fr));
    --layout-twocol-grid__second: span 3;
  }

  .layout--twocol-section--75-25 {
    --layout-twocol-grid: repeat(4, minmax(0, 1fr));
    --layout-twocol-grid__first: span 3;
  }
}

File

core/themes/olivero/css/layout/layout-builder-twocol-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 two-column layout section.
  10. */
  11. .layout--twocol-section {
  12. display: grid;
  13. gap: var(--grid-gap);
  14. grid-template-columns: var(--layout-twocol-grid);
  15. }
  16. .layout--twocol-section > .layout__region--first {
  17. grid-column: var(--layout-twocol-grid__first);
  18. }
  19. .layout--twocol-section > .layout__region--second {
  20. grid-column: var(--layout-twocol-grid__second);
  21. }
  22. @media (min-width: 43.75rem) {
  23. .layout--twocol-section--50-50 {
  24. --layout-twocol-grid: repeat(2, minmax(0, 1fr));
  25. }
  26. .layout--twocol-section--33-67 {
  27. --layout-twocol-grid: repeat(3, minmax(0, 1fr));
  28. --layout-twocol-grid__second: span 2;
  29. }
  30. .layout--twocol-section--67-33 {
  31. --layout-twocol-grid: repeat(3, minmax(0, 1fr));
  32. --layout-twocol-grid__first: span 2;
  33. }
  34. .layout--twocol-section--25-75 {
  35. --layout-twocol-grid: repeat(4, minmax(0, 1fr));
  36. --layout-twocol-grid__second: span 3;
  37. }
  38. .layout--twocol-section--75-25 {
  39. --layout-twocol-grid: repeat(4, minmax(0, 1fr));
  40. --layout-twocol-grid__first: span 3;
  41. }
  42. }

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