diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-20 12:15:56 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-20 12:15:56 +0200 |
commit | 771feb19554948455a15f9337bcd6df573834aff (patch) | |
tree | 140153b7bcd4eed97765e40964eccc55364f6642 | |
parent | 1869a823679b34d0fa10f51c2eeeeedca4857c94 (diff) | |
download | rgoncalves.se-771feb19554948455a15f9337bcd6df573834aff.tar.gz |
feat(styles): page numbering and correct break-inside
-rw-r--r-- | src/styles/resume.css | 15 |
1 files changed, 11 insertions, 4 deletions
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; } + |