Skip to content

Commit 18c4fa6

Browse files
Migrate no result page link color to CSS variables
1 parent 5f4e73c commit 18c4fa6

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,10 @@ h3.variant {
13311331
display: none;
13321332
}
13331333

1334+
.search-failed a {
1335+
color: var(--search-failed-link-color);
1336+
}
1337+
13341338
.search-failed.active {
13351339
display: block;
13361340
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3939
--sidebar-current-link-background-color: transparent;
4040
--search-result-link-focus-background-color: #3c3c3c;
4141
--search-result-border-color: #aaa3;
42+
--search-failed-link-color: #39afd7;
4243
--stab-background-color: #314559;
4344
--stab-code-color: #e6e1cf;
4445
--search-color: #fff;
@@ -160,10 +161,6 @@ details.rustdoc-toggle > summary::before {
160161
color: #788797;
161162
}
162163

163-
.search-failed a {
164-
color: #39AFD7;
165-
}
166-
167164
.tooltip::after {
168165
background-color: #314559;
169166
color: #c5c5c5;

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
--sidebar-current-link-background-color: #444;
3535
--search-result-link-focus-background-color: #616161;
3636
--search-result-border-color: #aaa3;
37+
--search-failed-link-color: #0089ff;
3738
--stab-background-color: #314559;
3839
--stab-code-color: #e6e1cf;
3940
--search-color: #111;
@@ -82,10 +83,6 @@ details.rustdoc-toggle > summary::before {
8283
filter: invert(100%);
8384
}
8485

85-
.search-failed a {
86-
color: #0089ff;
87-
}
88-
8986
.tooltip::after {
9087
background-color: #000;
9188
color: #fff;

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
--sidebar-current-link-background-color: #fff;
3535
--search-result-link-focus-background-color: #ccc;
3636
--search-result-border-color: #aaa3;
37+
--search-failed-link-color: #3873ad;
3738
--stab-background-color: #fff5d6;
3839
--stab-code-color: #000;
3940
--search-color: #000;
@@ -69,17 +70,12 @@
6970
--crate-search-hover-border: #717171;
7071
}
7172

72-
7373
.content .item-info::before { color: #ccc; }
7474

7575
body.source .example-wrap pre.rust a {
7676
background: #eee;
7777
}
7878

79-
.search-failed a {
80-
color: #3873AD;
81-
}
82-
8379
.tooltip::after {
8480
background-color: #000;
8581
color: #fff;

0 commit comments

Comments
 (0)