Created
January 21, 2019 21:12
-
-
Save jlong/e4f3ede104e8aff5cc765ee41a00c091 to your computer and use it in GitHub Desktop.
Modified Meyer Reset with Universal Selector
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
// 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