File tree 5 files changed +33
-5
lines changed
src/librustdoc/html/static
5 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -2792,6 +2792,10 @@ function defocusSearchBar() {
2792
2792
addClass ( popup , "hidden" ) ;
2793
2793
popup . id = "help" ;
2794
2794
2795
+ var book_info = document . createElement ( "span" ) ;
2796
+ book_info . innerHTML = "You can find more information in \
2797
+ <a href=\"https://doc.rust-lang.org/rustdoc/\">the rustdoc book</a>." ;
2798
+
2795
2799
var container = document . createElement ( "div" ) ;
2796
2800
var shortcuts = [
2797
2801
[ "?" , "Show this help dialog" ] ,
@@ -2825,6 +2829,7 @@ function defocusSearchBar() {
2825
2829
addClass ( div_infos , "infos" ) ;
2826
2830
div_infos . innerHTML = "<h2>Search Tricks</h2>" + infos ;
2827
2831
2832
+ container . appendChild ( book_info ) ;
2828
2833
container . appendChild ( div_shortcuts ) ;
2829
2834
container . appendChild ( div_infos ) ;
2830
2835
Original file line number Diff line number Diff line change @@ -796,14 +796,22 @@ body.blur > :not(#help) {
796
796
clear : left;
797
797
display : block;
798
798
}
799
+ # help > div > span {
800
+ text-align : center;
801
+ display : block;
802
+ margin : 10px 0 ;
803
+ font-size : 18px ;
804
+ border-bottom : 1px solid # ccc ;
805
+ padding-bottom : 4px ;
806
+ margin-bottom : 6px ;
807
+ }
799
808
# help dd { margin : 5px 35px ; }
800
809
# help .infos { padding-left : 0 ; }
801
810
# help h1 , # help h2 { margin-top : 0 ; }
802
811
# help > div div {
803
812
width : 50% ;
804
813
float : left;
805
- padding : 20px ;
806
- padding-left : 17px ;
814
+ padding : 0 20px 20px 17px ;;
807
815
}
808
816
809
817
.stab {
Original file line number Diff line number Diff line change 219
219
}
220
220
221
221
.docblock : not (.type-decl ) a : not (.srclink ): not (.test-arrow ),
222
- .docblock-short a : not (.srclink ): not (.test-arrow ), .stability a {
222
+ .docblock-short a : not (.srclink ): not (.test-arrow ), .stability a ,
223
+ # help a {
223
224
color : # 39AFD7 ;
224
225
}
225
226
275
276
border-radius : 4px ;
276
277
}
277
278
279
+ # help > div > span {
280
+ border-bottom-color : # 5c6773 ;
281
+ }
282
+
278
283
.since {
279
284
color : grey;
280
285
}
Original file line number Diff line number Diff line change 177
177
}
178
178
179
179
.docblock : not (.type-decl ) a : not (.srclink ): not (.test-arrow ),
180
- .docblock-short a : not (.srclink ): not (.test-arrow ), .stability a {
180
+ .docblock-short a : not (.srclink ): not (.test-arrow ), .stability a ,
181
+ # help a {
181
182
color : # D2991D ;
182
183
}
183
184
@@ -231,6 +232,10 @@ a.test-arrow {
231
232
border-color : # bfbfbf ;
232
233
}
233
234
235
+ # help > div > span {
236
+ border-bottom-color : # bfbfbf ;
237
+ }
238
+
234
239
# help dt {
235
240
border-color : # bfbfbf ;
236
241
background : rgba (0 , 0 , 0 , 0 );
Original file line number Diff line number Diff line change 175
175
}
176
176
177
177
.docblock : not (.type-decl ) a : not (.srclink ): not (.test-arrow ),
178
- .docblock-short a : not (.srclink ): not (.test-arrow ), .stability a {
178
+ .docblock-short a : not (.srclink ): not (.test-arrow ), .stability a ,
179
+ # help a {
179
180
color : # 3873AD ;
180
181
}
181
182
@@ -229,6 +230,10 @@ a.test-arrow {
229
230
border-color : # bfbfbf ;
230
231
}
231
232
233
+ # help > div > span {
234
+ border-bottom-color : # bfbfbf ;
235
+ }
236
+
232
237
.since {
233
238
color : grey;
234
239
}
You can’t perform that action at this time.
0 commit comments