From f5848135e3731ddf8dac7ad59f5c2865024986e2 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 1 Jun 2022 20:54:02 +0200 Subject: [PATCH] docs: Yeah nah undo flex This is broken in narrow screens - the sidebar shrinks to unusable proportions but still stays. So instead we go the *other* way, force the left margin and undo the flexifying. (again we should really stop relying on sphinx' css) --- doc_src/python_docs_theme/static/pydoctheme.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css index f8f3ad99b..0ea9c5169 100644 --- a/doc_src/python_docs_theme/static/pydoctheme.css +++ b/doc_src/python_docs_theme/static/pydoctheme.css @@ -112,7 +112,7 @@ div.documentwrapper { } div.document { - display: flex; + display: block; } div.document, div.body, div.warning { @@ -356,7 +356,7 @@ div.sphinxsidebar ul { div.bodywrapper { - margin: 0; + margin-left: 230px; } /* On screens that are less than 700px wide remove anything non-essential @@ -371,6 +371,10 @@ div.bodywrapper { div.documentwrapper { float: left; } + div.bodywrapper { + margin-left: 0; + } + div.sphinxsidebar ul { flex-basis: content;