Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/site/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
.aem-Grid {
display: block;
inline-size: 100%;
/* negative margin offsets the column gutter padding below so the
row's outer edge lines up with its container as before */
margin-inline: calc(#{$grid-gutter} / -2);
}

.aem-Grid::before,
Expand All @@ -41,6 +44,8 @@
.aem-GridColumn {
clear: both;
box-sizing: border-box;
/* half gutter on each side: adjacent columns get a full gutter between them */
padding-inline: calc(#{$grid-gutter} / 2);
}

/* force showing hidden */
Expand Down
1 change: 1 addition & 0 deletions src/site/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ $radio-checkbox-gap: 20px;
//== Grid

$max_col: 12;
$grid-gutter: 20px;
Loading