Skip to content

Instantly share code, notes, and snippets.

@atomize
Created March 1, 2012 07:43
Show Gist options
  • Save atomize/1948093 to your computer and use it in GitHub Desktop.
Save atomize/1948093 to your computer and use it in GitHub Desktop.
CSS - Webkit - prevent default ugliness when you touch things
* {
/* prevent callout to copy image, etc when tap to hold */
-webkit-touch-callout: none;
/* prevent webkit from resizing text to fit */
-webkit-text-size-adjust: none;
/* make transparent link selection, adjust last value opacity 0 to 1.0 */
-webkit-tap-highlight-color: rgba(0,0,0,0);
/* prevent copy paste, to allow, change 'none' to 'text' */
-webkit-user-select: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment