Skip to content

Commit

Permalink
fix safe area for mixin with fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
danrosenthal committed Jan 16, 2019
1 parent 6a029c6 commit 02e7776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/styles/shared/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/// $spacing.
@mixin safe-area-for($property, $spacing, $area) {
$spacing: if($spacing == 0, #{$spacing}px, $spacing);
#{$property}: #{$spacing};
#{$property}: calc(#{$spacing} + constant(safe-area-inset-#{$area}));
#{$property}: calc(#{$spacing} + env(safe-area-inset-#{$area}));
}
Expand Down

0 comments on commit 02e7776

Please sign in to comment.