diff options
| author | bors <bors@rust-lang.org> | 2023-06-16 15:02:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-16 15:02:22 +0000 |
| commit | 6a94e87a54ecf2df307c65af2dbc2effb3a525b8 (patch) | |
| tree | 041edb9c881311512c705a2c27e48b50e10a9eba /src/librustdoc/html/static/css | |
| parent | 2304917aad2f18ee9a1c6969e1197c96dee907b6 (diff) | |
| parent | de85f7ff363a80ab0eefc6909edc24b5c99880c4 (diff) | |
| download | rust-6a94e87a54ecf2df307c65af2dbc2effb3a525b8.tar.gz rust-6a94e87a54ecf2df307c65af2dbc2effb3a525b8.zip | |
Auto merge of #110688 - GuillaumeGomez:result-search-type, r=notriddle,jsha
rustdoc: Add search result item types after their name Here what it looks like:  The idea is to improve accessibility by providing this information directly in the text and not only in the text color. Currently we already use it for doc aliases and for primitive types, so I extended it to all types. r? `@notriddle`
Diffstat (limited to 'src/librustdoc/html/static/css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 054cfe7597e..b487cfa5c25 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -213,7 +213,7 @@ a.anchor, h1 a, .search-results a, .stab, -.result-name .primitive > i, .result-name .keyword > i { +.result-name i { color: var(--main-color); } @@ -887,7 +887,7 @@ so that we can apply CSS-filters to change the arrow color in themes */ .search-results .result-name span.alias { color: var(--search-results-alias-color); } -.search-results .result-name span.grey { +.search-results .result-name .grey { color: var(--search-results-grey-color); } |
