diff --git a/src/pydata_sphinx_theme/assets/styles/components/_navbar-links.scss b/src/pydata_sphinx_theme/assets/styles/components/_navbar-links.scss index 5b22845d0..2493fc883 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_navbar-links.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_navbar-links.scss @@ -68,3 +68,8 @@ } } } + +// Don't display the `site navigation` in the header menu +.bd-header .navbar-nav > p.sidebar-header-items__title { + display: none; +} diff --git a/src/pydata_sphinx_theme/assets/styles/components/_switcher-version.scss b/src/pydata_sphinx_theme/assets/styles/components/_switcher-version.scss index d8febb16f..dcf0a4f79 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_switcher-version.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_switcher-version.scss @@ -1,6 +1,11 @@ button.version-switcher__button { border-color: var(--pst-color-border); color: var(--pst-color-text-base); + // Add a margin on narrow screens to avoid feeling cramped + margin-bottom: 1em; + @include media-breakpoint-up($breakpoint-sidebar-primary) { + margin-bottom: unset; + } &:hover { color: var(--pst-color-text-base); diff --git a/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-primary.scss b/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-primary.scss index 714c8bde4..6ce31e20f 100644 --- a/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-primary.scss +++ b/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-primary.scss @@ -36,7 +36,7 @@ .sidebar-start-items__item, .sidebar-end-items__item { - padding: 0.25rem 0; + padding: 0.5rem 0; } // Hide the sidebar header items on widescreen since they are visible in the header @@ -202,9 +202,15 @@ nav.bd-links { } } + // Title + p.bd-links__title { + font-size: var(--pst-sidebar-header-font-size); + font-weight: var(--pst-sidebar-header-font-weight); + margin-bottom: 0.5rem; + } + // Toctree captions p.caption { - font-size: var(--pst-sidebar-header-font-size); font-weight: var(--pst-sidebar-header-font-weight); position: relative; margin-top: 1.25em; diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html index d4a41ed6a..4fa900557 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html @@ -1,3 +1,8 @@ - + diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sidebar-nav-bs.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sidebar-nav-bs.html index d142e34a8..19235ff38 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sidebar-nav-bs.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sidebar-nav-bs.html @@ -1,4 +1,7 @@