From 57fd8879f5cfe32ade0235b50ad451fe8c0dcbf1 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 3 May 2011 14:34:30 -0700 Subject: [PATCH] Normalize and personalized sizing and spacing --- normalize.metrics.css | 162 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 normalize.metrics.css diff --git a/normalize.metrics.css b/normalize.metrics.css new file mode 100644 index 0000000..bad6d7b --- /dev/null +++ b/normalize.metrics.css @@ -0,0 +1,162 @@ +/* + * Metrics + * Normalized and personalized sizing and spacing +*/ + +body, +button +input, +select, +textarea { + font: 12px/18px sans-serif; +} + +/* + * Sectioning content +*/ + +article, +aside, +section { + margin: 2em 0; +} + +/* + * Flow content +*/ + +dl, +figure, +menu, +nav, +ol, +p, +pre, +ul { + margin: 1em 0; +} + +blockquote { + margin: 1em 40px; +} + +/* + * Heading content +*/ + +h1, +h2, +h3, +h4, +h5, +h6, +hgroup { + margin: 1em 0; +} + +p + h2, +p + h3, +p + h4, +p + h5, +p + h6 { + margin-top: 2em; +} + +hgroup h1, +hgroup h2, +hgroup h3, +hgroup h4, +hgroup h5, +hgroup h6 { + margin: 0.5em 0; +} + +/* + * List content +*/ + +details, +menu, +ol, +ul { + padding: 0 0 0 40px; +} + +dd { + margin: 0 0 0 40px; +} + +nav ul { + list-style: none; +} + +/* +* Table content +*/ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +caption { + padding: 0 0 1em; +} + +th, +td { + padding: 1px; + text-align: left; +} + +/* +* Breaks +*/ + +hr { + background: #CCC; + border: 0; + height: 1px; + margin: -1px 0 1em; +} + +/* Fonts */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +h2 { + font-size: 1.5em; + margin: 0.83em 0; +} + +h3 { + font-size: 1.17em; + margin: 1em 0; +} + +h4 { + font-size: 1em; + margin: 1.33em 0; +} + +h5 { + font-size: 0.83em; + margin: 1.67em 0; +} + +h6 { + font-size: 0.67em; + margin: 2.33em 0; +} + +/* + * Forms +*/ + +fieldset { + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} \ No newline at end of file