From: Paul Hänsch Date: Sat, 20 Mar 2021 12:25:53 +0000 (+0100) Subject: Squashed 'cgilite/' changes from 4b913ff..e7e354d X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=38b6b7c8b8eef16d87bd2b4cbf05cfa8a4662fe0;p=webtxt Squashed 'cgilite/' changes from 4b913ff..e7e354d e7e354d basic print styles git-subtree-dir: cgilite git-subtree-split: e7e354d4d238ffd4cca5cb60b5dd273d4eb02e88 --- diff --git a/common.css b/common.css index 99855b9..f9b17ad 100644 --- a/common.css +++ b/common.css @@ -87,6 +87,20 @@ input + label { margin-left: .375em; } +@media print { + @page { margin: 20mm; } + + h1 { text-align: center; } + + h1, h2, h3, h4, h5, h6, form legend { + page-break-inside: avoid; + page-break-after: avoid; + page-break-before: auto; + } + li { page-break-inside: avoid; } + th, dt { page-break-after: avoid; } +} + /* ======= End Generic Styles ======= */ /* ======= Common Styles ======= */