layout-builder-twocol-section.css
Same filename in other branches
/* * 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-bottom: 1.125rem; } @media (min-width: 43.75rem) { .layout--twocol-section > .layout__region { flex-grow: 0; flex-shrink: 0; margin-bottom: 0; } } @media (min-width: 43.75rem) { [dir="ltr"] .layout--twocol-section--50-50 > .layout__region--first { margin-right: 1.125rem; } [dir="rtl"] .layout--twocol-section--50-50 > .layout__region--first { margin-left: 1.125rem; } .layout--twocol-section--50-50 > .layout__region--first { flex-basis: calc(50% - 1.125rem); } [dir="ltr"] .layout--twocol-section--50-50 > .layout__region--second { margin-left: 1.125rem; } [dir="rtl"] .layout--twocol-section--50-50 > .layout__region--second { margin-right: 1.125rem; } .layout--twocol-section--50-50 > .layout__region--second { flex-basis: calc(50% - 1.125rem); } [dir="ltr"] .layout--twocol-section--33-67 > .layout__region--first { margin-right: 0.74993rem; } [dir="rtl"] .layout--twocol-section--33-67 > .layout__region--first { margin-left: 0.74993rem; } .layout--twocol-section--33-67 > .layout__region--first { flex-basis: calc(33.33% - 0.74993rem); } [dir="ltr"] .layout--twocol-section--33-67 > .layout__region--second { margin-left: 1.49985rem; } [dir="rtl"] .layout--twocol-section--33-67 > .layout__region--second { margin-right: 1.49985rem; } .layout--twocol-section--33-67 > .layout__region--second { flex-basis: calc(66.66% - 1.49985rem); } [dir="ltr"] .layout--twocol-section--67-33 > .layout__region--first { margin-right: 1.49985rem; } [dir="rtl"] .layout--twocol-section--67-33 > .layout__region--first { margin-left: 1.49985rem; } .layout--twocol-section--67-33 > .layout__region--first { flex-basis: calc(66.66% - 1.49985rem); } [dir="ltr"] .layout--twocol-section--67-33 > .layout__region--second { margin-left: 0.74993rem; } [dir="rtl"] .layout--twocol-section--67-33 > .layout__region--second { margin-right: 0.74993rem; } .layout--twocol-section--67-33 > .layout__region--second { flex-basis: calc(33.33% - 0.74993rem); } [dir="ltr"] .layout--twocol-section--25-75 > .layout__region--first { margin-right: 0.5625rem; } [dir="rtl"] .layout--twocol-section--25-75 > .layout__region--first { margin-left: 0.5625rem; } .layout--twocol-section--25-75 > .layout__region--first { flex-basis: calc(25% - 0.5625rem); } [dir="ltr"] .layout--twocol-section--25-75 > .layout__region--second { margin-left: 1.6875rem; } [dir="rtl"] .layout--twocol-section--25-75 > .layout__region--second { margin-right: 1.6875rem; } .layout--twocol-section--25-75 > .layout__region--second { flex-basis: calc(75% - 1.6875rem); } [dir="ltr"] .layout--twocol-section--75-25 > .layout__region--first { margin-right: 1.6875rem; } [dir="rtl"] .layout--twocol-section--75-25 > .layout__region--first { margin-left: 1.6875rem; } .layout--twocol-section--75-25 > .layout__region--first { flex-basis: calc(75% - 1.6875rem); } [dir="ltr"] .layout--twocol-section--75-25 > .layout__region--second { margin-left: 0.5625rem; } [dir="rtl"] .layout--twocol-section--75-25 > .layout__region--second { margin-right: 0.5625rem; } .layout--twocol-section--75-25 > .layout__region--second { flex-basis: calc(25% - 0.5625rem); } }
File
-
core/
themes/ olivero/ css/ layout/ layout-builder-twocol-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 two-column layout section.
- */
-
- .layout--twocol-section {
- display: flex;
- flex-wrap: wrap;
- }
-
- .layout--twocol-section > .layout__region {
- flex: 1 0 100%;
- margin-bottom: 1.125rem;
- }
-
- @media (min-width: 43.75rem) {
-
- .layout--twocol-section > .layout__region {
- flex-grow: 0;
- flex-shrink: 0;
- margin-bottom: 0;
- }
- }
-
- @media (min-width: 43.75rem) {
- [dir="ltr"] .layout--twocol-section--50-50 > .layout__region--first {
- margin-right: 1.125rem;
- }
- [dir="rtl"] .layout--twocol-section--50-50 > .layout__region--first {
- margin-left: 1.125rem;
- }
- .layout--twocol-section--50-50 > .layout__region--first {
- flex-basis: calc(50% - 1.125rem);
- }
-
- [dir="ltr"] .layout--twocol-section--50-50 > .layout__region--second {
- margin-left: 1.125rem;
- }
-
- [dir="rtl"] .layout--twocol-section--50-50 > .layout__region--second {
- margin-right: 1.125rem;
- }
-
- .layout--twocol-section--50-50 > .layout__region--second {
- flex-basis: calc(50% - 1.125rem);
- }
- [dir="ltr"] .layout--twocol-section--33-67 > .layout__region--first {
- margin-right: 0.74993rem;
- }
- [dir="rtl"] .layout--twocol-section--33-67 > .layout__region--first {
- margin-left: 0.74993rem;
- }
- .layout--twocol-section--33-67 > .layout__region--first {
- flex-basis: calc(33.33% - 0.74993rem);
- }
-
- [dir="ltr"] .layout--twocol-section--33-67 > .layout__region--second {
- margin-left: 1.49985rem;
- }
-
- [dir="rtl"] .layout--twocol-section--33-67 > .layout__region--second {
- margin-right: 1.49985rem;
- }
-
- .layout--twocol-section--33-67 > .layout__region--second {
- flex-basis: calc(66.66% - 1.49985rem);
- }
- [dir="ltr"] .layout--twocol-section--67-33 > .layout__region--first {
- margin-right: 1.49985rem;
- }
- [dir="rtl"] .layout--twocol-section--67-33 > .layout__region--first {
- margin-left: 1.49985rem;
- }
- .layout--twocol-section--67-33 > .layout__region--first {
- flex-basis: calc(66.66% - 1.49985rem);
- }
-
- [dir="ltr"] .layout--twocol-section--67-33 > .layout__region--second {
- margin-left: 0.74993rem;
- }
-
- [dir="rtl"] .layout--twocol-section--67-33 > .layout__region--second {
- margin-right: 0.74993rem;
- }
-
- .layout--twocol-section--67-33 > .layout__region--second {
- flex-basis: calc(33.33% - 0.74993rem);
- }
- [dir="ltr"] .layout--twocol-section--25-75 > .layout__region--first {
- margin-right: 0.5625rem;
- }
- [dir="rtl"] .layout--twocol-section--25-75 > .layout__region--first {
- margin-left: 0.5625rem;
- }
- .layout--twocol-section--25-75 > .layout__region--first {
- flex-basis: calc(25% - 0.5625rem);
- }
-
- [dir="ltr"] .layout--twocol-section--25-75 > .layout__region--second {
- margin-left: 1.6875rem;
- }
-
- [dir="rtl"] .layout--twocol-section--25-75 > .layout__region--second {
- margin-right: 1.6875rem;
- }
-
- .layout--twocol-section--25-75 > .layout__region--second {
- flex-basis: calc(75% - 1.6875rem);
- }
- [dir="ltr"] .layout--twocol-section--75-25 > .layout__region--first {
- margin-right: 1.6875rem;
- }
- [dir="rtl"] .layout--twocol-section--75-25 > .layout__region--first {
- margin-left: 1.6875rem;
- }
- .layout--twocol-section--75-25 > .layout__region--first {
- flex-basis: calc(75% - 1.6875rem);
- }
-
- [dir="ltr"] .layout--twocol-section--75-25 > .layout__region--second {
- margin-left: 0.5625rem;
- }
-
- [dir="rtl"] .layout--twocol-section--75-25 > .layout__region--second {
- margin-right: 0.5625rem;
- }
-
- .layout--twocol-section--75-25 > .layout__region--second {
- flex-basis: calc(25% - 0.5625rem);
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.