about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-08-31 08:47:14 +0900
committerGitHub <noreply@github.com>2022-08-31 08:47:14 +0900
commit682644251dcba44bd5d66ec52e057e0ee29435f5 (patch)
tree05647a0c3a6023d946c0f94ab279660ef2284c54 /src/librustdoc/html
parent02654a0844f5c8d29bac318c3c6c666da3d8543d (diff)
parentf7cce2f959303c23e12019f673b7cf2a8f6a4486 (diff)
downloadrust-682644251dcba44bd5d66ec52e057e0ee29435f5.tar.gz
rust-682644251dcba44bd5d66ec52e057e0ee29435f5.zip
Rollup merge of #100804 - GuillaumeGomez:search-results-color-ayu, r=notriddle
Fix search results color on hover for ayu theme

Before:

![image](https://user-images.githubusercontent.com/3050060/185747851-038d2333-8b01-44a8-a104-ceb7410ac089.png)

After:

![image](https://user-images.githubusercontent.com/3050060/185747869-53b502f5-5800-470f-b897-2683f1cdb7ee.png)

You can test it [here](https://rustdoc.crud.net/imperio/search-results-color-ayu/foo/index.html?search=item).

r? ``@jsha``
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/css/themes/ayu.css7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/css/themes/ayu.css b/src/librustdoc/html/static/css/themes/ayu.css
index 1efa67a44b5..e301a793282 100644
--- a/src/librustdoc/html/static/css/themes/ayu.css
+++ b/src/librustdoc/html/static/css/themes/ayu.css
@@ -83,12 +83,13 @@ pre, .rustdoc.source .example-wrap {
 }
 
 .search-results a:hover {
-	background-color: #777;
+	color: #fff !important;
+	background-color: #3c3c3c;
 }
 
 .search-results a:focus {
-	color: #000 !important;
-	background-color: #c6afb3;
+	color: #fff !important;
+	background-color: #3c3c3c;
 }
 .search-results a {
 	color: #0096cf;