From 54831e633c02c988cb9de8a1c81691ee6da5aa7b Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Mon, 10 Feb 2025 17:36:21 +0300 Subject: [PATCH] fix css print? --- templates/bazar/assets/activites.css | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/templates/bazar/assets/activites.css b/templates/bazar/assets/activites.css index 318f799..40169c5 100644 --- a/templates/bazar/assets/activites.css +++ b/templates/bazar/assets/activites.css @@ -19,10 +19,11 @@ } .indications img, .indications2 img { - width: 182mm; - height: 260mm; + width: 185mm; + height: 265mm; display: block; margin: 0 auto; + object-fit: contain; } .recto .left, .verso .left, @@ -180,6 +181,8 @@ @media print { @page { size: A4 portrait; + width: 210mm; + height: 297mm; margin: 0; } @@ -200,6 +203,7 @@ #yw-header, #yw-footer, .filters-col, + .clearfix, .debug, .BAZ_fiche_info, .embed-responsive, @@ -211,13 +215,21 @@ border: none; } #yw-main { - padding: 0; + padding: 0 !important; + --padding-x: 0; + } + .full-portrait-a4 { + page-break-after: always; + max-width: 210mm; + max-height: 297mm; + overflow: hidden; } .indications img, .indications2 img { - width: 182mm; + width: 185mm; height: 260mm; display: block; margin: 0 auto; + object-fit: contain; } }