-
Notifications
You must be signed in to change notification settings - Fork 790
Expand file tree
/
Copy pathprince.css
More file actions
40 lines (36 loc) · 976 Bytes
/
prince.css
File metadata and controls
40 lines (36 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* For Prince: */
@page {
@top {
content: "\2013\A0" string(chapter) "\A0\2013";
font-style: italic;
}
@bottom {
content: "\2013\A0" counter(page) "\A0\2013";
}
}
@page :first {
@top {content: none}
}
BODY {hyphens: auto}
H1 {string-set: chapter content()}
H1, H2, H3, H4, H5, H6 {hyphens: manual}
A[HREF] {text-decoration: none}
A[HREF^="#"]::after {
content: "\202f p.\202f" target-counter(attr(href), page);
font-size: 75%;
line-height: 0;
vertical-align: super;
}
.toc A[HREF]::after {
content: leader(dotted) target-counter(attr(href), page);
font-size: inherit;
font-style: normal;
vertical-align: baseline;
}
.index A[HREF]::after {content: none}
.index A[HREF] {content: target-counter(attr(href), page)}
P {margin-top: 0 !important; margin-bottom: 0 !important}
P + P {text-indent: 1em}
P[style="display:none"] + P, P.note + P, P.note {text-indent: 0}
PRE {margin-left: 1em}
LI {margin: 0.75em 0 !important}