From 203a2de5bd86a8ba252dbb4e746d3af4c2936129 Mon Sep 17 00:00:00 2001 From: Tobias Merkle Date: Mon, 15 Apr 2024 13:54:49 -0400 Subject: [PATCH] some basic print css --- theme/css/print.css | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/theme/css/print.css b/theme/css/print.css index 80ec3a54..d4bbfccd 100644 --- a/theme/css/print.css +++ b/theme/css/print.css @@ -1,4 +1,3 @@ - #sidebar, #menu-bar, .nav-chapters, @@ -9,7 +8,7 @@ #page-wrapper.page-wrapper { transform: none !important; margin-inline-start: 0px; - overflow-y: initial; + height: 100%; } #content { @@ -19,32 +18,42 @@ } .page { - overflow-y: initial; + background-color: transparent; + height: 100%; } code { direction: ltr !important; } -pre > .buttons { +pre>.buttons { z-index: 2; } -a, a:visited, a:active, a:hover { +a, +a:visited, +a:active, +a:hover { color: #4183c4; text-decoration: none; } -h1, h2, h3, h4, h5, h6 { +h1, +h2, +h3, +h4, +h5, +h6 { page-break-inside: avoid; page-break-after: avoid; } -pre, code { +pre, +code { page-break-inside: avoid; white-space: pre-wrap; } .fa { display: none !important; -} +} \ No newline at end of file