Add print styles to prevent printers from removing background-images in controls (#7851)

* Add print styles (prevent printers from removing background-images in controls)

* Update leaflet.css
This commit is contained in:
Robert Linder 2021-12-10 18:01:40 +01:00 committed by GitHub
parent acffb7edf8
commit a9d7c4fe7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
dist/leaflet.css vendored
View File

@ -643,3 +643,13 @@ svg.leaflet-image-layer.leaflet-interactive path {
margin-left: -12px;
border-right-color: #fff;
}
/* Printing */
@media print {
/* Prevent printers from removing background-images of controls. */
.leaflet-control {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
}