From 771feb19554948455a15f9337bcd6df573834aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 20 May 2024 12:15:56 +0200 Subject: feat(styles): page numbering and correct break-inside --- src/styles/resume.css | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/styles/resume.css b/src/styles/resume.css index 78de203..8fbfdfc 100644 --- a/src/styles/resume.css +++ b/src/styles/resume.css @@ -3,26 +3,32 @@ @media print { html { max-width: 85%; + margin-top: 0; + margin-bottom: 0; } h1, h2, h3, h4 { - page-break-after:avoid; break-after: avoid; } + } @page { size: A3 portrait; + margin-top: 4em; + margin-bottom: 4em; + @bottom-right-corner { + content: counter(page) '/' counter(pages); + margin-left: 1em; + } } -body > ul > li, -ul > ul, -ul > ul > li { +body > ul > li { break-inside: avoid; } @@ -33,3 +39,4 @@ ul:nth-of-type(1) { .job-meta { float: right; } + -- cgit v1.2.3