Skip to content

Commit f62dc14

Browse files
committed
Increase contrast for help and settings buttons
1 parent 2c9b913 commit f62dc14

File tree

4 files changed

+6
-30
lines changed

4 files changed

+6
-30
lines changed

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

-8
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,6 @@ details.undocumented > summary::before {
237237
color: grey;
238238
}
239239

240-
#crate-search {
241-
color: white;
242-
}
243-
244-
.search-input {
245-
color: white;
246-
}
247-
248240
.module-item .stab,
249241
.import-item .stab {
250242
color: #000;

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

+3-11
Original file line numberDiff line numberDiff line change
@@ -211,22 +211,14 @@ details.undocumented > summary::before {
211211
}
212212

213213
#theme-picker, #settings-menu, #help-button,
214-
#crate-search, .search-input, .search-input::placeholder {
215-
color: grey;
214+
#crate-search, .search-input {
215+
color: white;
216216
background-color: #353535;
217217
border-color: #505050;
218218
}
219219

220220
#theme-picker > img, #settings-menu > img {
221-
filter: invert(50%);
222-
}
223-
224-
#crate-search {
225-
color: white;
226-
}
227-
228-
.search-input {
229-
color: white;
221+
filter: invert(100%);
230222
}
231223

232224
.search-input:focus {

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

+2-10
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,12 @@ details.undocumented > summary::before {
211211
}
212212

213213
#theme-picker, #settings-menu, #help-button,
214-
#crate-search, .search-input, .search-input::placeholder {
215-
color: grey;
214+
#crate-search, .search-input {
215+
color: black;
216216
background-color: white;
217217
border-color: #e0e0e0;
218218
}
219219

220-
#crate-search {
221-
color: black;
222-
}
223-
224-
.sub-container img {
225-
opacity: 50%;
226-
}
227-
228220
.search-input:focus {
229221
border-color: #66afe9;
230222
}

0 commit comments

Comments
 (0)