Created
June 9, 2015 17:29
-
-
Save jmsmrgn/f2fa3819406f455b0d52 to your computer and use it in GitHub Desktop.
Mobile Reset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, *: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