Commit a34bc79 1 parent 8e73853 commit a34bc79 Copy full SHA for a34bc79
File tree 6 files changed +27
-11
lines changed
6 files changed +27
-11
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ pub fn render<T: Print, S: Print>(
95
95
placeholder=\" Click or press ‘S’ to search, ‘?’ for more options…\" \
96
96
type=\" search\" >\
97
97
</div>\
98
+ <span class=\" help-button\" >?</span>
98
99
<a id=\" settings-menu\" href=\" {root_path}settings.html\" >\
99
100
<img src=\" {static_root_path}wheel{suffix}.svg\" \
100
101
width=\" 18\" \
Original file line number Diff line number Diff line change @@ -473,7 +473,9 @@ function defocusSearchBar() {
473
473
} ( ) ) ;
474
474
475
475
document . addEventListener ( "click" , function ( ev ) {
476
- if ( hasClass ( ev . target , "collapse-toggle" ) ) {
476
+ if ( hasClass ( ev . target , "help-button" ) ) {
477
+ displayHelp ( true , ev ) ;
478
+ } else if ( hasClass ( ev . target , "collapse-toggle" ) ) {
477
479
collapseDocs ( ev . target , "toggle" ) ;
478
480
} else if ( hasClass ( ev . target . parentNode , "collapse-toggle" ) ) {
479
481
collapseDocs ( ev . target . parentNode , "toggle" ) ;
Original file line number Diff line number Diff line change 674
674
}
675
675
.search-container > div {
676
676
display : inline-flex;
677
- width : calc (100% - 34 px );
677
+ width : calc (100% - 63 px );
678
678
}
679
679
# crate-search {
680
680
margin-top : 5px ;
@@ -1250,14 +1250,24 @@ h4 > .important-traits {
1250
1250
outline : none;
1251
1251
}
1252
1252
1253
- # settings-menu {
1253
+ # settings-menu , . help-button {
1254
1254
position : absolute;
1255
- right : 0 ;
1256
1255
top : 10px ;
1256
+ }
1257
+
1258
+ # settings-menu {
1259
+ right : 0 ;
1257
1260
outline : none;
1258
1261
}
1259
1262
1260
- # theme-picker , # settings-menu {
1263
+ .help-button {
1264
+ right : 30px ;
1265
+ font-family : "Fira Sans" , sans-serif;
1266
+ text-align : center;
1267
+ font-size : 17px ;
1268
+ }
1269
+
1270
+ # theme-picker , # settings-menu , .help-button {
1261
1271
padding : 4px ;
1262
1272
width : 27px ;
1263
1273
height : 29px ;
Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ kbd {
489
489
box-shadow-color : # c6cbd1 ;
490
490
}
491
491
492
- # theme-picker , # settings-menu {
492
+ # theme-picker , # settings-menu , . help-button {
493
493
border-color : # 5c6773 ;
494
494
background-color : # 0f1419 ;
495
495
}
@@ -499,7 +499,8 @@ kbd {
499
499
}
500
500
501
501
# theme-picker : hover , # theme-picker : focus ,
502
- # settings-menu : hover , # settings-menu : focus {
502
+ # settings-menu : hover , # settings-menu : focus ,
503
+ .help-button : hover , .help-button : focus {
503
504
border-color : # e0e0e0 ;
504
505
}
505
506
Original file line number Diff line number Diff line change @@ -383,13 +383,14 @@ kbd {
383
383
box-shadow-color : # c6cbd1 ;
384
384
}
385
385
386
- # theme-picker , # settings-menu {
386
+ # theme-picker , # settings-menu , . help-button {
387
387
border-color : # e0e0e0 ;
388
388
background : # f0f0f0 ;
389
389
}
390
390
391
391
# theme-picker : hover , # theme-picker : focus ,
392
- # settings-menu : hover , # settings-menu : focus {
392
+ # settings-menu : hover , # settings-menu : focus ,
393
+ .help-button : hover , .help-button : focus {
393
394
border-color : # ffb900 ;
394
395
}
395
396
Original file line number Diff line number Diff line change @@ -377,13 +377,14 @@ kbd {
377
377
box-shadow-color : # c6cbd1 ;
378
378
}
379
379
380
- # theme-picker , # settings-menu {
380
+ # theme-picker , # settings-menu , . help-button {
381
381
border-color : # e0e0e0 ;
382
382
background-color : # fff ;
383
383
}
384
384
385
385
# theme-picker : hover , # theme-picker : focus ,
386
- # settings-menu : hover , # settings-menu : focus {
386
+ # settings-menu : hover , # settings-menu : focus ,
387
+ .help-button : hover , .help-button : focus {
387
388
border-color : # 717171 ;
388
389
}
389
390
You can’t perform that action at this time.
0 commit comments