diff --git a/src/pydata_sphinx_theme/assets/styles/components/_icon-links.scss b/src/pydata_sphinx_theme/assets/styles/components/_icon-links.scss index e6f726a18..ab0748c06 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_icon-links.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_icon-links.scss @@ -7,6 +7,10 @@ flex-flow: row wrap; column-gap: 1rem; justify-content: space-evenly; + align-items: center; + padding-left: 0; + margin-bottom: 0; + list-style: none; // Remove the padding so that we can define it with flexbox gap above li.nav-item a.nav-link { 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 cd27e56ff..243722e4b 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_navbar-links.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_navbar-links.scss @@ -1,7 +1,8 @@ /** - * Navigation text links in the navbar + * Navigation links in the navbar and icon links */ -.navbar-nav { +.navbar-nav, +.navbar-icon-links { ul { display: block; list-style: none; diff --git a/src/pydata_sphinx_theme/assets/styles/sections/_header.scss b/src/pydata_sphinx_theme/assets/styles/sections/_header.scss index a5d643cc6..34ac624e7 100644 --- a/src/pydata_sphinx_theme/assets/styles/sections/_header.scss +++ b/src/pydata_sphinx_theme/assets/styles/sections/_header.scss @@ -85,7 +85,7 @@ display: flex; @include media-breakpoint-up($breakpoint-sidebar-primary) { - // Center align on wide screens so the dropdown button is centered properly + // Align on wide screens so the dropdown button is centered properly align-items: baseline; } diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/icon-links.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/icon-links.html index 0b6ce64ad..c40e2638a 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/icon-links.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/icon-links.html @@ -27,7 +27,7 @@ {%- endif -%} {%- endmacro -%} {%- if theme_icon_links -%} -