forked from serge-web/serge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_print.scss
89 lines (77 loc) · 1.48 KB
/
_print.scss
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
.print-canvas {
section {
border: 1px solid #d3d3d3;
margin-bottom: 20px;
width: 21cm;
min-height: 29.7cm;
padding: 2cm;
margin: 1cm auto;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
border-radius: 5px;
box-sizing: border-box;
position: relative;
@media print {
box-sizing: initial;
margin: 0;
border: initial;
border-radius: initial;
width: initial;
min-height: initial;
box-shadow: initial;
background: initial;
position: initial;
page-break-after: always;
position: initial;
}
& > span {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
padding-bottom: 0.8cm;
font-size: 12pt;
color: #555555;
@media print {
position: initial;
bottom: initial;
left: initial;
width: initial;
text-align: initial;
padding-bottom: initial;
font-size: initial;
color: initial;
}
}
}
table {
width: 100%;
@media print {
display: table;
width: 100%;
}
th,
td {
padding: 0 0.2cm;
@media print {
padding: 0 0.2cm;
}
}
th {
padding-bottom: 0.2cm;
@media print {
padding-bottom: 0.2cm;
}
}
tr:nth-child(even) {
background-color: #dddddd;
@media print {
background-color: #dddddd;
}
}
}
}
@page {
size: A4;
margin: 0;
}