File tree 4 files changed +22
-6
lines changed
src/librustdoc/html/static
4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 1340
1340
output = '<div class="search-failed"' + extraStyle + '>No results :(<br/>' +
1341
1341
'Try on <a href="https://duckduckgo.com/?q=' +
1342
1342
encodeURIComponent ( 'rust ' + query . query ) +
1343
- '">DuckDuckGo</a>?</div>' ;
1343
+ '">DuckDuckGo</a>?<br/><br/>' +
1344
+ 'Or try looking in one of these:<ul><li>The <a ' +
1345
+ 'href="https://doc.rust-lang.org/reference/index.html">Rust Reference</a> for' +
1346
+ ' technical details about the language.</li><li><a ' +
1347
+ 'href="https://doc.rust-lang.org/rust-by-example/index.html">Rust By Example' +
1348
+ '</a> for expository code examples.</a></li><li>The <a ' +
1349
+ 'href="https://doc.rust-lang.org/book/index.html">Rust Book</a> for ' +
1350
+ 'introductions to language features and the language itself.</li><li><a ' +
1351
+ 'href="https://docs.rs">Docs.rs</a> for documentation of crates released on ' +
1352
+ '<a href="https://crates.io/">crates.io</a>.</li></ul></div>' ;
1344
1353
}
1345
1354
return [ output , length ] ;
1346
1355
}
Original file line number Diff line number Diff line change 658
658
padding-right : 10px ;
659
659
}
660
660
.content .search-results td : first-child a : after {
661
- clear : both;
662
- content : "" ;
663
- display : block;
661
+ clear : both;
662
+ content : "" ;
663
+ display : block;
664
664
}
665
665
.content .search-results td : first-child a span {
666
666
float : left;
@@ -1116,6 +1116,13 @@ pre.rust {
1116
1116
margin-top : 20px ;
1117
1117
}
1118
1118
1119
+ .search-failed > ul {
1120
+ text-align : left;
1121
+ max-width : 570px ;
1122
+ margin-left : auto;
1123
+ margin-right : auto;
1124
+ }
1125
+
1119
1126
# titles {
1120
1127
height : 35px ;
1121
1128
}
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ pre.ignore:hover, .information:hover + pre.ignore {
285
285
color : rgba (255 , 142 , 0 , 1 );
286
286
}
287
287
288
- .search-failed > a {
288
+ .search-failed a {
289
289
color : # 0089ff ;
290
290
}
291
291
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ pre.ignore:hover, .information:hover + pre.ignore {
279
279
color : rgba (255 , 142 , 0 , 1 );
280
280
}
281
281
282
- .search-failed > a {
282
+ .search-failed a {
283
283
color : # 0089ff ;
284
284
}
285
285
You can’t perform that action at this time.
0 commit comments