forked from samwiseduzer/angularPrint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangularPrint.less
79 lines (78 loc) · 1.4 KB
/
angularPrint.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@media screen {
.printOnly {
display: none;
}
}
@media print {
body {
* {
visibility: hidden;
}
margin: 0mm !important;
-webkit-print-color-adjust: exact;
}
.printOnly {
visibility: visible;
display: initial;
}
.printOnly.printRemove {
display: none;
}
.printSection {
visibility: visible;
* {
visibility: visible;
}
}
.printRemove {
display: none;
* {
display: none;
}
.printSection {
* {
visibility: visible;
}
}
}
.printHide {
visibility: hidden;
* {
visibility: hidden;
}
.printSection {
* {
visibility: visible;
}
}
}
.avoidPageBreak {
page-break-inside: avoid;
}
td {
div {
page-break-inside: avoid;
}
}
thead {
display: table-header-group;
}
.noPrintMargin {
margin: 0px !important;
padding: 0px !important;
}
@page {
margin: 0cm;
&:first {
margin-top: 0cm;
}
&:left {
margin-left: 0cm;
margin-right: 0cm;
}
&:right {
margin-left: 0cm;
margin-right: 0cm;
}
}
}