add css for better printing support
authorAmit Mendapara <mendapara.amit@gmail.com>
Wed, 2 Jan 2019 09:38:59 +0000 (09:38 +0000)
committerDan Allen <dan@opendevise.com>
Sun, 16 Jun 2019 10:01:50 +0000 (04:01 -0600)
src/css/print.css [new file with mode: 0644]
src/css/site.css

diff --git a/src/css/print.css b/src/css/print.css
new file mode 100644 (file)
index 0000000..2f6550d
--- /dev/null
@@ -0,0 +1,26 @@
+body {
+  padding-top: 0;
+}
+
+header,
+.toolbar,
+.toc {
+  display: none !important;
+}
+
+footer.footer {
+  border-top: 1px solid #ddd;
+  background-color: inherit;
+  padding: 0;
+}
+
+pre code {
+  white-space: pre-wrap;
+  word-wrap: break-word;
+}
+
+.doc {
+  max-width: 100%;
+  margin: auto;
+  padding: 0 1rem 1rem 1rem;
+}
index ed50af4..273b8ec 100644 (file)
@@ -12,3 +12,4 @@
 @import "header.css";
 @import "footer.css";
 @import "highlight.css";
+@import "print.css" print;