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_name}}{{ reldelim1 }}
diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css
index aa9622d..f30aa3a 100644
--- a/python_docs_theme/static/pydoctheme.css
+++ b/python_docs_theme/static/pydoctheme.css
@@ -564,10 +564,16 @@ 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;
}
+ div.related .root-icon, div.related .root-icon + li {
+ display: none;
+ }
+ div.related {
+ line-height: 1.3;
+ }
/* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */
html {
scroll-padding-top: 40px;