Improve print styles: add page margins and prevent awkward breaks

This commit is contained in:
Michael Winter 2026-02-18 05:30:42 +01:00
parent 22a3b8d00f
commit 72d2d67842
2 changed files with 24 additions and 0 deletions

View file

@ -373,6 +373,10 @@ a {
} }
@media print { @media print {
@page {
margin: 15mm;
}
.cv-container { .cv-container {
margin: 0; margin: 0;
padding: 15mm; padding: 15mm;
@ -395,6 +399,13 @@ a {
.cv-section h4 { .cv-section h4 {
font-size: 10pt; font-size: 10pt;
border-bottom: 1pt solid #999; border-bottom: 1pt solid #999;
break-after: avoid;
page-break-after: avoid;
}
.item {
break-inside: avoid;
page-break-inside: avoid;
} }
.item-title { .item-title {
@ -409,6 +420,8 @@ a {
.year-header { .year-header {
font-size: 10pt; font-size: 10pt;
break-after: avoid;
page-break-after: avoid;
} }
hr { hr {

View file

@ -183,6 +183,10 @@ hr {
} }
@media print { @media print {
@page {
margin: 15mm;
}
.cv-container { .cv-container {
margin: 0; margin: 0;
padding: 15mm; padding: 15mm;
@ -205,6 +209,13 @@ hr {
.cv-section h4 { .cv-section h4 {
font-size: 10pt; font-size: 10pt;
border-bottom: 1pt solid #999; border-bottom: 1pt solid #999;
break-after: avoid;
page-break-after: avoid;
}
.work-entry {
break-inside: avoid;
page-break-inside: avoid;
} }
.work-title { .work-title {