]> Kevux Git Server - kevux.org-website/commitdiff
Update: Apply custom print break hints.
authorKevin Day <thekevinday@gmail.com>
Sat, 11 Jun 2022 20:33:46 +0000 (15:33 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 11 Jun 2022 20:33:46 +0000 (15:33 -0500)
I'm not sure how useful this is going to be.
Provide hints to encourage not breaking after a section or subsection heading when printing.

css/kevux-print.css

index a6ad72f..1ff6452 100644 (file)
   margin-bottom: 8px;
 }
 
+.kevux > .content-block .section > .header,
+.kevux > .content-block .subsection > .header {
+  break-before: auto;
+  break-after: avoid-page;
+}
+
 .kevux > .content-block .image.content {
   display: block;