1 /* this stylesheet is used when generating a PDF */
5 margin: 1.5cm 1.5cm 1.5cm 1.5cm;
10 src: url('../css/Lora-Regular.ttf') format('truetype');
17 counter-reset: partnum chapternum subchapternum subsubchapternum figurenum; /* resets all counters */
29 page-break-after: always;
36 .frontcover #generationdate {
42 /* styles for the right hand spread
43 Bottom left we display the title of the book, bottom right the page using a CSS
44 counter, top right the content of the current chapter
48 margin: 10pt 0 30pt 0;
49 content: "The Ardour Manual";
54 margin: 10pt 0 30pt 0;
55 content: counter(page);
59 content: string(doctitle);
60 margin: 30pt 0 10pt 0;
66 /* styles for the left hand spread
67 Bottom right book title, bottom left current page
71 margin: 10pt 0 30pt 0;
72 content: "The Ardour Manual";
77 margin: 10pt 0 30pt 0;
78 content: counter(page);
97 string-set: doctitle content(); /* get the title of the current chapter */
98 page-break-before: always;
101 #toc::before { /* the ToC should not count...*/
103 counter-reset: partnum;
106 h1::before { /* parts */
107 counter-increment: partnum;
108 content: "Part " counter(partnum) " - ";
111 h2::before { /* chapter */
112 counter-increment: chapternum;
113 content: "Chapter " counter(chapternum) " - ";
116 h3::before { /* subchapter */
117 counter-increment: subchapternum;
118 content: counter(chapternum) "." counter(subchapternum) " - " ;
121 h4::before { /* subsubchapter */
122 counter-increment: subsubchapternum;
123 content: counter(chapternum) "." counter(subchapternum) "." counter(subsubchapternum) " - " ;
127 counter-increment: figurenum;
128 content: "Fig. " counter(chapternum) "." counter(figurenum) " - ";
131 h1 { font-size: 2.5em; }
132 h2 { font-size: 2em; counter-reset: subchapternum subsubchapternum figurenum; }
133 h3 { font-size: 1.75em; counter-reset: subsubchapternum; }
134 h4 { font-size: 1.4em; }
135 h5 { font-size: 1.2em; }
136 h6 { font-size: 1.1em; }
140 page-break-after: avoid;
141 page-break-inside: avoid;
147 page-break-before: avoid;
155 page-break-inside: avoid;
167 /* create page numbers using target-counter in the TOC */
169 content: target-counter(attr(href), page);
178 text-decoration: none;
182 list-style-position: inside;
187 text-decoration: none;
191 /* add page number to cross references */
192 a[href^="#"]::after {
193 content: " (p. " target-counter(attr(href, url), page) ")";
195 a[href^="http"]::after {
196 content: " (" attr(href) ")";
199 .imagemap .area {display: none;}