diff --git a/src/scss/cv-base.css b/src/scss/cv-base.css index 9c5c946..84fc2f5 100644 --- a/src/scss/cv-base.css +++ b/src/scss/cv-base.css @@ -33,8 +33,12 @@ body { -webkit-print-color-adjust: exact; } -.section-title, -h3 { +li, p { + break-inside: avoid; + page-break-inside: avoid; +} + +.section-title { break-after: avoid; page-break-after: avoid; } diff --git a/src/themes/reorx/index.scss b/src/themes/reorx/index.scss index d3ad2c1..c570e08 100644 --- a/src/themes/reorx/index.scss +++ b/src/themes/reorx/index.scss @@ -16,6 +16,8 @@ $lh-p: 1.4; font-family: system-ui, sans-serif; footer { + break-inside: avoid; + page-break-inside: avoid; margin-top: 3em; border-top: 1px solid $color-border-dimmer; padding: 4px 0 8px; @@ -152,6 +154,13 @@ section { } } +.work-section { + .section-item { + break-inside: auto; + page-break-inside: auto; + } +} + .sideprojects-section { .description p:last-of-type { margin-bottom: 0;