From 0a13c648607a2104886a352fd65f0bc47480ff3a Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Sun, 2 Feb 2025 11:07:41 +0100 Subject: [PATCH 1/3] Bump sidebar width to 260px --- python_docs_theme/static/pydoctheme.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 0f6f8d3..1ba3807 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -140,6 +140,8 @@ span.pre { } div.sphinxsidebar { + display: flex; + width: 260px; float: none; position: sticky; top: 0; @@ -156,13 +158,17 @@ div.sphinxsidebar h4 { margin-top: 1.5em; } +div.documentwrapper > div.bodywrapper { + margin-left: 260px; +} + div.sphinxsidebarwrapper { - width: 217px; box-sizing: border-box; height: 100%; overflow-x: hidden; overflow-y: auto; - float: left; + float: none; + flex-grow: 1; } div.sphinxsidebarwrapper > h3:first-child { @@ -199,10 +205,11 @@ div.sphinxsidebar input[type='text'] { font-size: 1.2em; cursor: pointer; padding-top: 1px; - float: right; + float: none; display: table; /* after Sphinx 4.x and earlier is dropped, only the below is needed */ width: 12px; + min-width: 12px; border-radius: 0 5px 5px 0; border-left: none; } From 7430795ddf34a12567df3eafa39ba1dd42b93d55 Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Mon, 3 Feb 2025 17:56:06 +0100 Subject: [PATCH 2/3] Use less specific selectors --- python_docs_theme/static/pydoctheme.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 1ba3807..f0bba2a 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -158,7 +158,7 @@ div.sphinxsidebar h4 { margin-top: 1.5em; } -div.documentwrapper > div.bodywrapper { +div.bodywrapper { margin-left: 260px; } @@ -496,7 +496,7 @@ div.genindex-jumpbox a { margin-inline-end: 0; } /* Remove sidebar and top related bar */ - div.related, .sphinxsidebar { + div.related, div.sphinxsidebar { display: none; } /* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */ From dec08993122bec7e19f4346e2fc9b0324100f412 Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Mon, 3 Feb 2025 17:56:45 +0100 Subject: [PATCH 3/3] Make sidebar width more flexible --- python_docs_theme/static/pydoctheme.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index f0bba2a..bbc38e1 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -141,7 +141,7 @@ span.pre { div.sphinxsidebar { display: flex; - width: 260px; + width: min(25vw, 350px); float: none; position: sticky; top: 0; @@ -159,7 +159,7 @@ div.sphinxsidebar h4 { } div.bodywrapper { - margin-left: 260px; + margin-left: min(25vw, 350px); } div.sphinxsidebarwrapper { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy