Skip to content

Commit

Permalink
CSS adjustments for core grid
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Jun 28, 2023
1 parent 6fdfc73 commit 4270c6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/theme/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,17 @@ footer {
// Grids adjustments (has to be paired with collections/grid.variables)
// TODO: Move to our own grid component
.block.__grid .ui.stackable,
.block.__grid h2.headline {
.block.__grid h2.headline,
.block.gridBlock .ui.stackable,
.block.gridBlock .grid-items,
.block.gridBlock h2.headline {
@include default-container-width();
max-width: calc(var(--default-container-width) + 1rem);
}

// Fix for Image Grid with only one image
#page-document .block.__grid .block.image.align.center figure {
#page-document .block.__grid .block.image.align.center figure,
#page-document .block.gridBlock .block.image.align.center figure {
max-width: unset;
}

Expand Down

0 comments on commit 4270c6f

Please sign in to comment.