Skip to content

Commit

Permalink
💄 style: retain element's spacing within full-width
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Aug 11, 2023
1 parent 503f54a commit b1b98eb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,18 @@ article {
}

.full-width {
width: auto;
height: auto;
display: flex;
flex-direction: column;
max-width: calc(100% + 2*$base-margin);
margin-left: -$base-margin;
margin-right: -$base-margin;

> * {
margin: 0;
padding: 0;
> *:first-child {
margin-top: 0;
}

> *:last-child {
margin-bottom: 0;
}
}
}
Expand Down

0 comments on commit b1b98eb

Please sign in to comment.