File tree 2 files changed +7
-1
lines changed
src/librustdoc/html/static
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -890,6 +890,10 @@ so that we can apply CSS-filters to change the arrow color in themes */
890
890
.search-results .result-name .grey {
891
891
color : var (--search-results-grey-color );
892
892
}
893
+ .search-results .result-name .typename {
894
+ color : var (--search-results-grey-color );
895
+ font-size : 0.875rem ;
896
+ }
893
897
894
898
.popover {
895
899
position : absolute;
Original file line number Diff line number Diff line change @@ -2024,7 +2024,9 @@ function initSearch(rawSearchIndex) {
2024
2024
2025
2025
resultName . insertAdjacentHTML (
2026
2026
"beforeend" ,
2027
- `${ typeName } ${ item . displayPath } <span class="${ type } ">${ name } </span>` ) ;
2027
+ `<span class="typename">${ typeName } </span>`
2028
+ + ` ${ item . displayPath } <span class="${ type } ">${ name } </span>`
2029
+ ) ;
2028
2030
link . appendChild ( resultName ) ;
2029
2031
2030
2032
const description = document . createElement ( "div" ) ;
You can’t perform that action at this time.
0 commit comments