diff options
author | Blaž Hrastnik | 2021-04-05 06:18:43 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-04-05 06:48:08 +0000 |
commit | 16350399ac4eb15274e065f113ad808c96dc600f (patch) | |
tree | 959a018d3b48fbb7de3975bdfec46d5bb896a830 /book/theme/css/print.css | |
parent | 7d677d32aecfcf3be746ec85c5c31d0a2077e6e3 (diff) |
Add book/ (mdbook based user guide)
Diffstat (limited to 'book/theme/css/print.css')
-rw-r--r-- | book/theme/css/print.css | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/book/theme/css/print.css b/book/theme/css/print.css new file mode 100644 index 00000000..5e690f75 --- /dev/null +++ b/book/theme/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; +} |