Mercurial > gemma
changeset 1539:a710d79284e4
client: improve css for pdf generationo
* Add `important!` statements which shall even override some browser
settings.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 07 Dec 2018 18:01:14 +0100 |
parents | 8e67f6e8d195 |
children | 251ee25accce |
files | client/src/components/map/Maplayer.vue |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/map/Maplayer.vue Fri Dec 07 17:43:48 2018 +0100 +++ b/client/src/components/map/Maplayer.vue Fri Dec 07 18:01:14 2018 +0100 @@ -17,8 +17,8 @@ // the following css part is for browser-printing based pdf generation @page { - size: A4 landscape; - margin: 4mm; + size: A4 landscape !important; + margin: 4mm !important; // according to https://www.w3.org/TR/css-page-3/#page-size-prop // we shall now have 210 - 2*4 = 202 mm width and 297 - 2*4 = 289 mm height }