Skip to content

Instantly share code, notes, and snippets.

@fabiancarlos
Forked from mwbrooks/style.css
Last active January 2, 2016 15:49
Show Gist options
  • Save fabiancarlos/8325745 to your computer and use it in GitHub Desktop.
Save fabiancarlos/8325745 to your computer and use it in GitHub Desktop.
* {
-webkit-touch-callout:none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust:none; /* prevent webkit from resizing text to fit */
-webkit-tap-highlight-color:rgba(0,0,0,0); /* prevent tap highlight color / shadow */
-webkit-user-select:none; /* prevent copy paste, to allow, change 'none' to 'text' */
}
// or to use on specific template add a class on body
// <body class="mobile-higlight-off">
// <!-- html stuff -->
// </body>
.mobile-higlight-off {
-webkit-touch-callout:none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust:none; /* prevent webkit from resizing text to fit */
-webkit-tap-highlight-color:rgba(0,0,0,0); /* prevent tap highlight color / shadow */
-webkit-user-select:none; /* prevent copy paste, to allow, change 'none' to 'text' */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment