aboutsummaryrefslogtreecommitdiffhomepage
path: root/css/print.css
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2020-03-13 21:00:32 +0000
committerjohannst <johannst@users.noreply.github.com>2020-03-13 21:00:32 +0000
commite5426455329d5b9439491d697405b8386836a154 (patch)
treedf4f21f7a28e7b11ddab90373f838e3ad1241d1b /css/print.css
downloadnotes-e5426455329d5b9439491d697405b8386836a154.tar.gz
notes-e5426455329d5b9439491d697405b8386836a154.zip
deploy: ee4ff84abec4c0ebabde925f6d0772e256fa3ddc
Diffstat (limited to 'css/print.css')
-rw-r--r--css/print.css54
1 files changed, 54 insertions, 0 deletions
diff --git a/css/print.css b/css/print.css
new file mode 100644
index 0000000..5e690f7
--- /dev/null
+++ b/css/print.css
@@ -0,0 +1,54 @@
+
+#sidebar,
+#menu-bar,
+.nav-chapters,
+.mobile-nav-chapters {
+ display: none;
+}
+
+#page-wrapper.page-wrapper {
+ transform: none;
+ margin-left: 0px;
+ overflow-y: initial;
+}
+
+#content {
+ max-width: none;
+ margin: 0;
+ padding: 0;
+}
+
+.page {
+ overflow-y: initial;
+}
+
+code {
+ background-color: #666666;
+ border-radius: 5px;
+
+ /* Force background to be printed in Chrome */
+ -webkit-print-color-adjust: exact;
+}
+
+pre > .buttons {
+ z-index: 2;
+}
+
+a, a:visited, a:active, a:hover {
+ color: #4183c4;
+ text-decoration: none;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ page-break-inside: avoid;
+ page-break-after: avoid;
+}
+
+pre, code {
+ page-break-inside: avoid;
+ white-space: pre-wrap;
+}
+
+.fa {
+ display: none !important;
+}