File tree 2 files changed +20
-4
lines changed 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 307
307
# searchPlaceholder {
308
308
position : absolute;
309
309
pointer-events : none;
310
- top : 5px ;
311
- left : 5px ;
310
+ height : 100% ;
311
+ display : flex;
312
+ align-items : center;
313
+ padding-left : 5px ;
314
+ }
315
+
316
+ # searchPlaceholderTextMobile {
317
+ display : none;
312
318
}
313
319
314
320
# dotsPopover : before {
797
803
display : inline-block;
798
804
min-width : calc (100% - 2.8rem );
799
805
}
806
+ # searchPlaceholderText {
807
+ display : none;
808
+ }
809
+ # searchPlaceholderTextMobile {
810
+ display : inline;
811
+ }
800
812
}
801
813
.banner {
802
814
background-color : orange;
994
1006
</ div >
995
1007
< div class ="flex-right " style ="padding-top: 0.5rem;overflow:visible; ">
996
1008
< div class ="search-container " style ="position:relative; ">
997
- < span id ="searchPlaceholder "> <!-- populated by setPrefSlashSearch --> </ span >
1009
+ < div id ="searchPlaceholder ">
1010
+ < span id ="searchPlaceholderText "> <!-- populated by setPrefSlashSearch --> </ span >
1011
+ < span id ="searchPlaceholderTextMobile "> Search</ span >
1012
+ </ div >
998
1013
< input type ="search " class ="search " id ="search " autocomplete ="off " spellcheck ="false " disabled >
999
1014
< div id ="dotsPopover ">
1000
1015
Use spaces instead of dots. See $resource for more info.
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ var scrollHistory = {};
80
80
const domSearchKeys = document . getElementById ( "searchKeys" ) ;
81
81
const domPrefsModal = document . getElementById ( "prefsModal" ) ;
82
82
const domSearchPlaceholder = document . getElementById ( "searchPlaceholder" ) ;
83
+ const domSearchPlaceholderText = document . getElementById ( "searchPlaceholderText" ) ;
83
84
const sourceFileUrlTemplate = "src/{{mod}}/{{file}}.html#L{{line}}"
84
85
const domLangRefLink = document . getElementById ( "langRefLink" ) ;
85
86
@@ -4739,7 +4740,7 @@ Happy writing!
4739
4740
domPrefSlashSearch . checked = enabled ;
4740
4741
const searchKeys = enabled ? "<kbd>/</kbd> or <kbd>s</kbd>" : "<kbd>s</kbd>" ;
4741
4742
domSearchKeys . innerHTML = searchKeys ;
4742
- domSearchPlaceholder . innerHTML = searchKeys + " to search, <kbd>?</kbd> for more options" ;
4743
+ domSearchPlaceholderText . innerHTML = searchKeys + " to search, <kbd>?</kbd> for more options" ;
4743
4744
}
4744
4745
} ) ( ) ;
4745
4746
You can’t perform that action at this time.
0 commit comments