You are here

layout-builder-threecol-section.css in Drupal 10

Same filename and directory in other branches
  1. 9 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.
 */

/*
 * Media query breakpoints.
 * Processed by postcss/postcss-custom-media.
 */

/* Navigation related breakpoints */

/* Grid related breakpoints */

/* Grid shifts from 6 to 14 columns. */

/* Width of the entire grid maxes out. */

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

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

@media (min-width: 62.5rem) {

.layout--threecol-section > .layout__region {
      flex-grow: 0;
      flex-shrink: 0;
      margin-bottom: 0
  }
    }

@media (min-width: 62.5rem) {
    [dir="ltr"] .layout--threecol-section > .layout__region--first {
      margin-right: calc(var(--grid-gap) * 0.5)
  }
    [dir="rtl"] .layout--threecol-section > .layout__region--first {
      margin-left: calc(var(--grid-gap) * 0.5)
  }

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

    [dir="ltr"] .layout--threecol-section > .layout__region--third {
      margin-left: calc(var(--grid-gap) * 0.5)
  }

    [dir="rtl"] .layout--threecol-section > .layout__region--third {
      margin-right: 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. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .layout--threecol-section {
  20. display: flex;
  21. flex-wrap: wrap
  22. }
  23. .layout--threecol-section > .layout__region {
  24. flex: 1 0 100%;
  25. margin-bottom: var(--grid-gap)
  26. }
  27. @media (min-width: 62.5rem) {
  28. .layout--threecol-section > .layout__region {
  29. flex-grow: 0;
  30. flex-shrink: 0;
  31. margin-bottom: 0
  32. }
  33. }
  34. @media (min-width: 62.5rem) {
  35. [dir="ltr"] .layout--threecol-section > .layout__region--first {
  36. margin-right: calc(var(--grid-gap) * 0.5)
  37. }
  38. [dir="rtl"] .layout--threecol-section > .layout__region--first {
  39. margin-left: calc(var(--grid-gap) * 0.5)
  40. }
  41. .layout--threecol-section > .layout__region--second {
  42. margin-left: calc(var(--grid-gap) * 0.5);
  43. margin-right: calc(var(--grid-gap) * 0.5);
  44. }
  45. [dir="ltr"] .layout--threecol-section > .layout__region--third {
  46. margin-left: calc(var(--grid-gap) * 0.5)
  47. }
  48. [dir="rtl"] .layout--threecol-section > .layout__region--third {
  49. margin-right: calc(var(--grid-gap) * 0.5)
  50. }
  51. .layout--threecol-section--25-50-25 > .layout__region--first,
  52. .layout--threecol-section--25-50-25 > .layout__region--third {
  53. flex-basis: calc(25% - (var(--grid-gap) * 0.5));
  54. }
  55. .layout--threecol-section--25-50-25 > .layout__region--second {
  56. flex-basis: calc(50% - var(--grid-gap));
  57. }
  58. .layout--threecol-section--25-25-50 > .layout__region--first,
  59. .layout--threecol-section--25-25-50 > .layout__region--second {
  60. flex-basis: calc(25% - (var(--grid-gap) * 0.5));
  61. }
  62. .layout--threecol-section--25-25-50 > .layout__region--third {
  63. flex-basis: calc(50% - var(--grid-gap));
  64. }
  65. .layout--threecol-section--50-25-25 > .layout__region--first {
  66. flex-basis: calc(50% - var(--grid-gap));
  67. }
  68. .layout--threecol-section--50-25-25 > .layout__region--second,
  69. .layout--threecol-section--50-25-25 > .layout__region--third {
  70. flex-basis: calc(25% - (var(--grid-gap) * 0.5));
  71. }
  72. .layout--threecol-section--33-34-33 > .layout__region--first,
  73. .layout--threecol-section--33-34-33 > .layout__region--second,
  74. .layout--threecol-section--33-34-33 > .layout__region--third {
  75. flex-basis: calc(33.33% - (var(--grid-gap) * 0.667));
  76. }
  77. }