From 9508b351a1b675c195628a6f54f6bf10eb765c42 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Fri, 22 May 2009 23:17:08 -0400 Subject: [PATCH] css fiddling --- dip3.css | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/dip3.css b/dip3.css index a354e52..d6956dd 100644 --- a/dip3.css +++ b/dip3.css @@ -57,14 +57,11 @@ Acknowledgements & Inspirations /* typography */ body, .w a { - font: medium 'Gill Sans', 'Gill Sans MT', Corbel, Helvetica, 'Nimbus Sans L', sans-serif; - line-height: 1.75; + font: medium/1.75 'Gill Sans', 'Gill Sans MT', Corbel, Helvetica, 'Nimbus Sans L', sans-serif; word-spacing: 0.1em; } -pre, kbd, samp, code, var { - font-family: Consolas, 'Andale Mono', Monaco, 'Liberation Mono', 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', monospace; - font-size: medium; - line-height: 1.75; +pre, kbd, samp, code, var, .b { + font: small/2.154 Consolas, 'Andale Mono', Monaco, 'Liberation Mono', 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', monospace; word-spacing: 0; } span { @@ -99,7 +96,7 @@ abbr { margin: 0 0.22em 0 -1.22em; color: steelblue; } -.c, pre, .w, .w a, .d { +.c, w, .w a, .d { line-height: 2.154; } .f:first-letter { @@ -116,7 +113,7 @@ p, ul, ol { /* basics */ html { - background: #fff; + background: #fff url(grid28.gif); color: #222; } body { @@ -192,6 +189,9 @@ pre span, .p { li ol, .q { margin: 0; } +code, var, samp { + line-height:inherit !important; +} pre a, .w a, pre a:hover { border: 0; } @@ -209,40 +209,33 @@ h1, h2 { } h1, h1 code { font-size: xx-large; + line-height: 1.72; } h2, h2 code { font-size: x-large; + line-height: 2.334; + margin: 2.334em 0; } h3, h3 code { font-size: large; + line-height: 3.112; + margin: 3.112em 0; } h1 { border-bottom: 4px double; width: 100%; - margin: 1em 0; + margin: 1.71em 0 1.72em 0; + counter-reset: h2; } h1:before { content: "Chapter " counter(h1) ". "; } -h1 { - counter-reset: h2; -} h2:before { counter-increment: h2; content: counter(h1) "." counter(h2) ". "; } h2 { counter-reset: h3; - border-top: 1px dotted; - padding-top: 1.75em; -} -h2, h3 { - margin-top: 1.75em; -} -#toc + h2 { - border: 0; - margin: 0; - padding: 0; } #toc + h2:before { content: "";