Created
September 9, 2020 18:04
-
-
Save Okkido/5a54597a0c7b7dd8bf6c33bca117ba27 to your computer and use it in GitHub Desktop.
Fix 100vh height bug in Safari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
height: 100vh; | |
} | |
/* Avoid Chrome to see Safari hack */ | |
@supports (-webkit-touch-callout: none) { | |
body { | |
/* The hack for Safari */ | |
height: -webkit-fill-available; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PostCSS plugin here