layout-builder-twocol-section.css

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

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

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

@media (min-width: 43.75rem) {
  .layout--twocol-section--50-50 > .layout__region--first {
    flex-basis: calc(50% - (var(--grid-gap) * 0.5));
    margin-inline-end: calc(var(--grid-gap) * 0.5);
  }

  .layout--twocol-section--50-50 > .layout__region--second {
    flex-basis: calc(50% - (var(--grid-gap) * 0.5));
    margin-inline-start: calc(var(--grid-gap) * 0.5);
  }
  .layout--twocol-section--33-67 > .layout__region--first {
    flex-basis: calc(33.33% - (var(--grid-gap) * 0.3333));
    margin-inline-end: calc(var(--grid-gap) * 0.3333);
  }

  .layout--twocol-section--33-67 > .layout__region--second {
    flex-basis: calc(66.66% - (var(--grid-gap) * 0.6666));
    margin-inline-start: calc(var(--grid-gap) * 0.6666);
  }
  .layout--twocol-section--67-33 > .layout__region--first {
    flex-basis: calc(66.66% - (var(--grid-gap) * 0.6666));
    margin-inline-end: calc(var(--grid-gap) * 0.6666);
  }

  .layout--twocol-section--67-33 > .layout__region--second {
    flex-basis: calc(33.33% - (var(--grid-gap) * 0.3333));
    margin-inline-start: calc(var(--grid-gap) * 0.3333);
  }
  .layout--twocol-section--25-75 > .layout__region--first {
    flex-basis: calc(25% - (var(--grid-gap) * 0.25));
    margin-inline-end: calc(var(--grid-gap) * 0.25);
  }

  .layout--twocol-section--25-75 > .layout__region--second {
    flex-basis: calc(75% - (var(--grid-gap) * 0.75));
    margin-inline-start: calc(var(--grid-gap) * 0.75);
  }
  .layout--twocol-section--75-25 > .layout__region--first {
    flex-basis: calc(75% - (var(--grid-gap) * 0.75));
    margin-inline-end: calc(var(--grid-gap) * 0.75);
  }

  .layout--twocol-section--75-25 > .layout__region--second {
    flex-basis: calc(25% - (var(--grid-gap) * 0.25));
    margin-inline-start: calc(var(--grid-gap) * 0.25);
  }
}

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

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