Created
May 17, 2017 16:14
-
-
Save jlong/e1f4c1e7b0df68db53e1eb9fa7558f23 to your computer and use it in GitHub Desktop.
Micro CSS reset
This file contains hidden or 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
// 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