Skip to content

Instantly share code, notes, and snippets.

@noel
Created June 16, 2009 03:27
Show Gist options
  • Save noel/130509 to your computer and use it in GitHub Desktop.
Save noel/130509 to your computer and use it in GitHub Desktop.
// Global reset rules.
// For more specific resets, use the reset mixins provided below
=global-reset
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td
+reset-box-model
+reset-font
+reset-focus
+reset-body
+reset-list-style
/* tables still need 'cellspacing="0"' in the markup
+reset-table
+reset-table-cell
+reset-quotation
+reset-image-anchor-border
// Reset all elements within some selector scope.To reset the selector itself,
// mixin the appropriate reset mixin for that element type as well. This could be
// useful if you want to style a part of your page in a dramatically different way.
=nested-reset
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
pre, a, abbr, acronym, address, code, del, dfn, em, img,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
+reset-box-model
+reset-font
/* tables still need 'cellspacing="0"' in the markup
+reset-table
+reset-table-cell
+reset-quotation
+reset-image-anchor-border
//Mixins partials
=reset-box-model
:margin 0
:padding 0
:border 0
:outline 0
=reset-font
:font
:weight inherit
:style inherit
:size 100%
:family inherit
:vertical-align baseline
=reset-focus
*:focus
:outline 0
=reset-body
body
:line-height 1em
:color = #000
:background #fff
=reset-list-style
ol, ul
:list-style none
=reset-table
table
:border-collapse separate
:border-spacing 0
:vertical-align middle
=reset-table-cell
caption, th, td
:text-align left
:font-weight normal
:vertical-align middle
=reset-quotation
q, blockquote
:quotes "" ""
&:before, &:after
:content ""
=reset-image-anchor-border
img a
:border none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment