forked from w3c/csswg-drafts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprince.css
More file actions
31 lines (31 loc) · 768 Bytes
/
Copy pathprince.css
File metadata and controls
31 lines (31 loc) · 768 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
/* 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)}