Skip to content

Commit 691992d

Browse files
authored
Fix search colors for PST 0.16.0 (#177)
I just noticed the search bar colors are off with PST 0.16.0. This PR restores the correct outline color. Before this PR: ![Captura de imagem_20241022_160058](https://github.com/user-attachments/assets/759d4dec-cca6-4615-b62f-b5fb187d8d2c) After this PR: ![Captura de imagem_20241022_162538](https://github.com/user-attachments/assets/9f9069aa-fdc9-43c8-80ec-8732e2d83e2e)
1 parent 2aa9fa3 commit 691992d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

napari_sphinx_theme/static/css/napari-sphinx-theme.css

+9-5
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,6 @@ button.version-switcher__button {
341341
sidebar
342342
***************************/
343343

344-
.bd-search {
345-
border: 1px solid transparent;
346-
}
347-
348344
/* Remove "Section Navigation" caption */
349345
.bd-links__title {
350346
display: none;
@@ -498,6 +494,14 @@ nav.bd-links .current>a {
498494
search
499495
***************************/
500496

497+
.bd-search {
498+
border: 1px solid transparent;
499+
}
500+
501+
.bd-search:focus-within {
502+
box-shadow: 0 0 0 .1875rem var(--napari-primary-blue);
503+
}
504+
501505
.form-control {
502506
border: 1px transparent;
503507
}
@@ -508,7 +512,7 @@ search
508512
border: none;
509513
box-shadow: none;
510514
color: var(--pst-color-text-muted);
511-
outline: 3px solid var(--napari-primary-blue);
515+
outline: none;
512516
}
513517

514518
/***************************

0 commit comments

Comments
 (0)