From 831be3a92d020c7dd0b3db169756e6fb9d30d748 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 20 Nov 2022 10:29:01 +0200 Subject: [styles] Improved layout and colors when printing a page --- src/styles.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/styles.css') diff --git a/src/styles.css b/src/styles.css index 9ff0cb6..6f55703 100644 --- a/src/styles.css +++ b/src/styles.css @@ -482,6 +482,22 @@ dd code { } } +/* Printing support */ + +@media print { + h2 + a img, h3 + a img, h4 + a img, h5 + a img, h6 + a img, + nav, #scrollBtn { + display: none !important; + } + body { + margin: 0; + } + body, article { + background-color: white; + border: none !important; + } +} + /* Script specific styling */ .btn:hover { -- cgit v1.3.1-26-gb76a