You are here

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

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

/*
 * 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--fourcol-section {
  display: flex;
  flex-wrap: wrap
}

.layout--fourcol-section > .layout__region {
    flex: 1 0 100%;
    margin-bottom: 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-bottom: 0
  }
    }

.layout--fourcol-section {

  /* Two column layout. */
}

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

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

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

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

    [dir="rtl"] .layout--fourcol-section > .layout__region--second,[dir="rtl"] 
    .layout--fourcol-section > .layout__region--fourth {
      margin-right: calc(var(--grid-gap) * 0.5)
  }
  }

.layout--fourcol-section {

  /* 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-bottom: 0;
    }

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

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

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

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

    [dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
      margin-right: 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. /*
  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--fourcol-section {
  20. display: flex;
  21. flex-wrap: wrap
  22. }
  23. .layout--fourcol-section > .layout__region {
  24. flex: 1 0 100%;
  25. margin-bottom: var(--grid-gap)
  26. }
  27. @media (min-width: 43.75rem) {
  28. .layout--fourcol-section > .layout__region {
  29. flex-basis: calc(50% - (var(--grid-gap) * 0.5));
  30. flex-grow: 0;
  31. flex-shrink: 0;
  32. margin-bottom: 0
  33. }
  34. }
  35. .layout--fourcol-section {
  36. /* Two column layout. */
  37. }
  38. @media (min-width: 43.75rem) {
  39. .layout--fourcol-section > .layout__region--first,
  40. .layout--fourcol-section > .layout__region--second {
  41. margin-bottom: var(--grid-gap);
  42. }
  43. [dir="ltr"] .layout--fourcol-section > .layout__region--first,[dir="ltr"]
  44. .layout--fourcol-section > .layout__region--third {
  45. margin-right: calc(var(--grid-gap) * 0.5)
  46. }
  47. [dir="rtl"] .layout--fourcol-section > .layout__region--first,[dir="rtl"]
  48. .layout--fourcol-section > .layout__region--third {
  49. margin-left: calc(var(--grid-gap) * 0.5)
  50. }
  51. [dir="ltr"] .layout--fourcol-section > .layout__region--second,[dir="ltr"]
  52. .layout--fourcol-section > .layout__region--fourth {
  53. margin-left: calc(var(--grid-gap) * 0.5)
  54. }
  55. [dir="rtl"] .layout--fourcol-section > .layout__region--second,[dir="rtl"]
  56. .layout--fourcol-section > .layout__region--fourth {
  57. margin-right: calc(var(--grid-gap) * 0.5)
  58. }
  59. }
  60. .layout--fourcol-section {
  61. /* Four column layout. */
  62. }
  63. @media (min-width: 62.5rem) {
  64. .layout--fourcol-section > .layout__region {
  65. flex-basis: calc(25% - (var(--grid-gap) * 0.75));
  66. }
  67. .layout--fourcol-section > .layout__region--first,
  68. .layout--fourcol-section > .layout__region--second {
  69. margin-bottom: 0;
  70. }
  71. [dir="ltr"] .layout--fourcol-section > .layout__region--first {
  72. margin-right: calc(var(--grid-gap) * 0.5)
  73. }
  74. [dir="rtl"] .layout--fourcol-section > .layout__region--first {
  75. margin-left: calc(var(--grid-gap) * 0.5)
  76. }
  77. .layout--fourcol-section > .layout__region--second,
  78. .layout--fourcol-section > .layout__region--third {
  79. margin-left: calc(var(--grid-gap) * 0.5);
  80. margin-right: calc(var(--grid-gap) * 0.5);
  81. }
  82. [dir="ltr"] .layout--fourcol-section > .layout__region--fourth {
  83. margin-left: calc(var(--grid-gap) * 0.5)
  84. }
  85. [dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
  86. margin-right: calc(var(--grid-gap) * 0.5)
  87. }
  88. }