From a51bc0a922accd526ed7d6bee291812c715761b3 Mon Sep 17 00:00:00 2001 From: philg314 <110174000+philg314@users.noreply.github.com> Date: Mon, 8 Aug 2022 16:47:20 +0200 Subject: [PATCH] Fix mobile nav obstructing content --- python_docs_theme/static/pydoctheme.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 4396e1b..bb1697c 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -266,6 +266,9 @@ dl > dt span ~ em { html { scroll-padding-top: 40px; } + body { + margin-top: 40px; + } /* Top navigation bar */ .mobile-nav { @@ -512,7 +515,6 @@ dl > dt span ~ em { width: 100%; } .document { - padding-top: 40px; position: relative; z-index: 0; }