Last active
September 4, 2023 09:52
-
-
Save oscarotero/8ca10ea8475124c92922745a648d7954 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* iPhone X notch: Remove the white bars in Safari | |
* It's needed to include the "viewport-fit=cover" directive in the html. For example: | |
* <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> | |
* | |
* More info: http://stephenradford.me/removing-the-white-bars-in-safari-on-iphone-x/ | |
*/ | |
.wrapper { | |
background-color: red; | |
padding: env(safe-area-inset-top) | |
env(safe-area-inset-right) | |
env(safe-area-inset-bottom) | |
env(safe-area-inset-left); | |
} | |
/** | |
* Customize the scroll overflow effect | |
* Possible values are auto, contain and none | |
* | |
* More info: https://developers.google.com/web/updates/2017/11/overscroll-behavior | |
*/ | |
body { | |
overscroll-behavior: contain; | |
} | |
/** | |
* Fixed blurred images on scale in chrome | |
* | |
* More info: https://medium.freecodecamp.org/-898b38a6c0e1 | |
*/ | |
img { | |
image-rendering: -webkit-optimize-contrast; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for letting me know.
Fixed!