Last active
January 3, 2016 05:49
-
-
Save marciobarrios/8418642 to your computer and use it in GitHub Desktop.
Some useful CSS snippets to create iOS web apps
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
/* Some JS tips: http://www.html5rocks.com/en/mobile/fullscreen/ */ | |
/* Inertia scrolling | |
More info: http://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements */ | |
.whatever { | |
-webkit-overflow-scrolling: touch; | |
} | |
/* Remove flick effect when using delegated events | |
More info: http://stackoverflow.com/questions/17173723/how-to-solve-flicker-on-ipad-when-event-delegation-is-used */ | |
* { | |
-webkit-tap-highlight-color: transparent; | |
} | |
/* Disabled text selection in buttons */ | |
button { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment