From a2b660bd77121f76f7dbd99f4b5d61cd9924571e Mon Sep 17 00:00:00 2001 From: lukemelia Date: Sat, 9 Dec 2006 04:38:20 +0000 Subject: [PATCH] Shaped up the print stylesheet. It now validates, hides edit/delete images, sizes checkboxes appropriately, displays dotted borders under h2 elements, and puts each Todo's descriptions on the same line as its checkbox. Made the formatting more consistent, too. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@367 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/public/stylesheets/print.css | 102 ++++++++++++++-------------- 1 file changed, 52 insertions(+), 50 deletions(-) diff --git a/tracks/public/stylesheets/print.css b/tracks/public/stylesheets/print.css index 96707b11..c7a247eb 100644 --- a/tracks/public/stylesheets/print.css +++ b/tracks/public/stylesheets/print.css @@ -1,74 +1,76 @@ -/* LAYOUT ELEMENTS ========================================================== */ -* -{ - margin: 0; - padding: 0; +* { + margin: 0; + padding: 0; } body { - background: #fff; - color: #000; - width: 2.5in; - height: 4.7in; - font-size: 8.2pt; - font-family: "Lucida Grande", "Bitstream Vera Sans", Helvetica, Verdana, Arial, sans-serif; - } + background: #fff; + color: #000; + width: 2.5in; + height: 4.7in; + font-size: 8.2pt; + font-family: "Lucida Grande", "Bitstream Vera Sans", Helvetica, Verdana, Arial, sans-serif; +} img { - max-width: 2.2in; - max-height: 4.3in; - } + max-width: 2.2in; + max-height: 4.3in; + border:0; +} -/* Josh added */ -#navcontainer, #input_box, #footer, .big-box, .refresh, .badge, h1 { - display:none; - } +#navcontainer, #input_box, #footer, .big-box, .refresh, .badge, h1, .icon, #minilinks { + display:none; +} .contexts { - margin: 0 0 2em 0; - border-top: 1px solid #000; - page-break-before: always; - } + margin: 0 0 2em 0; + border-top: 1px solid #000; + page-break-before: always; +} .contexts:first-child { - page-break-before: avoid; - } + page-break-before: avoid; +} h2 { - font-size: 1.4em; - font-weight: bold; - margin-bottom: .3em; - padding: .2em 0; - border-bottom: 1px dotted #000; - } + font-size: 1.4em; + font-weight: bold; + margin-bottom: .3em; + padding: .2em 0; + border-bottom: 1pt dotted #000; +} a, p, blockquote, ul, li, ol, dt, dd, dl, table { - margin: 0 0 .3em 0; - } + margin: 0 0 .3em 0; +} .notes { - margin: .12em 1.2em; - padding: .3em; - } + margin: .12em 1.2em; + padding: .3em; +} .description { - margin-top: 0; - margin-left: 0; - margin-bottom: .3em; - padding: .2em; - } + margin-left: 12pt; +} ul { - list-style-type: circle; - } + list-style-type: circle; +} li { - margin: .1em 0 .1em 2em; - line-height: 1.4em; - } + margin: .1em 0 .1em 2em; + line-height: 1.4em; +} -.checkbox { - float: left; - size: 25px; - } +.item-container { + clear:both; + padding-top: .3em; + padding-bottom: .3em; +} +.item-checkbox { + width: 10pt; + height: 10pt; + display:block; + float:left; +}