Hide UI and force landscape when printing

This commit is contained in:
James Lyne 2021-01-07 13:49:00 +00:00
parent 1615c3d902
commit 823e9b4c99
4 changed files with 26 additions and 0 deletions

View File

@ -186,5 +186,9 @@ export default defineComponent({
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
} }
@media print {
display: none;
}
} }
</style> </style>

View File

@ -25,6 +25,10 @@
a, button { a, button {
@extend %button; @extend %button;
} }
@media print {
display: none !important;
}
} }
.leaflet-bar { .leaflet-bar {
@ -51,6 +55,10 @@
border-bottom-color: $global-border-color; border-bottom-color: $global-border-color;
} }
} }
@media print {
display: none !important;
}
} }
.leaflet-touch { .leaflet-touch {

View File

@ -36,5 +36,9 @@
flex-direction: column; flex-direction: column;
} }
} }
@media print {
display: none;
}
} }

View File

@ -333,6 +333,10 @@ button {
transition: none; transition: none;
} }
} }
@media print {
display: none !important;
}
} }
/******************* /*******************
@ -542,3 +546,9 @@ div.statusmessage {
.leaflet-players-pane { .leaflet-players-pane {
z-index: 600; z-index: 600;
} }
@media print {
@page {
size: 297mm 210mm;
}
}