Skip to content

Instantly share code, notes, and snippets.

@DuncanWilder
Last active January 25, 2020 14:58
Show Gist options
  • Save DuncanWilder/502671fa763bd70b64b73c578289550f to your computer and use it in GitHub Desktop.
Save DuncanWilder/502671fa763bd70b64b73c578289550f to your computer and use it in GitHub Desktop.
normalize-reset.css
// 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