Skip to content

Instantly share code, notes, and snippets.

@jlong
Created May 17, 2017 16:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlong/e1f4c1e7b0df68db53e1eb9fa7558f23 to your computer and use it in GitHub Desktop.
Save jlong/e1f4c1e7b0df68db53e1eb9fa7558f23 to your computer and use it in GitHub Desktop.
Micro CSS reset
// micro-reset.scss
//
// Based on the Meyer reset
// Universal selector works great!
// See: http://blogs.telerik.com/kendoui/posts/12-09-28/css_tip_star_selector_not_that_bad
*, *::before, *::after {
margin: 0;
padding: 0;
border: 0;
border-collapse: collapse;
border-spacing: 0;
box-sizing: border-box;
outline: none;
font-size: 100%;
font: inherit;
vertical-align: baseline;
list-style: none;
quotes: none;
}
// HTML 5 me bro
footer, header, hgroup, menu, nav, section, small {
display: block;
}
// No quotes, please!
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment