You are here

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

Same filename and directory in other branches
  1. 10 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-bottom: 1.125rem
  }

@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: 1.125rem
  }
    [dir="rtl"] .layout--threecol-section > .layout__region--first {
      margin-left: 1.125rem
  }

    .layout--threecol-section > .layout__region--second {
      margin-left: 1.125rem;
      margin-right: 1.125rem;
    }

    [dir="ltr"] .layout--threecol-section > .layout__region--third {
      margin-left: 1.125rem
  }

    [dir="rtl"] .layout--threecol-section > .layout__region--third {
      margin-right: 1.125rem
  }
    .layout--threecol-section--25-50-25 > .layout__region--first,
    .layout--threecol-section--25-50-25 > .layout__region--third {
      flex-basis: calc(25% - 1.125rem);
    }

    .layout--threecol-section--25-50-25 > .layout__region--second {
      flex-basis: calc(50% - 2.25rem);
    }
    .layout--threecol-section--25-25-50 > .layout__region--first,
    .layout--threecol-section--25-25-50 > .layout__region--second {
      flex-basis: calc(25% - 1.125rem);
    }

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

    .layout--threecol-section--50-25-25 > .layout__region--second,
    .layout--threecol-section--50-25-25 > .layout__region--third {
      flex-basis: calc(25% - 1.125rem);
    }
    .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% - 1.50075rem);
    }
}

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-bottom: 1.125rem
  18. }
  19. @media (min-width: 62.5rem) {
  20. .layout--threecol-section > .layout__region {
  21. flex-grow: 0;
  22. flex-shrink: 0;
  23. margin-bottom: 0
  24. }
  25. }
  26. @media (min-width: 62.5rem) {
  27. [dir="ltr"] .layout--threecol-section > .layout__region--first {
  28. margin-right: 1.125rem
  29. }
  30. [dir="rtl"] .layout--threecol-section > .layout__region--first {
  31. margin-left: 1.125rem
  32. }
  33. .layout--threecol-section > .layout__region--second {
  34. margin-left: 1.125rem;
  35. margin-right: 1.125rem;
  36. }
  37. [dir="ltr"] .layout--threecol-section > .layout__region--third {
  38. margin-left: 1.125rem
  39. }
  40. [dir="rtl"] .layout--threecol-section > .layout__region--third {
  41. margin-right: 1.125rem
  42. }
  43. .layout--threecol-section--25-50-25 > .layout__region--first,
  44. .layout--threecol-section--25-50-25 > .layout__region--third {
  45. flex-basis: calc(25% - 1.125rem);
  46. }
  47. .layout--threecol-section--25-50-25 > .layout__region--second {
  48. flex-basis: calc(50% - 2.25rem);
  49. }
  50. .layout--threecol-section--25-25-50 > .layout__region--first,
  51. .layout--threecol-section--25-25-50 > .layout__region--second {
  52. flex-basis: calc(25% - 1.125rem);
  53. }
  54. .layout--threecol-section--25-25-50 > .layout__region--third {
  55. flex-basis: calc(50% - 2.25rem);
  56. }
  57. .layout--threecol-section--50-25-25 > .layout__region--first {
  58. flex-basis: calc(50% - 2.25rem);
  59. }
  60. .layout--threecol-section--50-25-25 > .layout__region--second,
  61. .layout--threecol-section--50-25-25 > .layout__region--third {
  62. flex-basis: calc(25% - 1.125rem);
  63. }
  64. .layout--threecol-section--33-34-33 > .layout__region--first,
  65. .layout--threecol-section--33-34-33 > .layout__region--second,
  66. .layout--threecol-section--33-34-33 > .layout__region--third {
  67. flex-basis: calc(33.33% - 1.50075rem);
  68. }
  69. }