From 4713554a6442f953939d490d99823fa136fe6407 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Wed, 24 Apr 2024 07:26:27 +0200 Subject: [PATCH 1/3] Fix navbar alignment --- doc/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/conf.py b/doc/conf.py index 9d6c08a4c83..1bc8fc45613 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -859,6 +859,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): "version-switcher", "navbar-icon-links", ], + "navbar_align": "left", "navbar_persistent": ["search-button"], "footer_start": ["copyright"], "secondary_sidebar_items": ["page-toc", "edit-this-page"], From 54da3586682e53f31aa21e2d9f0de78c33ba434d Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Wed, 24 Apr 2024 07:37:48 +0200 Subject: [PATCH 2/3] Fix sidebar vertical scrollbar --- doc/_static/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/_static/style.css b/doc/_static/style.css index 11a27b72c92..9755dc84d2e 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -353,3 +353,9 @@ div.sphx-glr-animation video { max-width: 100%; height: auto; } + +/* fix sidebar vertical scrollbar */ +.sidebar-primary-items__end { + margin-bottom: 0 !important; + margin-top: 0 !important; +} From f71b3e79e6992be851a9e102efaf6f1c69338dd9 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Wed, 24 Apr 2024 10:11:09 +0200 Subject: [PATCH 3/3] Try removing horizontal scrollbar --- doc/_static/style.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/_static/style.css b/doc/_static/style.css index 9755dc84d2e..25446d35659 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -354,8 +354,10 @@ div.sphx-glr-animation video { height: auto; } -/* fix sidebar vertical scrollbar */ +/* fix sidebar scrollbars */ .sidebar-primary-items__end { margin-bottom: 0 !important; margin-top: 0 !important; + margin-left: 0 !important; + margin-right: 0 !important; }