Skip to content

Instantly share code, notes, and snippets.

@pimbrouwers
Created March 27, 2018 13:45
Show Gist options
  • Save pimbrouwers/0d69c268b93115a2106d2b1eb5cbef6b to your computer and use it in GitHub Desktop.
Save pimbrouwers/0d69c268b93115a2106d2b1eb5cbef6b to your computer and use it in GitHub Desktop.
Minimal CSS Reset
html, body, div, span,
h1,h2,h3,h4,h5,h6,hgroup,
ul,ol,dd,
p,figure,
pre,table,fieldset,hr,
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
}
html {
box-sizing: border-box;
font: 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
*, *:before, *:after {
box-sizing: inherit;
vertical-align: baseline;
}
h1,h2,h3,h4,h5,h6,hgroup,
ul,ol,dd,
p,figure,
pre,table,fieldset,hr {
margin-bottom: 1rem;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
:focus {
outline: 0;
}
img {
height: auto;
max-width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment