Skip to content

Commit e3a40fc

Browse files
authored
Fix navbar alignment and sidebar scrollbar (#12571)
1 parent dddbe78 commit e3a40fc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

doc/_static/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,11 @@ div.sphx-glr-animation video {
353353
max-width: 100%;
354354
height: auto;
355355
}
356+
357+
/* fix sidebar scrollbars */
358+
.sidebar-primary-items__end {
359+
margin-bottom: 0 !important;
360+
margin-top: 0 !important;
361+
margin-left: 0 !important;
362+
margin-right: 0 !important;
363+
}

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines):
757757
"version-switcher",
758758
"navbar-icon-links",
759759
],
760+
"navbar_align": "left",
760761
"navbar_persistent": ["search-button"],
761762
"footer_start": ["copyright"],
762763
"secondary_sidebar_items": ["page-toc", "edit-this-page"],

0 commit comments

Comments
 (0)