aboutsummaryrefslogtreecommitdiff
path: root/lib/reset.less
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-01-23 15:06:56 -0800
committerJacob Thornton <[email protected]>2012-01-23 15:06:56 -0800
commit74521e835489066d58813c960bc98d1713ea6074 (patch)
tree487e40dd09ab1120130dc64b4292eb3e57f0eec2 /lib/reset.less
parentf764aee4b919c28974dba7b91edac9a04172ba25 (diff)
parenta074087034716804610637a5ad9cc0447a2cccb2 (diff)
downloadbootstrap-74521e835489066d58813c960bc98d1713ea6074.tar.xz
bootstrap-74521e835489066d58813c960bc98d1713ea6074.zip
Merge branch '2.0-wip' of https://github.com/twitter/bootstrap into 2.0-wip
Conflicts: bootstrap.css docs/base-css.html docs/components.html docs/index.html docs/javascript.html docs/less.html docs/scaffolding.html
Diffstat (limited to 'lib/reset.less')
-rw-r--r--lib/reset.less69
1 files changed, 23 insertions, 46 deletions
diff --git a/lib/reset.less b/lib/reset.less
index 8fe04d6d1..31e7160f2 100644
--- a/lib/reset.less
+++ b/lib/reset.less
@@ -1,50 +1,10 @@
// Reset.less
-// Props to Eric Meyer (meyerweb.com) for his CSS reset file.
-// We're using an adapted version here that cuts out some of the reset HTML
-// elements we will never need here (i.e., dfn, samp, etc).
+// Adapted from Normalize.css http://github.com/necolas/normalize.css
// ------------------------------------------------------------------------
-
-// ERIC MEYER RESET
-// --------------------------------------------------
-
-html, body { margin: 0; padding: 0; }
-h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
-table {
- max-width: 100%;
- border-collapse: collapse;
- border-spacing: 0;
-}
-ol, ul { list-style: none; }
-q:before, q:after, blockquote:before, blockquote:after { content: ""; }
-
-
-// Normalize.css
-// Pulling in select resets form the normalize.css project
-// --------------------------------------------------
-
// Display in IE6-9 and FF3
// -------------------------
-// Source: http://github.com/necolas/normalize.css
-html {
- overflow-y: scroll;
- font-size: 100%;
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%;
-}
-// Focus states
-a:focus {
- outline: thin dotted;
-}
-// Hover & Active
-a:hover,
-a:active {
- outline: 0;
-}
-// Display in IE6-9 and FF3
-// -------------------------
-// Source: http://github.com/necolas/normalize.css
article,
aside,
details,
@@ -60,7 +20,7 @@ section {
// Display block in IE6-9 and FF3
// -------------------------
-// Source: http://github.com/necolas/normalize.css
+
audio,
canvas,
video {
@@ -71,14 +31,32 @@ video {
// Prevents modern browsers from displaying 'audio' without controls
// -------------------------
-// Source: http://github.com/necolas/normalize.css
+
audio:not([controls]) {
display: none;
}
+// Base settings
+// -------------------------
+
+html {
+ font-size: 100%;
+ -webkit-text-size-adjust: 100%;
+ -ms-text-size-adjust: 100%;
+}
+// Focus states
+a:focus {
+ outline: thin dotted;
+}
+// Hover & Active
+a:hover,
+a:active {
+ outline: 0;
+}
+
// Prevents sub and sup affecting line-height in all browsers
// -------------------------
-// Source: http://github.com/necolas/normalize.css
+
sub,
sup {
position: relative;
@@ -95,7 +73,7 @@ sub {
// Img border in a's and image quality
// -------------------------
-// Source: http://github.com/necolas/normalize.css
+
img {
max-width: 100%;
height: auto;
@@ -105,7 +83,6 @@ img {
// Forms
// -------------------------
-// Source: http://github.com/necolas/normalize.css
// Font size in all browsers, margin changes, misc consistency
button,