From 027a388efd379a277e9d176eff70de5288367591 Mon Sep 17 00:00:00 2001 From: km0 Date: Tue, 7 Mar 2023 14:01:43 +0100 Subject: [PATCH] print style --- static/style.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/static/style.css b/static/style.css index c159bb0..f2d450d 100644 --- a/static/style.css +++ b/static/style.css @@ -118,3 +118,29 @@ code { color: #aaa; } + +@media print { + body { + font-size: 14px; + } + + img { + max-width: 10cm; + max-height: 10cm; + object-fit: contain; + } + + h1, + h2, + h3 { + margin-top: 0; + margin: 0; + } + + .chapter { + max-width: 100%; + } + .chapter + .chapter { + margin-top: 32px; + } +}