css restrict gutter margins to .column instead .gru-content (#66458)

This commit is contained in:
Thomas Jund 2022-06-21 17:39:49 +02:00
parent 29e08ac5e0
commit 7e074b81db
4 changed files with 23 additions and 9 deletions

View File

@ -217,6 +217,12 @@ div.wcs-tracking-code-input--title {
}
.header_three_columns--header {
.cell {
@media ($min-desktop-viewport) {
margin-left: #{$columns-gutter / 2};
margin-right: #{$columns-gutter / 2};
}
}
div[class^="grid-"].cell, > div[class*=" grid-"].cell {
padding-right: 0;
margin-right: 1rem;

View File

@ -39,23 +39,20 @@ $cell-close-foldable-icon: "\f106" !default; // angle-up
// Columns gutters
@media screen and ($min-desktop-viewport) {
.column div.a2-block,
.gru-content div.cell,
.column .a2-block,
.column .cell,
.block {
margin-left: #{$columns-gutter / 2};
margin-right: #{$columns-gutter / 2};
}
.gru-content #columns > .cell,
.column:first-child .block,
.column:first-child div.a2-block,
.gru-content .column:first-child .cell { margin-left: 0; }
.gru-content #columns > .cell,
.column:first-child .a2-block,
.column:first-child .cell { margin-left: 0; }
.column:last-child .block,
.column:last-child div.a2-block,
.gru-content .column:last-child .cell { margin-right: 0; }
.column:last-child .a2-block,
.column:last-child .cell { margin-right: 0; }
}
.a2-block {
margin: 4em auto;
max-width: 45em;

View File

@ -266,6 +266,13 @@ div#main-content-wrapper {
padding-left: 0.7rem;
padding-right: 0.7rem;
}
.cell {
@media ($min-desktop-viewport) {
margin-left: #{$columns-gutter / 2};
margin-right: #{$columns-gutter / 2};
}
}
}
// 3 cols layout
@media ($min-desktop-viewport) {

View File

@ -122,6 +122,10 @@ div#section-une {
div.cell {
float: right;
width: 25%;
@media ($min-desktop-viewport) {
margin-left: #{$columns-gutter / 2};
margin-right: #{$columns-gutter / 2};
}
@media screen and ($max-mobile-viewport) {
float: none;
width: auto;