aboutsummaryrefslogtreecommitdiff
path: root/tools/template.html
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-19 14:00:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-19 14:00:09 -0700
commit21fe6105bbfa2012899b4f68fa208793d6f35b1f (patch)
treee1d5dbd2101e25a97d5e1de3a9a2ae5a74bf6670 /tools/template.html
parentaf16dde652b480d253cb1eba3aa9f396cbeeac91 (diff)
Added better print CSS.
Diffstat (limited to 'tools/template.html')
-rw-r--r--tools/template.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/template.html b/tools/template.html
index d09d48f..39a196d 100644
--- a/tools/template.html
+++ b/tools/template.html
@@ -4,14 +4,14 @@
<meta charset="UTF-8">
<title>${title}</title>
<style type="text/css">
- body { font-family: Helvetica, arial, freesans, clean, sans-serif;
+body { font-family: Helvetica, arial, freesans, clean, sans-serif;
line-height: 1.4;
max-width: 48em;
margin: auto;
color: #333333;
background-color: #fff;
font-size: 13pt;
- }
+}
div#TOC ul { list-style: none; }
h1 { font-size: 140%; font-weight: bold; border-top: 1px solid gray; padding-top: 0.5em; }
h2 { font-size: 120%; font-weight: bold; }
@@ -66,6 +66,17 @@ a.footnoteRef > sup {
vertical-align: baseline;
font-size: 100%;
}
+@media print {
+ @page {
+ size: auto;
+ margin: 1.2in 1.2in 1.2in 1.2in;
+ }
+ body {
+ margin: 0px;
+ line-height: 1.2;
+ font-size: 10pt;
+ }
+}
</style>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">