Skip to content

Instantly share code, notes, and snippets.

@jlong
Created January 21, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlong/e4f3ede104e8aff5cc765ee41a00c091 to your computer and use it in GitHub Desktop.
Save jlong/e4f3ede104e8aff5cc765ee41a00c091 to your computer and use it in GitHub Desktop.
Modified Meyer Reset with Universal Selector
// Modified 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;
color: inherit;
font-size: 100%;
font: inherit;
list-style: none;
outline: none;
quotes: none;
text-decoration: none;
vertical-align: baseline;
}
// New HTML 5 elements
footer, header, hgroup, menu, nav, section, small {
display: block;
}
// Ah, yes. Quote me bro.
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