Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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