Created
January 27, 2016 03:24
-
-
Save lvterry/d3a37f91a37320c3c2d5 to your computer and use it in GitHub Desktop.
Disable body scroll on mobile safari
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
/* Add these styles to the body element when menu is displayed */ | |
body.has-active-menu { | |
overflow: hidden; | |
position: fixed; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment