From faf5904ca2fd95966fee059da6a8978758f9615d Mon Sep 17 00:00:00 2001 From: frozenhelium Date: Tue, 12 Dec 2023 18:30:16 +0545 Subject: [PATCH] Increase margin bottom on printable page --- src/index.css | 3 ++- src/views/DrefApplicationExport/styles.module.css | 2 +- src/views/DrefFinalReportExport/styles.module.css | 2 +- src/views/DrefOperationalUpdateExport/styles.module.css | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.css b/src/index.css index 3ad1f0872..6711b39d1 100644 --- a/src/index.css +++ b/src/index.css @@ -5,6 +5,7 @@ --base-font-size: 0.875rem; --go-ui-font-size-export: 0.6875rem; + --go-ui-export-page-margin: 10mm 10mm 16mm 10mm; --go-ui-font-size-2xs: calc(var(--base-font-size) * 0.625); --go-ui-font-size-xs: calc(var(--base-font-size) * 0.75); @@ -261,7 +262,7 @@ ul, ol, p { @media print { @page { size: portrait A4; - margin: 10mm; + margin: var(--go-ui-export-page-margin); } body { diff --git a/src/views/DrefApplicationExport/styles.module.css b/src/views/DrefApplicationExport/styles.module.css index 976a9ee91..b5d8d81ad 100644 --- a/src/views/DrefApplicationExport/styles.module.css +++ b/src/views/DrefApplicationExport/styles.module.css @@ -7,7 +7,7 @@ @media screen { margin: var(--go-ui-spacing-xl) auto; background-color: var(--go-ui-color-foreground); - padding: 10mm; + padding: var(--go-ui-export-page-margin); width: 210mm; min-height: 297mm; } diff --git a/src/views/DrefFinalReportExport/styles.module.css b/src/views/DrefFinalReportExport/styles.module.css index 6babaf414..6e805e8d0 100644 --- a/src/views/DrefFinalReportExport/styles.module.css +++ b/src/views/DrefFinalReportExport/styles.module.css @@ -7,7 +7,7 @@ @media screen { margin: var(--go-ui-spacing-xl) auto; background-color: var(--go-ui-color-foreground); - padding: 10mm; + padding: var(--go-ui-export-page-margin); width: 210mm; min-height: 297mm; } diff --git a/src/views/DrefOperationalUpdateExport/styles.module.css b/src/views/DrefOperationalUpdateExport/styles.module.css index 4828984b0..1082718fe 100644 --- a/src/views/DrefOperationalUpdateExport/styles.module.css +++ b/src/views/DrefOperationalUpdateExport/styles.module.css @@ -7,7 +7,7 @@ @media screen { margin: var(--go-ui-spacing-xl) auto; background-color: var(--go-ui-color-foreground); - padding: 10mm; + padding: var(--go-ui-export-page-margin); width: 210mm; min-height: 297mm; }