From ba10429ed780cc19ea88becb8bcf58e6aac54787 Mon Sep 17 00:00:00 2001 From: Mateusz Konat Date: Sun, 30 Aug 2026 14:54:29 +0200 Subject: [PATCH 1/4] Keep breadcrumbs visible on mobile --- 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 aa9622d..b5ca17b 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -564,8 +564,8 @@ div.genindex-jumpbox a { margin-inline-start: 1rem; margin-inline-end: 0; } - /* Remove sidebar and top related bar */ - div.related, div.sphinxsidebar { + /* Remove sidebar and desktop-only related controls */ + div.related li.right, div.related li.switchers, div.sphinxsidebar { display: none; } /* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */ From 59f4893a6eeab547a2c14327897bf936dade083e Mon Sep 17 00:00:00 2001 From: Mateusz Konat Date: Sun, 30 Aug 2026 19:15:28 +0200 Subject: [PATCH 2/4] Hide Python logo and reduce the vertical gap between breadcrumb lines --- python_docs_theme/layout.html | 2 +- python_docs_theme/static/pydoctheme.css | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html index 1903fad..b0cfedf 100644 --- a/python_docs_theme/layout.html +++ b/python_docs_theme/layout.html @@ -14,7 +14,7 @@

{{ _('Navigation') }}

{%- endfor %} {%- block rootrellink %} -
  • {{ theme_root_icon_alt_text }}
  • +
  • {{ theme_root_icon_alt_text }}
  • {{theme_root_name}}{{ reldelim1 }}
  • diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index b5ca17b..6bd7d59 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -568,6 +568,13 @@ div.genindex-jumpbox a { div.related li.right, div.related li.switchers, div.sphinxsidebar { display: none; } + div.related .root-icon { + display: none; + } + div.related ul, + div.related li { + line-height: 1.3; + } /* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */ html { scroll-padding-top: 40px; From 84a3e4503ee2644088222e58bccbbdf0e8eb575d Mon Sep 17 00:00:00 2001 From: Mateusz Konat <106225920+undeMalum@users.noreply.github.com> Date: Sun, 30 Aug 2026 20:31:36 +0200 Subject: [PATCH 3/4] Update python_docs_theme/static/pydoctheme.css Co-authored-by: Maciej Olko --- python_docs_theme/static/pydoctheme.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 6bd7d59..c258b3d 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -571,8 +571,7 @@ div.genindex-jumpbox a { div.related .root-icon { display: none; } - div.related ul, - div.related li { + div.related { line-height: 1.3; } /* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */ From 5b3e4d370a4d771767989c5c99796c0d9df977fd Mon Sep 17 00:00:00 2001 From: Mateusz Konat <106225920+undeMalum@users.noreply.github.com> Date: Sun, 30 Aug 2026 20:31:47 +0200 Subject: [PATCH 4/4] Update python_docs_theme/static/pydoctheme.css Co-authored-by: Maciej Olko --- python_docs_theme/static/pydoctheme.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index c258b3d..f30aa3a 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -568,7 +568,7 @@ div.genindex-jumpbox a { div.related li.right, div.related li.switchers, div.sphinxsidebar { display: none; } - div.related .root-icon { + div.related .root-icon, div.related .root-icon + li { display: none; } div.related {