layout-builder-fourcol-section.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-builder-fourcol-section.css
  2. 11.x core/themes/olivero/css/layout/layout-builder-fourcol-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 four-column layout section.
 */

.layout--fourcol-section {
  display: flex;
  flex-wrap: wrap;
}

.layout--fourcol-section > .layout__region {
  flex: 1 0 100%;
  margin-block-end: var(--grid-gap);
}

@media (min-width: 43.75rem) {
  .layout--fourcol-section > .layout__region {
    flex-basis: calc(50% - (var(--grid-gap) * 0.5));
    flex-grow: 0;
    flex-shrink: 0;
    margin-block-end: 0;
  }
}

/* Two column layout. */

@media (min-width: 43.75rem) {
  .layout--fourcol-section > .layout__region--first,
  .layout--fourcol-section > .layout__region--second {
    margin-block-end: var(--grid-gap);
  }

  .layout--fourcol-section > .layout__region--first,
  .layout--fourcol-section > .layout__region--third {
    margin-inline-end: calc(var(--grid-gap) * 0.5);
  }

  .layout--fourcol-section > .layout__region--second,
  .layout--fourcol-section > .layout__region--fourth {
    margin-inline-start: calc(var(--grid-gap) * 0.5);
  }
}

/* Four column layout. */

@media (min-width: 62.5rem) {
  .layout--fourcol-section > .layout__region {
    flex-basis: calc(25% - (var(--grid-gap) * 0.75));
  }

  .layout--fourcol-section > .layout__region--first,
  .layout--fourcol-section > .layout__region--second {
    margin-block-end: 0;
  }

  .layout--fourcol-section > .layout__region--first {
    margin-inline-end: calc(var(--grid-gap) * 0.5);
  }

  .layout--fourcol-section > .layout__region--second,
  .layout--fourcol-section > .layout__region--third {
    margin-inline: calc(var(--grid-gap) * 0.5);
  }

  .layout--fourcol-section > .layout__region--fourth {
    margin-inline-start: calc(var(--grid-gap) * 0.5);
  }
}

File

core/themes/olivero/css/layout/layout-builder-fourcol-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 four-column layout section.
  10. */
  11. .layout--fourcol-section {
  12. display: flex;
  13. flex-wrap: wrap;
  14. }
  15. .layout--fourcol-section > .layout__region {
  16. flex: 1 0 100%;
  17. margin-block-end: var(--grid-gap);
  18. }
  19. @media (min-width: 43.75rem) {
  20. .layout--fourcol-section > .layout__region {
  21. flex-basis: calc(50% - (var(--grid-gap) * 0.5));
  22. flex-grow: 0;
  23. flex-shrink: 0;
  24. margin-block-end: 0;
  25. }
  26. }
  27. /* Two column layout. */
  28. @media (min-width: 43.75rem) {
  29. .layout--fourcol-section > .layout__region--first,
  30. .layout--fourcol-section > .layout__region--second {
  31. margin-block-end: var(--grid-gap);
  32. }
  33. .layout--fourcol-section > .layout__region--first,
  34. .layout--fourcol-section > .layout__region--third {
  35. margin-inline-end: calc(var(--grid-gap) * 0.5);
  36. }
  37. .layout--fourcol-section > .layout__region--second,
  38. .layout--fourcol-section > .layout__region--fourth {
  39. margin-inline-start: calc(var(--grid-gap) * 0.5);
  40. }
  41. }
  42. /* Four column layout. */
  43. @media (min-width: 62.5rem) {
  44. .layout--fourcol-section > .layout__region {
  45. flex-basis: calc(25% - (var(--grid-gap) * 0.75));
  46. }
  47. .layout--fourcol-section > .layout__region--first,
  48. .layout--fourcol-section > .layout__region--second {
  49. margin-block-end: 0;
  50. }
  51. .layout--fourcol-section > .layout__region--first {
  52. margin-inline-end: calc(var(--grid-gap) * 0.5);
  53. }
  54. .layout--fourcol-section > .layout__region--second,
  55. .layout--fourcol-section > .layout__region--third {
  56. margin-inline: calc(var(--grid-gap) * 0.5);
  57. }
  58. .layout--fourcol-section > .layout__region--fourth {
  59. margin-inline-start: calc(var(--grid-gap) * 0.5);
  60. }
  61. }

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