layout-builder-threecol-section.pcss.css
Same filename in other branches
/* * @file * Provides the layout styles for three-column layout section. */ @import "../base/media-queries.pcss.css"; .layout--threecol-section { display: grid; gap: var(--grid-gap); grid-template-columns: var(--layout-threecol-grid); & > .layout__region--first { grid-column: var(--layout-threecol-grid__first); } & > .layout__region--second { grid-column: var(--layout-threecol-grid__second); } & > .layout__region--third { grid-column: var(--layout-threecol-grid__third); } } @media (--lg) { .layout--threecol-section--25-50-25 { --layout-threecol-grid: repeat(4, minmax(0, 1fr)); --layout-threecol-grid__second: span 2; } .layout--threecol-section--25-25-50 { --layout-threecol-grid: repeat(4, minmax(0, 1fr)); --layout-threecol-grid__third: span 2; } .layout--threecol-section--50-25-25 { --layout-threecol-grid: repeat(4, minmax(0, 1fr)); --layout-threecol-grid__first: span 2; } .layout--threecol-section--33-34-33 { --layout-threecol-grid: repeat(3, minmax(0, 1fr)); } }
File
-
core/
themes/ olivero/ css/ layout/ layout-builder-threecol-section.pcss.css
View source
- /*
- * @file
- * Provides the layout styles for three-column layout section.
- */
-
- @import "../base/media-queries.pcss.css";
-
- .layout--threecol-section {
- display: grid;
- gap: var(--grid-gap);
- grid-template-columns: var(--layout-threecol-grid);
-
- & > .layout__region--first {
- grid-column: var(--layout-threecol-grid__first);
- }
-
- & > .layout__region--second {
- grid-column: var(--layout-threecol-grid__second);
- }
-
- & > .layout__region--third {
- grid-column: var(--layout-threecol-grid__third);
- }
- }
-
- @media (--lg) {
- .layout--threecol-section--25-50-25 {
- --layout-threecol-grid: repeat(4, minmax(0, 1fr));
- --layout-threecol-grid__second: span 2;
- }
-
- .layout--threecol-section--25-25-50 {
- --layout-threecol-grid: repeat(4, minmax(0, 1fr));
- --layout-threecol-grid__third: span 2;
- }
-
- .layout--threecol-section--50-25-25 {
- --layout-threecol-grid: repeat(4, minmax(0, 1fr));
- --layout-threecol-grid__first: span 2;
- }
-
- .layout--threecol-section--33-34-33 {
- --layout-threecol-grid: repeat(3, minmax(0, 1fr));
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.