From: <var...@us...> - 2009-08-08 18:13:35
|
Revision: 7066 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7066&view=rev Author: vargenau Date: 2009-08-08 18:13:23 +0000 (Sat, 08 Aug 2009) Log Message: ----------- CSS3 Paged Media Module directives for printing (used by Prince XML) Modified Paths: -------------- trunk/themes/MonoBook/commonPrint.css Modified: trunk/themes/MonoBook/commonPrint.css =================================================================== --- trunk/themes/MonoBook/commonPrint.css 2009-08-07 08:21:01 UTC (rev 7065) +++ trunk/themes/MonoBook/commonPrint.css 2009-08-08 18:13:23 UTC (rev 7066) @@ -10,6 +10,50 @@ ** Copyright Alexander Limi */ +@page { + size: A4 portrait; + margin: 17mm 10mm 17mm 10mm; +} + +h1 { + string-set: header content(); +} + +@page :left { + @top-left { + content: "Phpwiki"; + } + @top-right { + content: string(header); + } + @bottom-left { + content: "Page " counter(page); + } +} + +@page :right { + @top-left { + content: string(header); + } + @top-right { + content: "Phpwiki"; + } + @bottom-right { + content: "Page " counter(page); + } +} + +@page :first { + @top-right { + content: normal; + } + @top-left { + content: normal; + } +} + +h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + /* Thanks to A List Apart (http://alistapart.com/) for useful extras */ a.stub, a.new{ color:#ba0000; text-decoration:none; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |