Skip to content

Commit e51e4a4

Browse files
authored
Rollup merge of #103988 - GuillaumeGomez:fix-bottom-border-color, r=notriddle
Fix search result bottom border color It reverts a color change while keeping the improvement made in #103938. I think it'll need to be backported once merged too. r? `@notriddle`
2 parents cf2d88d + 666873b commit e51e4a4

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
886886
/* A little margin ensures the browser's outlining of focused links has room to display. */
887887
margin-left: 2px;
888888
margin-right: 2px;
889-
border-bottom: 1px solid var(--border-color);
889+
border-bottom: 1px solid var(--search-result-border-color);
890890
gap: 1em;
891891
}
892892

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

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3838
--sidebar-link-color: #53b1db;
3939
--sidebar-current-link-background-color: transparent;
4040
--search-result-link-focus-background-color: #3c3c3c;
41+
--search-result-border-color: #aaa3;
4142
--stab-background-color: #314559;
4243
--stab-code-color: #e6e1cf;
4344
--search-color: #fff;

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

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
--sidebar-link-color: #fdbf35;
3434
--sidebar-current-link-background-color: #444;
3535
--search-result-link-focus-background-color: #616161;
36+
--search-result-border-color: #aaa3;
3637
--stab-background-color: #314559;
3738
--stab-code-color: #e6e1cf;
3839
--search-color: #111;

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

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
--sidebar-link-color: #356da4;
3434
--sidebar-current-link-background-color: #fff;
3535
--search-result-link-focus-background-color: #ccc;
36+
--search-result-border-color: #aaa3;
3637
--stab-background-color: #fff5d6;
3738
--stab-code-color: #000;
3839
--search-color: #000;

src/test/rustdoc-gui/search-result-color.goml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ assert-css: (
7878
// Checking the color of the bottom border.
7979
assert-css: (
8080
".search-results > a",
81-
{"border-bottom-color": "rgb(92, 103, 115)"}
81+
{"border-bottom-color": "rgba(170, 170, 170, 0.2)"}
8282
)
8383

8484
// Checking the color of "keyword" text.
@@ -190,7 +190,7 @@ assert-css: (
190190
// Checking the color of the bottom border.
191191
assert-css: (
192192
".search-results > a",
193-
{"border-bottom-color": "rgb(224, 224, 224)"}
193+
{"border-bottom-color": "rgba(170, 170, 170, 0.2)"}
194194
)
195195

196196
// Checking the color for "keyword" text.
@@ -287,7 +287,7 @@ assert-css: (
287287
// Checking the color of the bottom border.
288288
assert-css: (
289289
".search-results > a",
290-
{"border-bottom-color": "rgb(224, 224, 224)"}
290+
{"border-bottom-color": "rgba(170, 170, 170, 0.2)"}
291291
)
292292

293293
// Checking the color for "keyword" text.

0 commit comments

Comments
 (0)