Skip to content

Commit e300efb

Browse files
committed
Reduce height of nav bar when items don't fit in one line
Since pydata-sphinx-theme is not making progress with reasonably displaying lot of content in the nav bar on medium-width screens, let's put the relatively simple workaround from pydata/pydata-sphinx-theme#2117 into the mpl-sphinx-theme.
1 parent 53aa859 commit e300efb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mpl_sphinx_theme/static/css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ html[data-theme="dark"] {
3232
#navbar-icon-links .nav-link:hover {
3333
color: var(--pst-color-primary);
3434
}
35+
36+
/* reduce height of nav bar when items don't fit in one line
37+
See https://github.com/pydata/pydata-sphinx-theme/pull/2117
38+
*/
39+
.navbar-item {
40+
height: unset;
41+
margin: 0.25rem 0;
42+
}

0 commit comments

Comments
 (0)