2019-07-30 10:17:43 -04:00
|
|
|
/* this stylesheet is used when generating a PDF */
|
|
|
|
/* define a page */
|
|
|
|
@page {
|
|
|
|
size: A4;
|
|
|
|
margin: 1.5cm 1.5cm 1.5cm 1.5cm;
|
|
|
|
}
|
|
|
|
|
2021-04-18 12:55:24 -04:00
|
|
|
@font-face {
|
|
|
|
font-family: 'lora';
|
|
|
|
src: url('../css/Lora-Regular.ttf') format('truetype');
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: 'lora';
|
2021-12-30 04:40:08 -05:00
|
|
|
counter-reset: partnum chapternum subchapternum subsubchapternum figurenum; /* resets all counters */
|
|
|
|
font-size: 10pt;
|
|
|
|
line-height: 1.25em;
|
|
|
|
text-align: justify;
|
|
|
|
color:#212a30;
|
2021-04-18 12:55:24 -04:00
|
|
|
}
|
|
|
|
|
2019-07-30 10:17:43 -04:00
|
|
|
img {
|
2021-04-18 12:55:24 -04:00
|
|
|
max-width: 100%;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
div.frontcover {
|
2021-04-18 12:55:24 -04:00
|
|
|
page-break-after: always;
|
2019-08-01 07:28:14 -04:00
|
|
|
margin: auto;
|
|
|
|
width: 80%;
|
2021-04-18 12:55:24 -04:00
|
|
|
font-size: 3em;
|
2019-08-01 07:28:14 -04:00
|
|
|
text-align: center;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
2019-08-01 08:21:10 -04:00
|
|
|
|
|
|
|
.frontcover #generationdate {
|
|
|
|
font-size: .25em;
|
|
|
|
text-align: right;
|
2021-04-18 12:55:24 -04:00
|
|
|
bottom: 3cm;
|
2019-08-01 08:21:10 -04:00
|
|
|
}
|
2019-07-30 10:17:43 -04:00
|
|
|
|
|
|
|
/* styles for the right hand spread
|
|
|
|
Bottom left we display the title of the book, bottom right the page using a CSS
|
|
|
|
counter, top right the content of the current chapter
|
|
|
|
*/
|
2019-08-01 07:28:14 -04:00
|
|
|
@page :right {
|
2019-07-30 10:17:43 -04:00
|
|
|
@bottom-left {
|
|
|
|
margin: 10pt 0 30pt 0;
|
2021-04-18 12:55:24 -04:00
|
|
|
content: "The Ardour Manual";
|
2019-07-30 10:17:43 -04:00
|
|
|
font-size: 7pt;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
@bottom-right {
|
|
|
|
margin: 10pt 0 30pt 0;
|
|
|
|
content: counter(page);
|
|
|
|
font-size: 7pt;
|
|
|
|
}
|
|
|
|
@top-right {
|
|
|
|
content: string(doctitle);
|
|
|
|
margin: 30pt 0 10pt 0;
|
|
|
|
font-size: 7pt;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* styles for the left hand spread
|
|
|
|
Bottom right book title, bottom left current page
|
|
|
|
*/
|
2019-08-01 07:28:14 -04:00
|
|
|
@page :left {
|
2019-07-30 10:17:43 -04:00
|
|
|
@bottom-right {
|
|
|
|
margin: 10pt 0 30pt 0;
|
2021-04-18 12:55:24 -04:00
|
|
|
content: "The Ardour Manual";
|
2019-07-30 10:17:43 -04:00
|
|
|
font-size: 7pt;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
@bottom-left {
|
|
|
|
margin: 10pt 0 30pt 0;
|
|
|
|
content: counter(page);
|
|
|
|
font-size: 7pt;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* first page */
|
2019-08-01 07:28:14 -04:00
|
|
|
@page :first {
|
2019-07-30 10:17:43 -04:00
|
|
|
@bottom-right {
|
|
|
|
content: normal;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@bottom-left {
|
|
|
|
content: normal;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-18 12:55:24 -04:00
|
|
|
h1, h2 {
|
2019-08-01 07:28:14 -04:00
|
|
|
string-set: doctitle content(); /* get the title of the current chapter */
|
2019-07-30 10:17:43 -04:00
|
|
|
page-break-before: always;
|
|
|
|
}
|
|
|
|
|
2019-08-01 07:28:14 -04:00
|
|
|
#toc::before { /* the ToC should not count...*/
|
2019-07-30 10:17:43 -04:00
|
|
|
content: none;
|
2019-08-01 07:28:14 -04:00
|
|
|
counter-reset: partnum;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1::before { /* parts */
|
2021-04-18 12:55:24 -04:00
|
|
|
counter-increment: partnum;
|
2019-08-01 07:28:14 -04:00
|
|
|
content: "Part " counter(partnum) " - ";
|
|
|
|
}
|
|
|
|
|
|
|
|
h2::before { /* chapter */
|
|
|
|
counter-increment: chapternum;
|
|
|
|
content: "Chapter " counter(chapternum) " - ";
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
2019-08-01 07:28:14 -04:00
|
|
|
h3::before { /* subchapter */
|
|
|
|
counter-increment: subchapternum;
|
|
|
|
content: counter(chapternum) "." counter(subchapternum) " - " ;
|
|
|
|
}
|
|
|
|
|
2021-12-29 06:24:26 -05:00
|
|
|
h4::before { /* subsubchapter */
|
|
|
|
counter-increment: subsubchapternum;
|
|
|
|
content: counter(chapternum) "." counter(subchapternum) "." counter(subsubchapternum) " - " ;
|
|
|
|
}
|
|
|
|
|
2019-08-01 07:28:14 -04:00
|
|
|
figcaption::before {
|
2022-11-23 10:28:03 -05:00
|
|
|
counter-increment: figurenum;
|
|
|
|
content: "Fig. " counter(chapternum) "." counter(figurenum) " - ";
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
2021-12-30 04:40:08 -05:00
|
|
|
h1 { font-size: 2.5em; }
|
|
|
|
h2 { font-size: 2em; counter-reset: subchapternum subsubchapternum figurenum; }
|
2021-12-29 06:24:26 -05:00
|
|
|
h3 { font-size: 1.75em; counter-reset: subsubchapternum; }
|
2019-08-01 07:28:14 -04:00
|
|
|
h4 { font-size: 1.4em; }
|
|
|
|
h5 { font-size: 1.2em; }
|
|
|
|
h6 { font-size: 1.1em; }
|
|
|
|
|
2019-07-30 10:17:43 -04:00
|
|
|
h1,h2,h3,h4,h5 {
|
2022-11-23 10:28:03 -05:00
|
|
|
font-weight: bold;
|
|
|
|
page-break-after: avoid;
|
|
|
|
page-break-inside: avoid;
|
|
|
|
line-height: 1.25em;
|
|
|
|
color: #e4214e;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
h1+p, h2+p, h3+p {
|
2022-11-23 10:28:03 -05:00
|
|
|
page-break-before: avoid;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
2021-12-29 06:24:26 -05:00
|
|
|
table {
|
2022-11-23 10:28:03 -05:00
|
|
|
clear: both;
|
2021-12-29 06:24:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
2022-11-23 10:28:03 -05:00
|
|
|
page-break-inside: avoid;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
2019-07-31 10:28:06 -04:00
|
|
|
td, th {
|
2022-11-23 10:28:03 -05:00
|
|
|
vertical-align: top;
|
2019-07-31 10:28:06 -04:00
|
|
|
}
|
|
|
|
|
2019-07-30 10:17:43 -04:00
|
|
|
ul.toc {
|
2022-11-23 10:28:03 -05:00
|
|
|
white-space: nowrap;
|
|
|
|
list-style: none;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* create page numbers using target-counter in the TOC */
|
|
|
|
ul.toc a::after {
|
|
|
|
content: target-counter(attr(href), page);
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.toc li {
|
2022-11-23 10:28:03 -05:00
|
|
|
line-height: 2;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.toc li a {
|
2022-11-23 10:28:03 -05:00
|
|
|
text-decoration: none;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
2019-07-31 10:20:07 -04:00
|
|
|
ol {
|
2022-11-23 10:28:03 -05:00
|
|
|
list-style-position: inside;
|
2019-07-31 10:20:07 -04:00
|
|
|
}
|
|
|
|
|
2019-07-30 10:17:43 -04:00
|
|
|
a {
|
2022-11-23 10:28:03 -05:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* add page number to cross references */
|
2019-08-02 06:01:53 -04:00
|
|
|
a[href^="#"]::after {
|
|
|
|
content: " (p. " target-counter(attr(href, url), page) ")";
|
|
|
|
}
|
|
|
|
a[href^="http"]::after {
|
2022-11-23 10:28:03 -05:00
|
|
|
content: " (" attr(href) ")";
|
2019-07-30 10:17:43 -04:00
|
|
|
}
|
2022-11-03 10:37:07 -04:00
|
|
|
|
|
|
|
.imagemap .area {display: none;}
|