forked from ConciseCSS/concise.css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_print.scss
More file actions
109 lines (87 loc) · 2.52 KB
/
_print.scss
File metadata and controls
109 lines (87 loc) · 2.52 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
109
@if $use-print == true {
//------------------------------------//
// $PRINT
//------------------------------------//
@media print {
@page { margin: 0.5cm; }
* {
background: transparent !important;
color: black !important;
text-shadow: none !important;
@include vendor(filter, none !important);
&:before, &:after {
background: transparent !important;
color: black !important;
text-shadow: none !important;
@include vendor(filter, none !important);
}
}
body {
background-color: #fff;
color: #000;
font: 0.57em / 1.3 Georgia, "Times New Roman", Times, serif;
}
img { max-width: 100% !important; }
.show-print {
display: block;
visibility: visible;
}
.hide-print,
video,
audio,
object,
embed,
nav,
footer,
a[href^="#"]:after {
display: none;
visibility: hidden;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 { page-break-after: avoid; }
a {
color: #000;
text-decoration: underline;
word-wrap: break-word;
&:visited {
color: #000;
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,
blockquote {
border: 1px solid #ededed;
page-break-inside: avoid;
}
thead { display: table-header-group; }
tr,
img { page-break-inside: avoid; }
ul {
list-style: none;
li { content: "» "; }
}
.label,
.badge {
border: 1px solid #000;
color: #000;
}
}
}