Skip to content

Instantly share code, notes, and snippets.

@jmsmrgn
Created June 9, 2015 17:29
Show Gist options
  • Save jmsmrgn/f2fa3819406f455b0d52 to your computer and use it in GitHub Desktop.
Save jmsmrgn/f2fa3819406f455b0d52 to your computer and use it in GitHub Desktop.
Mobile Reset
*, *:before, *:after {
/* suppressing the tap highlight */
-webkit-tap-highlight-color: rgba(0,0,0,0);
/* this is a personal preference */
box-sizing: border-box;
vertical-align: top;
padding: 0;
margin: 0;
-webkit-font-smoothing: antialiased;
}
*:focus {
/* the default outline doesn't play well with a mobile application,
I usually start without it,
but don't forget to research further to make your mobile app accessible. */
outline: 0;
}
input {
border-radius: 0;
}
html, body {
/* we don't want to allow users to select text everywhere,
you can enable it on the places you think appropriate */
user-select: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment