Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 512db7e

Browse files
Fix CSS on search input focus
1 parent b3c1b95 commit 512db7e

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

src/librustdoc/html/static/css/themes/ayu.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,13 @@ details.rustdoc-toggle > summary::before {
184184

185185
#crate-search, .search-input {
186186
background-color: #141920;
187-
/* Without the `!important`, the border-color is ignored for `<select>`... */
187+
border-color: #424c57;
188+
}
189+
190+
#crate-search {
191+
/* Without the `!important`, the border-color is ignored for `<select>`...
192+
It cannot be in the group above because `.search-input` has a different border color on
193+
hover. */
188194
border-color: #424c57 !important;
189195
}
190196

src/librustdoc/html/static/css/themes/dark.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,13 @@ details.rustdoc-toggle > summary::before {
159159
#crate-search, .search-input {
160160
color: #111;
161161
background-color: #f0f0f0;
162-
/* Without the `!important`, the border-color is ignored for `<select>`... */
162+
border-color: #f0f0f0;
163+
}
164+
165+
#crate-search {
166+
/* Without the `!important`, the border-color is ignored for `<select>`...
167+
It cannot be in the group above because `.search-input` has a different border color on
168+
hover. */
163169
border-color: #f0f0f0 !important;
164170
}
165171

src/librustdoc/html/static/css/themes/light.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,13 @@ details.rustdoc-toggle > summary::before {
146146

147147
#crate-search, .search-input {
148148
background-color: white;
149-
/* Without the `!important`, the border-color is ignored for `<select>`... */
149+
border-color: #e0e0e0;
150+
}
151+
152+
#crate-search {
153+
/* Without the `!important`, the border-color is ignored for `<select>`...
154+
It cannot be in the group above because `.search-input` has a different border color on
155+
hover. */
150156
border-color: #e0e0e0 !important;
151157
}
152158

0 commit comments

Comments
 (0)