1 /* this stylesheet is used when generating a PDF */
5 margin: 1.5cm 1.5cm 1.5cm 1.5cm;
10 margin: 1.5cm 1.5cm 1.5cm 1.5cm;
11 background: url("../images/ardour_logo.svg") no-repeat center;
12 background-size: contain;
20 page-break-after: always;
23 /* styles for the right hand spread
24 Bottom left we display the title of the book, bottom right the page using a CSS
25 counter, top right the content of the current chapter
29 margin: 10pt 0 30pt 0;
30 /*border-top: .25pt solid #666;*/
31 content: "The Ardour Manual";
36 margin: 10pt 0 30pt 0;
37 /*border-top: .25pt solid #666;*/
38 content: counter(page);
42 content: string(doctitle);
43 margin: 30pt 0 10pt 0;
49 /* styles for the left hand spread
50 Bottom right book title, bottom left current page
54 margin: 10pt 0 30pt 0;
55 /*border-top: .25pt solid #666;*/
56 content: "The Ardour Manual";
61 margin: 10pt 0 30pt 0;
62 /*border-top: .25pt solid #666;*/
63 content: counter(page);
81 /* reset chapter and figure counters on the body */
83 counter-reset: chapternum figurenum;
84 font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
89 /* get the title of the current chapter - this will be the content of the h1
90 reset figure counter as figures start from 1 in each chapter */
92 string-set: doctitle content();
93 page-break-before: always;
94 counter-reset: figurenum;
96 counter-increment: chapternum;
99 h1:first-of-type { /* the ToC should not count...*/
101 counter-reset: chapternum;
104 /* increment and display figure counter */
106 counter-increment: figurenum;
107 content: counter(chapternum) "-" counter(figurenum) ". ";
112 page-break-after: avoid;
113 page-break-inside:avoid;
117 page-break-before: avoid;
121 page-break-inside: avoid;
130 /* create page numbers using target-counter in the TOC */
132 content: target-counter(attr(href), page);
141 text-decoration: none;
145 list-style-position: inside;
152 /* add page number to cross references */
154 content: " (page " target-counter(attr(href, url), page) ")";