From 1b3bd99c3e3b6c95fb94ae90c745cb3734a6752b Mon Sep 17 00:00:00 2001 From: Kyle Sollenberger Date: Tue, 14 Jun 2011 10:21:26 -0700 Subject: [PATCH] Added Reset Utilities based on Eric Meyers reset 2.0 - http://meyerweb.com/eric/tools/css/reset/index.html & the compass reset utility - http://compass-style.org/reference/compass/reset/utilities/ --- bootstrap.less | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/bootstrap.less b/bootstrap.less index 402bed5..6195efd 100644 --- a/bootstrap.less +++ b/bootstrap.less @@ -289,4 +289,90 @@ -webkit-box-pack: @pack; box-pack: @pack; } +} + +// Based on Eric Meyers' reset 2.0 - http://meyerweb.com/eric/tools/css/reset/index.html +// & the Compass Reset utility - http://compass-style.org/reference/compass/reset/utilities/ +#reset { + .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, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + b, u, i, center, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td, + article, aside, canvas, details, embed, + figure, figcaption, footer, header, hgroup, + menu, nav, output, ruby, section, summary, + time, mark, audio, video { + #reset > .reset-box-model; + #reset > .reset-font; + } + body { + #reset > .reset-body; + } + ol, ul { + #reset > .reset-list-style; + } + table { + #reset > .reset-table; + } + caption, th, td { + #reset > .reset-table-cell; + } + q, blockquote { + #reset > .reset-quotation; + } + a img { + #reset > .reset-image-anchor-border; + } + #reset > .reset-html5; + } + .reset-box-model { + margin: 0; + padding: 0; + border: 0; + } + .reset-font { + font-size: 100%; + font: inherit; + vertical-align: baseline; + } + .reset-focus { + outline: 0; + } + .reset-body { + line-height: 1; + } + .reset-list-style { + list-style: none; + } + .reset-table { + border-collapse: collapse; + border-spacing: 0; + } + .reset-table-cell { + text-align: left; + font-weight: normal; + vertical-align: middle; + } + .reset-quotation { + quotes: none; + &:before, &:after { + content: ""; + content: none; + } + } + .reset-image-anchor-border { + border: none; + } + .reset-html5 { + article, aside, details, figcaption, figure, + footer, header, hgroup, menu, nav, section { + display: block; + } + } } \ No newline at end of file