From b53f3a4c42f41c6618fa1f710805a14c2fa7f07f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 31 Oct 2024 22:45:26 +0200 Subject: [PATCH] Hide header and search bar when printing --- python_docs_theme/static/pydoctheme.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 662d987..0f6f8d3 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -754,3 +754,10 @@ div.deprecated-removed .versionmodified, div.versionremoved .versionmodified { color: var(--deprecated); } + +/* Hide header when printing */ +@media print { + div.mobile-nav { + display: none; + } +}