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');
25 page-break-after: always;
32 .frontcover #generationdate {
38 /* styles for the right hand spread
39 Bottom left we display the title of the book, bottom right the page using a CSS
40 counter, top right the content of the current chapter
44 margin: 10pt 0 30pt 0;
45 /*border-top: .25pt solid #666;*/
46 content: "The Ardour Manual";
51 margin: 10pt 0 30pt 0;
52 /*border-top: .25pt solid #666;*/
53 content: counter(page);
57 content: string(doctitle);
58 margin: 30pt 0 10pt 0;
64 /* styles for the left hand spread
65 Bottom right book title, bottom left current page
69 margin: 10pt 0 30pt 0;
70 /*border-top: .25pt solid #666;*/
71 content: "The Ardour Manual";
76 margin: 10pt 0 30pt 0;
77 /*border-top: .25pt solid #666;*/
78 content: counter(page);
97 counter-reset: partnum chapternum subchapternum figurenum; /* resets all counters */
98 /*font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;*/
105 string-set: doctitle content(); /* get the title of the current chapter */
106 page-break-before: always;
109 #toc::before { /* the ToC should not count...*/
111 counter-reset: partnum;
112 /*counter-increment: partnum -1;*/
115 h1::before { /* parts */
116 counter-increment: partnum;
117 content: "Part " counter(partnum) " - ";
120 h2::before { /* chapter */
121 counter-increment: chapternum;
122 content: "Chapter " counter(chapternum) " - ";
125 h3::before { /* subchapter */
126 counter-increment: subchapternum;
127 content: counter(chapternum) "." counter(subchapternum) " - " ;
131 counter-increment: figurenum;
132 content: "Fig. " counter(chapternum) "." counter(figurenum) " - ";
135 h1 { font-size: 3em; }
136 h2 { font-size: 2.25em; counter-reset: subchapternum figurenum; }
137 h3 { font-size: 1.75em; }
138 h4 { font-size: 1.4em; }
139 h5 { font-size: 1.2em; }
140 h6 { font-size: 1.1em; }
144 page-break-after: avoid;
145 page-break-inside: avoid;
150 page-break-before: avoid;
154 page-break-inside: avoid;
168 /* create page numbers using target-counter in the TOC */
170 content: target-counter(attr(href), page);
179 text-decoration: none;
183 list-style-position: inside;
190 /* add page number to cross references */
191 a[href^="#"]::after {
192 content: " (p. " target-counter(attr(href, url), page) ")";
194 a[href^="http"]::after {
195 content: " (" attr(href) ")";