Skip to content

Commit 61eeffa

Browse files
committed
Rollup merge of #34082 - ollie27:rustdoc_css, r=alexcrichton
rustdoc: Fix a few missing colors in the CSS This adds color to some of the search results and sidebar items which were missing.
2 parents 324a356 + 55af6e4 commit 61eeffa

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ a {
409409

410410
.content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
411411
.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
412-
.content a.type { color: #e57300; }
413-
.content a.macro { color: #068000; }
412+
.content span.type, .content a.type, .block a.current.type { color: #e57300; }
413+
.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
414414
.block a.current.crate { font-weight: 500; }
415415

416416
.search-input {
@@ -453,7 +453,7 @@ a {
453453
.content .search-results td:first-child { padding-right: 0; }
454454
.content .search-results td:first-child a { padding-right: 10px; }
455455

456-
tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; }
456+
tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black}
457457

458458
body.blur > :not(#help) {
459459
filter: blur(8px);

src/librustdoc/html/static/styles/main.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ pre {
8888
border-bottom-color: #ddd;
8989
}
9090

91-
.content a.primitive { color: #39a7bf; }
92-
.content span.externcrate, span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
91+
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #39a7bf; }
92+
.content span.externcrate,
93+
.content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
9394
.content span.fn, .content a.fn, .block a.current.fn,
9495
.content span.method, .content a.method, .block a.current.method,
9596
.content span.tymethod, .content a.tymethod, .block a.current.tymethod,

0 commit comments

Comments
 (0)