-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathleaflet.printpreview.css
More file actions
62 lines (61 loc) · 1.36 KB
/
Copy pathleaflet.printpreview.css
File metadata and controls
62 lines (61 loc) · 1.36 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
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #FAFAFA;
font: 12pt "Tahoma";
}
* {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.page {
padding: 5mm 20mm 20mm 20mm;
margin: 5mm auto;
border: 5px #D3D3D3 solid;
border-radius: 5px;
background: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.leaflet-control-printpreview-bar{
height:15mm;
}
.leaflet-control-printpreview-btn{
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
background: #fff;
border-radius: 5px;
display: inline-block;
height: 36px;
padding: 0 10px;
line-height: 36px;
height: 36px;
text-decoration: none;
color: #333333;
margin-right: 5px;
}
.leaflet-control-printpreview-btn:hover{
background-color: #f4f4f4;
}
.previewmap {
padding: 1cm;
border: 1px red solid;
}
@page {
margin: 0;
}
@media print {
.page {
margin: 0;
border: initial;
border-radius: initial;
width: initial;
min-height: initial;
box-shadow: initial;
background: initial;
page-break-after: avoid;
padding: 20mm;
}
div.leaflet-top.leaflet-left, div.leaflet-top.leaflet-right, div.leaflet-control-printpreview-bar{display: none!important;}
}
div.leaflet-top.leaflet-left > div:nth-child(n+2){display: none!important;}