Skip to content

Commit

Permalink
Remove bottom margin on p and .button last children
Browse files Browse the repository at this point in the history
[#184]
Signed-off-by: Em Barnard-Shao <[email protected]>
  • Loading branch information
bencalegari authored and embarnard committed Jun 18, 2020
1 parent 8512de6 commit 11fab79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/atoms/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
margin-left: 0;
}

&:last-of-type {
margin-bottom: 0;
}

&:hover {
background-color: $color-grey-light;
color: $color-grey-darkest;
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/atoms/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
p {
margin-top: 0;
margin-bottom: $s25;

&:last-child {
margin-bottom: 0;
}
}

h1 {
Expand Down

0 comments on commit 11fab79

Please sign in to comment.