Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-06-01 13:19:05


Author: danieljames
Date: 2008-06-01 13:19:05 EDT (Sun, 01 Jun 2008)
New Revision: 46021
URL: http://svn.boost.org/trac/boost/changeset/46021

Log:
Some crude CSS for printing.

Text files modified:
   branches/doc/doc/html/boostbook.css | 17 +++++++++++++++++
   branches/doc/doc/src/boostbook.css | 19 +++++++++++++++++++
   2 files changed, 36 insertions(+), 0 deletions(-)

Modified: branches/doc/doc/html/boostbook.css
==============================================================================
--- branches/doc/doc/html/boostbook.css (original)
+++ branches/doc/doc/html/boostbook.css 2008-06-01 13:19:05 EDT (Sun, 01 Jun 2008)
@@ -586,3 +586,20 @@
         top: .5ex;
 }
 
+@media print {
+ body { margin: 0; font-family: serif; }
+ html { margin: 0 }
+ h1,h2,h3,h4,h5,h6 { font-family: sans-serif; }
+
+ p { line-height: inherit; orphans: 3; widows: 3; }
+
+ img, pre, .table { page-break-inside: avoid; page-break-before: avoid; }
+ .title, .titlepage { page-break-inside: avoid; page-break-after: avoid; }
+ .title + *, .titlepage + * { page-break-inside: auto !important; }
+ .section, .chapter { page-break-after: always; }
+ .section .section, .toc .section { page-break-after: auto; }
+ .refentry { page-break-inside: avoid; }
+ .refentry pre.synopsis { page-break-inside: auto; }
+
+ @page { margin: 0.5in }
+}

Modified: branches/doc/doc/src/boostbook.css
==============================================================================
--- branches/doc/doc/src/boostbook.css (original)
+++ branches/doc/doc/src/boostbook.css 2008-06-01 13:19:05 EDT (Sun, 01 Jun 2008)
@@ -586,3 +586,22 @@
         top: .5ex;
 }
 
+@media print {
+ body { margin: 0; font-family: serif; }
+ html { margin: 0 }
+ h1,h2,h3,h4,h5,h6 { font-family: sans-serif; }
+ p { line-height: inherit; orphans: 3; widows: 3; }
+
+ img, pre, .table { page-break-inside: avoid; }
+ pre { page-break-before: avoid; }
+ .title, .titlepage { page-break-inside: avoid; page-break-after: avoid; }
+ .title + *, .titlepage + * { page-break-inside: auto !important; }
+ .section, .chapter { page-break-after: always; }
+ .section .section, .toc .section { page-break-after: auto; }
+ .refentry { page-break-inside: avoid; }
+ .refentry pre.synopsis { page-break-before: auto; page-break-inside: auto; }
+ .refsect2 > div.orderedlist > ol > li { page-break-inside: avoid; }
+ br.table-break { display: none; }
+
+ @page { margin: 0.5in }
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk