-
Notifications
You must be signed in to change notification settings - Fork 3
/
print.less
57 lines (44 loc) · 1.06 KB
/
print.less
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
._initPrint() when (@use-print-viewport = true) {
@media print {
body {
background : none !important;
color : black !important;
}
* {
@shadow : 0 0 0 white !important;
@border : 0 !important;
color : black !important;
background-image : none !important;
background-color : white !important;
border : 0 solid white !important;
text-shadow : 0 0 0 white !important;
.box-shadow(@shadow);
.border-radius(@border);
}
p {
color : black !important;
}
a {
color : black !important;
border-bottom : 1px solid grey !important;
text-decoration : none !important;
}
@page {
margin : 1cm;
}
h1, h2, h3, h4, h5, h6, p {
orphans : 3;
widows : 3;
}
h1, h2, h3, h4, h5, h6 {
page-break-after : avoid;
}
code {
border : 1px solid grey !important;
}
footer {
clear : both !important;
}
}
}
._initPrint();