/
paper.css
130 lines (106 loc) · 1.78 KB
/
paper.css
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@media print {
@page {
margin: 2cm;
}
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
text-shadow: none !important;
}
body {
line-height: 1.4;
font-size: 14pt;
font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}
/* Headings */
h1 { font-size:19pt; }
h2 { font-size:17pt; }
h3 { font-size:15pt; }
h4,
h5,
h6 {
font-size:14pt;
}
h1,
h2,
h3,
h4,
h5,
h6 {
page-break-after: avoid;
}
a,
a:visited {
text-decoration: underline;
text-decoration-style: dashed;
}
a[href]:after {
content: " (" attr(href) ")";
}
/* Don't show links that are fragment identifiers */
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}
/* Don't show linked images */
a[href$=".jpg"]:after,
a[href$=".jpeg"]:after,
a[href$=".gif"]:after,
a[href$=".png"]:after {
content: " (" attr(href) ") ";
display:none;
}
pre {
white-space: pre-wrap !important;
page-break-inside: avoid;
}
code {
font-family: Courier, monospace
}
hr {
background-color: #ccc;
}
blockquote {
margin: 0;
border-left: 0.2em solid #000;
padding-left: 1em;
font-size: 14pt;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
/* Images */
img {
margin: 1em;
width: 100%;
max-width: 100% !important;
page-break-inside: avoid;
}
figure {
margin: 0;
page-break-inside: avoid;
}
/* For videos, Youtube etc. */
iframe {
margin: 1em;
}
}
@media print and (color) {
* {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
}