From: Derk-Jan Hartman Date: Thu, 11 Nov 2010 16:03:21 +0000 (+0000) Subject: Use CSS pagination options when printing. X-Git-Tag: 1.31.0-rc.0~33929 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=5bb1499c3934bf01b8a99faeafe86fc4403dc937;p=lhc%2Fweb%2Fwiklou.git Use CSS pagination options when printing. - Avoid pagebreaks after headers - Avoid pagebreaks inside images and wikitables - Avoid less than 3 lines at the end of beginning of paragraphs. Works on Opera, and partly on Firefox. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d0da78f4aa..ec86c60ad6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -202,6 +202,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * Add CSS classes (including namespace and pagename) to the enhanced recent changes/watchlist entries * (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable +* Added CSS print pagination to the print stylesheets === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/skins/common/commonPrint.css b/skins/common/commonPrint.css index 45b0074181..af309df1f6 100644 --- a/skins/common/commonPrint.css +++ b/skins/common/commonPrint.css @@ -348,3 +348,15 @@ table.wikitable { a.sortheader { margin: 0px 0.3em; } + +/* Some pagination options */ +.wikitable, .thumb, img { + page-break-inside: avoid; +} +h2, h3, h4, h5, h6, h7 { + page-break-after: avoid; +} +p { + widows: 3; + orpans: 3; +}