Skip to content

Commit

Permalink
FIX: Fix search icons displayed outside with small base font size (#1278
Browse files Browse the repository at this point in the history
)

* FIX: Fix search icons displayed outside with small base font size
* Refactor style: drop negative margin from search box
  • Loading branch information
Maetveis committed Apr 13, 2023
1 parent b756152 commit fce5e85
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pydata_sphinx_theme/assets/styles/components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
*/
.bd-search {
position: relative;
padding: 1rem 15px;
margin-right: -15px;
margin-left: -15px;
padding: 1rem 0;

.icon {
position: absolute;
Expand All @@ -15,7 +13,7 @@

i.fa-solid.fa-magnifying-glass {
position: absolute;
left: 1.6rem;
left: calc((2.5rem - 0.7em) / 2);
color: var(--pst-color-text-muted);
}

Expand Down Expand Up @@ -50,7 +48,7 @@
.search-button__kbd-shortcut {
display: flex;
position: absolute;
right: 2em;
right: 0.5rem;
color: var(--pst-color-border);
}
}
Expand Down

0 comments on commit fce5e85

Please sign in to comment.