Skip to content

Instantly share code, notes, and snippets.

@trilodge
Last active January 2, 2016 18:09
Show Gist options
  • Save trilodge/8341487 to your computer and use it in GitHub Desktop.
Save trilodge/8341487 to your computer and use it in GitHub Desktop.
some (mobile) webkit specific resets and adjustments. sort of.
* {
/* should only be used on mobile webkit browser cause it disables zoom on webkit desktop browsers */
-webkit-text-size-adjust: none;
-webkit-text-stroke: 0;
/* works with safari5+ and iOS4+ */
-webkit-font-smoothing: antialiased;
/* http://css-infos.net/property/-webkit-touch-callout */
-webkit-touch-callout: none;
/* improves font kerning and ligatures - but has some issues mobile webkit on Android with custom webfonts */
text-rendering: optimizeLegibility;
}
a {
-webkit-tap-highlight-color: rgba(0,0,0,0.6);
}
img {
/* prevents popup on images while long tap. */
-webkit-touch-callout: none;
}
p {
/*prevents user from selecting text - useless imho */
-webkit-user-select: none;
}
input,
button,
select,
textarea {
-webkit-appearance: none;
}
textarea {
resize: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment