From a38065d537db0eb5f3dff3dd668ec7dfc3e599ee Mon Sep 17 00:00:00 2001 From: Amit Mendapara Date: Wed, 2 Jan 2019 09:38:59 +0000 Subject: [PATCH] add css for better printing support --- src/css/print.css | 26 ++++++++++++++++++++++++++ src/css/site.css | 1 + 2 files changed, 27 insertions(+) create mode 100644 src/css/print.css diff --git a/src/css/print.css b/src/css/print.css new file mode 100644 index 0000000..2f6550d --- /dev/null +++ b/src/css/print.css @@ -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; +} diff --git a/src/css/site.css b/src/css/site.css index ed50af4..273b8ec 100644 --- a/src/css/site.css +++ b/src/css/site.css @@ -12,3 +12,4 @@ @import "header.css"; @import "footer.css"; @import "highlight.css"; +@import "print.css" print; -- 2.11.0