Last active
January 25, 2020 14:58
-
-
Save DuncanWilder/502671fa763bd70b64b73c578289550f to your computer and use it in GitHub Desktop.
normalize-reset.css
This file contains 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
// Reset padding, margins, and get everything to use box-sizing: border-box | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
// Remove touch delay on mobile devices (where the browser is waiting 300ms for a double tap) | |
a, | |
area, | |
button, | |
[role="button"], | |
input:not([type=range]), | |
label, | |
select, | |
summary, | |
textarea { | |
-ms-touch-action: manipulation; | |
touch-action: manipulation; | |
} | |
// Optional system fonts stack | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment