From: David Cramer Date: Sun, 13 May 2012 19:22:12 +0000 (+0000) Subject: Webhelp: Adding print-only css rules X-Git-Tag: release/1.79.1~6^2~423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab847ef4b00c3f309b77fa7569c23c1265af7baf;p=docbook-dsssl Webhelp: Adding print-only css rules --- diff --git a/xsl/webhelp/template/common/css/positioning.css b/xsl/webhelp/template/common/css/positioning.css index dad43fe73..a087660ed 100644 --- a/xsl/webhelp/template/common/css/positioning.css +++ b/xsl/webhelp/template/common/css/positioning.css @@ -349,3 +349,23 @@ div.note *, div.caution *, div.important *, div.tip *, div.warning * { #content .qandaset>table, #content .qandaset>table td, #content .calloutlist table, #content .calloutlist table td, #content .navfooter table, #content .navfooter table td { border: 0px solid; } + +@media print { + + body * { + visibility: hidden; + } + + #content, #content * { + visibility: visible; + } + + #sidebar, .navfooter { + display: none; + } + + #content { + margin: 0 0 0 0; + } + +} \ No newline at end of file