65 lines
1.4 KiB
CSS
65 lines
1.4 KiB
CSS
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;
|
|
font-family: 'IRANSansFaNum';
|
|
|
|
}
|
|
.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;}
|