Skip to content

Commit

Permalink
Use padding instead of margin so that overflow behavior is a little s…
Browse files Browse the repository at this point in the history
…aner on mobile Safari.
  • Loading branch information
ggreer committed May 7, 2018
1 parent efbe58b commit 1a219ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/public/style/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ body {
-webkit-overflow-scrolling: touch; // Scroll with momentum
flex: 1 1 auto;
@media (max-width: $grid-float-breakpoint) {
margin-top: $masthead-height-mobile;
padding-top: $masthead-height-mobile;
}
@media (min-width: $grid-float-breakpoint) {
margin-left: $sidebar-width;
margin-top: $masthead-height-desktop;
padding-left: $sidebar-width;
padding-top: $masthead-height-desktop;
}
}

Expand Down

0 comments on commit 1a219ce

Please sign in to comment.