layout-builder-threecol-section.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-builder-threecol-section.css
  2. 11.x 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: flex;
  flex-wrap: wrap;
}

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

@media (min-width: 62.5rem) {
  .layout--threecol-section > .layout__region {
    flex-grow: 0;
    flex-shrink: 0;
    margin-block-end: 0;
  }
}

@media (min-width: 62.5rem) {
  .layout--threecol-section > .layout__region--first {
    margin-inline-end: calc(var(--grid-gap) * 0.5);
  }

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

  .layout--threecol-section > .layout__region--third {
    margin-inline-start: calc(var(--grid-gap) * 0.5);
  }
  .layout--threecol-section--25-50-25 > .layout__region--first,
  .layout--threecol-section--25-50-25 > .layout__region--third {
    flex-basis: calc(25% - (var(--grid-gap) * 0.5));
  }

  .layout--threecol-section--25-50-25 > .layout__region--second {
    flex-basis: calc(50% - var(--grid-gap));
  }
  .layout--threecol-section--25-25-50 > .layout__region--first,
  .layout--threecol-section--25-25-50 > .layout__region--second {
    flex-basis: calc(25% - (var(--grid-gap) * 0.5));
  }

  .layout--threecol-section--25-25-50 > .layout__region--third {
    flex-basis: calc(50% - var(--grid-gap));
  }
  .layout--threecol-section--50-25-25 > .layout__region--first {
    flex-basis: calc(50% - var(--grid-gap));
  }

  .layout--threecol-section--50-25-25 > .layout__region--second,
  .layout--threecol-section--50-25-25 > .layout__region--third {
    flex-basis: calc(25% - (var(--grid-gap) * 0.5));
  }
  .layout--threecol-section--33-34-33 > .layout__region--first,
  .layout--threecol-section--33-34-33 > .layout__region--second,
  .layout--threecol-section--33-34-33 > .layout__region--third {
    flex-basis: calc(33.33% - (var(--grid-gap) * 0.667));
  }
}

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

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