/
print.css
129 lines (102 loc) · 2.19 KB
/
print.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
/*! Plasttic v2.3 | MIT License | https://plasttic.dev/ */
/* DO NOT DELETE OR RENAME */
/**
* print.css
*
* This file contains styles that are specific to the print media.
* More: https://www.smashingmagazine.com/2018/05/print-stylesheets-in-2018/
*
* see utility classes in 10_utility.css,
* to control which elements should be printed
*/
@media print {
@page {
margin: 2cm;
}
body {
background: none;
color: #000000;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12pt;
font-weight: normal;
line-height: 1.3;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-weight: bold;
}
h1 {
font-size: 24pt;
}
h2 {
margin-block-start: 25px;
font-size: 14pt;
}
h2,
h3 {
break-after: avoid;
}
a:link,
a:visited {
color: #000000;
text-decoration: underline;
}
/* print URLs after link text */
a:link::after,
a:visited::after {
content: " (" attr(href) ") ";
}
/* do not print anchor links */
a[href^="#"]:after {
content: "";
}
/* TODO: replace domain name (exclude internal links from the style above) */
a[href^="http"]:not([href*="plasttic.dev"]):after {
content: " (" attr(href) ")";
}
img {
/* stylelint-disable-next-line declaration-no-important */
max-inline-size: 100% !important;
margin: 1.5em 1.5em 1.5em 0;
float: left;
break-inside: avoid;
}
hr {
block-size: 1px;
inline-size: 100%;
}
blockquote {
font-size: 90%;
font-style: italic;
}
/**
* Specific sections
* not needed to print
* document
*/
nav,
aside,
footer {
/* stylelint-disable-next-line declaration-no-important */
display: none !important;
}
/**
* Utility classes:
* ptt-u-print-only: Hide elements/sections until print
* ptt-u-print-no: Items to hide from print
*/
/* TODO: Control printed sections */
.ptt-u-print-no {
/* stylelint-disable-next-line declaration-no-important */
display: none !important;
}
.ptt-u-print-only {
/* stylelint-disable-next-line declaration-no-important */
display: unset !important; /* display print only sections */
}
}