Skip to content

Commit

Permalink
change(container): modified column-block grid to remove margin and pa…
Browse files Browse the repository at this point in the history
…dding when using full width class

- this way the content becomes truly full width
  • Loading branch information
ichim-david committed Nov 10, 2022
1 parent fd563a9 commit 35c1cee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions theme/themes/eea/collections/grid.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@
.ui.grid > [class*='any reversed'].row {
flex-direction: row-reverse;
}

// remove grid and column padding from full-size
.has--size--full .grid {
margin-left: 0;
margin-right: 0;
}
.has--size--full .grid .column {
padding: 0 !important;
}

13 changes: 13 additions & 0 deletions theme/themes/eea/elements/container.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ body {
}

/* Hack for escape the blocks container in blocks full width */
.has--size--full:not(.block-editor-columnsBlock),
.full-width {
position: relative;
right: 50%;
Expand All @@ -120,3 +121,15 @@ body {
margin-right: -50vw !important;
margin-left: -50vw !important;
}

@media screen and (min-width: 768px) {
.has-toolbar .has--size--full:not(.block-editor-columnsBlock) {
margin-left: -47vw !important;
}

.has-toolbar-collapsed .has--size--full:not(.block-editor-columnsBlock) {
margin-left: -49vw !important;
}

}

0 comments on commit 35c1cee

Please sign in to comment.