From feb4f763831ee8c481a2abc7e1e8e76fff6e5a25 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Thu, 6 Oct 2022 19:14:54 +0200 Subject: [PATCH] FIX: improve display of Hide search button (#984) * fix: unset color of the icons in secondary sidebar links * remove margin --- .../assets/styles/sections/_sidebar-secondary.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-secondary.scss b/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-secondary.scss index 34b65e30c..19563a48c 100644 --- a/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-secondary.scss +++ b/src/pydata_sphinx_theme/assets/styles/sections/_sidebar-secondary.scss @@ -62,11 +62,12 @@ div#searchbox { a { // add icon via CSS because the link is created by javascript // match padding to .toc-item > i above - // f010 is magnifying glass minus &:before { content: var(--pst-icon-search-minus); + color: unset; // make sure it uses the same color as the text font-family: "Font Awesome 6 Free"; padding-right: 0.5rem; + margin-right: 0; } } }