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.
*/
.layout--fourcol-section {
display: flex;
flex-wrap: wrap;
}
.layout--fourcol-section > .layout__region {
flex: 1 0 100%;
margin-bottom: 1.125rem;
}
@media (min-width: 43.75rem) {
.layout--fourcol-section > .layout__region {
flex-basis: calc(50% - 1.125rem);
flex-grow: 0;
flex-shrink: 0;
margin-bottom: 0;
}
}
/* Two column layout. */
@media (min-width: 43.75rem) {
.layout--fourcol-section > .layout__region--first,
.layout--fourcol-section > .layout__region--second {
margin-bottom: 2.25rem;
}
[dir="ltr"] .layout--fourcol-section > .layout__region--first,
[dir="ltr"] .layout--fourcol-section > .layout__region--third {
margin-right: 1.125rem;
}
[dir="rtl"] .layout--fourcol-section > .layout__region--first,
[dir="rtl"] .layout--fourcol-section > .layout__region--third {
margin-left: 1.125rem;
}
[dir="ltr"] .layout--fourcol-section > .layout__region--second,
[dir="ltr"] .layout--fourcol-section > .layout__region--fourth {
margin-left: 1.125rem;
}
[dir="rtl"] .layout--fourcol-section > .layout__region--second,
[dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
margin-right: 1.125rem;
}
}
/* Four column layout. */
@media (min-width: 62.5rem) {
.layout--fourcol-section > .layout__region {
flex-basis: calc(25% - 1.6875rem);
}
.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: 1.125rem;
}
[dir="rtl"] .layout--fourcol-section > .layout__region--first {
margin-left: 1.125rem;
}
.layout--fourcol-section > .layout__region--second,
.layout--fourcol-section > .layout__region--third {
margin-right: 1.125rem;
margin-left: 1.125rem;
}
[dir="ltr"] .layout--fourcol-section > .layout__region--fourth {
margin-left: 1.125rem;
}
[dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
margin-right: 1.125rem;
}
}
File
-
core/
themes/ olivero/ css/ layout/ layout-builder-fourcol-section.css
View source
- /*
- * 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.
- */
-
- .layout--fourcol-section {
- display: flex;
- flex-wrap: wrap;
- }
-
- .layout--fourcol-section > .layout__region {
- flex: 1 0 100%;
- margin-bottom: 1.125rem;
- }
-
- @media (min-width: 43.75rem) {
-
- .layout--fourcol-section > .layout__region {
- flex-basis: calc(50% - 1.125rem);
- flex-grow: 0;
- flex-shrink: 0;
- margin-bottom: 0;
- }
- }
-
- /* Two column layout. */
-
- @media (min-width: 43.75rem) {
- .layout--fourcol-section > .layout__region--first,
- .layout--fourcol-section > .layout__region--second {
- margin-bottom: 2.25rem;
- }
-
- [dir="ltr"] .layout--fourcol-section > .layout__region--first,
- [dir="ltr"] .layout--fourcol-section > .layout__region--third {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .layout--fourcol-section > .layout__region--first,
- [dir="rtl"] .layout--fourcol-section > .layout__region--third {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .layout--fourcol-section > .layout__region--second,
- [dir="ltr"] .layout--fourcol-section > .layout__region--fourth {
- margin-left: 1.125rem;
- }
-
- [dir="rtl"] .layout--fourcol-section > .layout__region--second,
- [dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
- margin-right: 1.125rem;
- }
- }
-
- /* Four column layout. */
-
- @media (min-width: 62.5rem) {
- .layout--fourcol-section > .layout__region {
- flex-basis: calc(25% - 1.6875rem);
- }
-
- .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: 1.125rem;
- }
-
- [dir="rtl"] .layout--fourcol-section > .layout__region--first {
- margin-left: 1.125rem;
- }
-
- .layout--fourcol-section > .layout__region--second,
- .layout--fourcol-section > .layout__region--third {
- margin-right: 1.125rem;
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .layout--fourcol-section > .layout__region--fourth {
- margin-left: 1.125rem;
- }
-
- [dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
- margin-right: 1.125rem;
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.