From 9de85093d34765736e1afc32f1ee419aa79bc7ed Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 20 Oct 2021 14:00:40 -0500 Subject: [PATCH] Make the page better compatible with printing --- assets/css/bobastyle.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 5044719..a05fb8e 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -214,3 +214,25 @@ h1 svg.icon { color: white; text-decoration: none; } + + + +/* Print compatibility */ +@media print { + .top, footer, .section-header-link { + display: none; + } + + .icon { + color: black; + } + + :not(pre) > code { + background-color: lightgray; + } + + body { + background-color: white; + color: black; + } +}