This repository was archived by the owner on Sep 15, 2022. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathprint.css
More file actions
108 lines (94 loc) · 3.12 KB
/
Copy pathprint.css
File metadata and controls
108 lines (94 loc) · 3.12 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
ul, ol { margin-left:1.5em; }
abbr, acronym { text-underline-style: none }
img { max-width: 100%; }
/* WTF Prince? */
dt, dd, div.pf pre span.mark, table caption, table th, table td {font-size:11pt;}
dt code, dd code, table th code, table td code {font-size:8pt;}
div.highlight { font-size: inherit; }
pre, pre code { font-size: 11pt; }
pre { padding-left: 1.5em; }
/* reduce size of big chunks of code */
pre.lots, pre.lots code, pre.lots span.mark, pre.lots samp {font-size:9pt;}
/* Prince bug: ignores whitespace between these adjacent elements */
span.mark + span.mark { margin-left:.3em; }
#index-html h1 { string-set: header content(); }
#index-html h2, #index-html h3 { prince-bookmark-level:none }
div.pf h3, div.pf h4 { prince-bookmark-level:none }
#index-html > h3 { prince-bookmark-level:2; page-break-before: always; }
div.chapter h1 { string-set: header "Chapter " counter(chapter) ": " content(); }
#everything-html h1 { string-set: header "Appendix A: " content(); }
#about-html h1:before { content: none; }
div.chapter { page-break-before: always; counter-increment: chapter; }
pre, div.figure, div.c, p.c, div.pf, table, .fakeresults, li { page-break-inside: avoid; }
h1, h2, h3, h4, .legend.top { page-break-after: avoid; }
p.follow {
page-break-before: avoid;
margin-top: .6em;
color: gray;
text-align: right !important;
}
/* hide results of dynamic detection */
.ss span { display:none; }
body {
max-width: auto;
margin: 0;
font-size: 8pt;
counter-reset: chapter -2;
}
a:visited { color: FireBrick; }
a[href^="http:"], a[href^="https:"] { color: MidnightBlue; border-bottom-style: solid; }
#index-html { page: frontmatter; }
#about-html { page: backface; }
@page {
margin: 19mm 16mm;
size: 210mm 280mm;
@footnotes {
border-top: thin solid black;
padding-top: 0.3em;
margin-top: 0.6em;
margin-left: 30%;
}
@top-right {
font-size: 10pt;
font-style: italic;
content: string(header, first);
color: gray;
text-align: right;
}
@bottom-right {
font-size: 11pt;
content: counter(page);
text-align: right;
}
}
@page frontmatter {
@top-right { content: none; }
@bottom-right { content: none; }
@bottom-center {
font-size: 11pt;
content: "PDF e-book prepared by Mislav Marohnić";
color: gray;
text-align: center;
}
}
@page backface {
@top-right { content: none; }
}
h1 { font-size: 2.8em; }
h1:before { content: "№" counter(chapter) "."; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.9em; }
h1, h2, h3 { line-height: 1.2; }
#index-html h1{margin:1.5em 0 0 !important;font-size:5em !important;}
#index-html h2{font-size:3em !important}
#index-html h1, #index-html h2, #index-html h3 {line-height:3 !important;}
#index-html ol {line-height:1.2; counter-reset: item -1;}
#index-html ol li {margin-bottom:.9em;}
#index-html ol li:last-child {display:none;} /*hide link to cheatsheet*/
#index-html ol a { border-bottom: none; }
#index-html ol a::after {
content: leader('.') target-counter(attr(href), page);
color: #444;
}
/* make "About the book" show up in table of contents */
#about-html h1 { display:block !important; height:1px; visibility:hidden; }