From e0e11658d761070691ddea02b68121861bab4da0 Mon Sep 17 00:00:00 2001 From: Craig Davis Date: Thu, 22 Mar 2012 11:33:32 -0500 Subject: [PATCH] Update the print style rules to correct line spacing issues on the side heading elements --- assets/css/pdf.css | 46 +++++++++++++++++++++---------------------- assets/css/resume.css | 9 +++++---- assets/css/screen.css | 1 - 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/assets/css/pdf.css b/assets/css/pdf.css index b87219f..abda562 100644 --- a/assets/css/pdf.css +++ b/assets/css/pdf.css @@ -1,5 +1,6 @@ body.pdf { color: black; + a { text-decoration: none; color: black; @@ -25,9 +26,25 @@ body.pdf { h1 { letter-spacing: 0; + margin-top: 0; + font-size: 48px; + text-transform: uppercase; + font-weight: normal; } h2 { letter-spacing: 0; + text-transform: uppercase; + font-style: italic; + font-weight: normal; + } + h3 { + float: left; + width: 16%; + font-style: normal; + } + h3+p { + float: left; + width: 84%; } blockquote { @@ -35,37 +52,18 @@ body.pdf { right: 50px; position: absolute; } - h1 { - margin-top: 0; - font-size: 48px; - text-transform: uppercase; - font-weight: normal; - } - h2 { - text-transform: uppercase; - font-style: italic; - font-weight: normal; - } - - h3 { - float: left; - width: 16%; - } - - h3+p { - float: left; - width: 84%; - } ul li { width: 28%; float: left; } ul dl { + margin: 0; + padding: 0.3em 0 0; dt { font-size: 122%; font-weight: normal; - margin-bottom: .75em; + margin: 0 0 .75em; } dd { padding: 0 4em 0 0; @@ -75,7 +73,7 @@ body.pdf { ol { float: left; width: 84%; - margin: .6em 0 0; + margin: .7em 0 0; } ol li { @@ -90,7 +88,7 @@ body.pdf { } dl { - margin: .5em 0 0; + margin: .7em 0 0; dt { } dd { diff --git a/assets/css/resume.css b/assets/css/resume.css index 20a6bd3..ee5cc3a 100644 --- a/assets/css/resume.css +++ b/assets/css/resume.css @@ -62,6 +62,7 @@ hr { font-size: 1px; line-height: 0; overflow: visible; + page-break-after: avoid; } h1 { @@ -82,7 +83,7 @@ h2 { h3 { margin: 0; - padding: 0; + padding: 0 0 .5em; font-size: 150%; font-style: italic; font-weight: normal; @@ -124,7 +125,7 @@ ul dl { ol { margin: 0; - padding: 0; + padding: 0 0 .75em; width: 84%; display: inline-block; } @@ -151,7 +152,7 @@ dl { dt { margin: 0; padding: 0; - font-size: 150%; + font-size: 140%; } dd { margin: 0 0 1.5em; @@ -165,7 +166,7 @@ dl { em { display: block; font-size: 110%; - margin-bottom: .5em; + margin: .15em 0 .5em; font-style: bold; } diff --git a/assets/css/screen.css b/assets/css/screen.css index 280af25..28afff3 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -7,7 +7,6 @@ */ @media screen and (min-width: 15em) { - }