Use CSS pagination options when printing.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Thu, 11 Nov 2010 16:03:21 +0000 (16:03 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Thu, 11 Nov 2010 16:03:21 +0000 (16:03 +0000)
- 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.

RELEASE-NOTES
skins/common/commonPrint.css

index d0da78f..ec86c60 100644 (file)
@@ -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
index 45b0074..af309df 100644 (file)
@@ -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;
+}