From 32d0bcf5198a9d100a0cf75bba7a2f2619966e7f Mon Sep 17 00:00:00 2001 From: Craig Russell Date: Thu, 1 Oct 2026 05:36:39 +0100 Subject: [PATCH] style(cv): keep a role heading on the same printed page as its bullets Co-Authored-By: Claude Opus 5.5 (1M context) (cherry picked from commit 1b25b3a8e5d69795813f25f2a1405d82ffb7a62e) --- cv-print.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cv-print.css b/cv-print.css index 317e1f0..e5697ce 100644 --- a/cv-print.css +++ b/cv-print.css @@ -18,3 +18,5 @@ h1.title { font-size: 17pt; margin: 0 0 1mm; text-align: left; } p.subtitle { font-size: 10.5pt; color: #444; margin: 0; text-align: left; } /* the site links to the PDF; hide that link inside the PDF */ p:has(> a[href="cv.pdf"]) { display: none; } +/* Keep a role heading (the paragraph before its bullets) on the same page as them. */ +p:has(+ ul) { break-after: avoid; }