From 2a18a36d01bd1f794e815deabc6356fc046cf75a Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 9 Oct 2012 08:42:38 -0700 Subject: [PATCH] use css reset --- style/site.css | 53 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 47 insertions(+), 6 deletions(-) diff --git a/style/site.css b/style/site.css index 9d66918..bc60498 100644 --- a/style/site.css +++ b/style/site.css @@ -1,17 +1,60 @@ +/* CSS reset: http://meyerweb.com/eric/tools/css/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 { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + /* Layout and typography */ body { font-family: 'Palatino Linotype'; font-size: 16px; line-height: 20px; color: #252519; - margin: 0; padding: 0; +} +em { + font-style: italic; } a, a:visited { color: #261a3b; } -p { - margin: 0; -} h2 { margin: 24px 0 12px 0; font-weight: normal; @@ -42,7 +85,6 @@ div#contents h2 { div#contents ul { list-style: none; padding: 0 0 0 5px; - margin: 0; font-size: 18px; line-height: 24px; } @@ -78,7 +120,6 @@ td.code.empty { pre, code { font-size: 10px; line-height: 14px; font-family: 'Monaco'; - margin: 0; padding: 0; }