forked from ConciseCSS/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint.pcss
112 lines (91 loc) · 1.75 KB
/
print.pcss
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
@media print {
@page { margin: 2cm; }
*,
*:before,
*:after {
background: transparent !important;
color: black !important;
filter: none !important;
text-shadow: none !important;
}
:root {
background-color: white;
color: black;
font: 12pt / 1.4 var(--font-print-secondary);
}
body {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
h1, h2, h3, h4, h5, h6 {
page-break-after: avoid;
font-family: var(--font-print-secondary);
}
h1 { font-size: 19pt; }
h2 { font-size: 17pt; }
h3 { font-size: 15pt; }
h4, h5, h6 {font-size: 14pt; }
img {
max-width: 100% !important;
page-break-after: avoid;
page-break-inside: avoid;
}
video,
audio,
object,
embed,
nav,
footer,
a[href^="#"]:after {
display: none;
visibility: hidden;
}
p,
h2, h3 {
orphans: 3;
widows: 3;
}
a,
a:visited {
color: black;
font-size: .57em;
text-decoration: underline;
word-wrap: break-word;
&[href]:after {
content: " (" attr(href) ")";
font-size: smaller;
}
}
q:after { content: " (Source: " attr(cite) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
a {
&:after,
&[href^="javascript:"]:after,
&[href^="#"]:after { content: ""; }
}
pre,
code {
background-color: transparent;
border: 1px solid getColor(base, lines);
page-break-inside: avoid;
}
blockquote {
border: none;
page-break-inside: avoid;
}
thead { display: table-header-group; }
tr,
img { page-break-inside: avoid; }
ol { padding-left: 1.25em; }
ul {
padding-left: 0;
list-style: none;
ul,
ul ul { padding-left: 1.5em; }
}
ul,
ol {
li { content: "» "; }
}
}