Skip to content

Commit

Permalink
Use same color for links in no result search
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 12, 2022
1 parent 7e79619 commit ee73812
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1331,10 +1331,6 @@ h3.variant {
display: none;
}

.search-failed a {
color: var(--search-failed-link-color);
}

.search-failed.active {
display: block;
}
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/themes/ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
--sidebar-current-link-background-color: transparent;
--search-result-link-focus-background-color: #3c3c3c;
--search-result-border-color: #aaa3;
--search-failed-link-color: #39afd7;
--stab-background-color: #314559;
--stab-code-color: #e6e1cf;
--search-color: #fff;
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
--sidebar-current-link-background-color: #444;
--search-result-link-focus-background-color: #616161;
--search-result-border-color: #aaa3;
--search-failed-link-color: #0089ff;
--stab-background-color: #314559;
--stab-code-color: #e6e1cf;
--search-color: #111;
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
--sidebar-current-link-background-color: #fff;
--search-result-link-focus-background-color: #ccc;
--search-result-border-color: #aaa3;
--search-failed-link-color: #3873ad;
--stab-background-color: #fff5d6;
--stab-code-color: #000;
--search-color: #000;
Expand Down
4 changes: 2 additions & 2 deletions src/test/rustdoc-gui/search-no-result.goml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ call-function: ("check-no-result", {
})
call-function: ("check-no-result", {
"theme": "dark",
"link": "rgb(0, 137, 255)",
"link_hover": "rgb(0, 137, 255)",
"link": "rgb(210, 153, 29)",
"link_hover": "rgb(210, 153, 29)",
})
call-function: ("check-no-result", {
"theme": "light",
Expand Down

0 comments on commit ee73812

Please sign in to comment.