X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fcss%2Fpdf.css;h=b1039c53161ed45027559bdf0a7f0331dcb4d8bd;hb=88b8130ec83209b2db4cb837ab77156aa4bab6a0;hp=5756d56290947e88dfbe281c864aa56940c9c73d;hpb=5700f8566416fc9b18f60787001f4d00347e6843;p=ardour-manual diff --git a/source/css/pdf.css b/source/css/pdf.css index 5756d56..b1039c5 100644 --- a/source/css/pdf.css +++ b/source/css/pdf.css @@ -5,21 +5,38 @@ margin: 1.5cm 1.5cm 1.5cm 1.5cm; } +@font-face { + font-family: 'lora'; + src: url('../css/Lora-Regular.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +body { + font-family: 'lora'; + counter-reset: partnum chapternum subchapternum subsubchapternum figurenum; /* resets all counters */ + font-size: 10pt; + line-height: 1.25em; + text-align: justify; + color:#212a30; +} + img { - max-width: 100%; + max-width: 100%; } div.frontcover { - page-break-after: always; + page-break-after: always; margin: auto; width: 80%; - font-size: 4em; + font-size: 3em; text-align: center; } .frontcover #generationdate { font-size: .25em; text-align: right; + bottom: 3cm; } /* styles for the right hand spread @@ -29,14 +46,12 @@ div.frontcover { @page :right { @bottom-left { margin: 10pt 0 30pt 0; - /*border-top: .25pt solid #666;*/ - content: "The Ardour Manual"; + content: "The Ardour Manual"; font-size: 7pt; color: #333; } @bottom-right { margin: 10pt 0 30pt 0; - /*border-top: .25pt solid #666;*/ content: counter(page); font-size: 7pt; } @@ -54,14 +69,12 @@ div.frontcover { @page :left { @bottom-right { margin: 10pt 0 30pt 0; - /*border-top: .25pt solid #666;*/ - content: "The Ardour Manual"; + content: "The Ardour Manual"; font-size: 7pt; color: #333; } @bottom-left { margin: 10pt 0 30pt 0; - /*border-top: .25pt solid #666;*/ content: counter(page); font-size: 7pt; } @@ -80,15 +93,7 @@ div.frontcover { } } -body { - counter-reset: partnum chapternum subchapternum figurenum; /* resets all counters */ - /*font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;*/ - font-size: 10pt; - line-height: 1.25em; - -} - -h1 { +h1, h2 { string-set: doctitle content(); /* get the title of the current chapter */ page-break-before: always; } @@ -96,11 +101,10 @@ h1 { #toc::before { /* the ToC should not count...*/ content: none; counter-reset: partnum; - /*counter-increment: partnum -1;*/ } h1::before { /* parts */ - counter-increment: partnum; + counter-increment: partnum; content: "Part " counter(partnum) " - "; } @@ -114,14 +118,19 @@ h3::before { /* subchapter */ content: counter(chapternum) "." counter(subchapternum) " - " ; } +h4::before { /* subsubchapter */ + counter-increment: subsubchapternum; + content: counter(chapternum) "." counter(subchapternum) "." counter(subsubchapternum) " - " ; +} + figcaption::before { counter-increment: figurenum; content: "Fig. " counter(chapternum) "." counter(figurenum) " - "; } -h1 { font-size: 3em; } -h2 { font-size: 2.25em; counter-reset: subchapternum figurenum; } -h3 { font-size: 1.75em; } +h1 { font-size: 2.5em; } +h2 { font-size: 2em; counter-reset: subchapternum subsubchapternum figurenum; } +h3 { font-size: 1.75em; counter-reset: subsubchapternum; } h4 { font-size: 1.4em; } h5 { font-size: 1.2em; } h6 { font-size: 1.1em; } @@ -130,14 +139,19 @@ h1,h2,h3,h4,h5 { font-weight: bold; page-break-after: avoid; page-break-inside: avoid; - line-height: 1.25em; + line-height: 1.25em; + color: #e4214e; } h1+p, h2+p, h3+p { page-break-before: avoid; } -table, figure { +table { + clear: both; +} + +figure { page-break-inside: avoid; } @@ -148,8 +162,6 @@ td, th { ul.toc { white-space: nowrap; list-style: none; - margin: 0; - padding: 0; } /* create page numbers using target-counter in the TOC */ @@ -171,7 +183,9 @@ ol { } a { - color: #000; + font-weight: bold; + text-decoration: none; + color: inherit; } /* add page number to cross references */