File tree Expand file tree Collapse file tree 7 files changed +18
-14
lines changed Expand file tree Collapse file tree 7 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,12 @@ rules.
1313 /* It requires JS to work so no need to display it in this case. */
1414 display : none;
1515}
16+
17+ .sub {
18+ /* The search bar and related controls don't work without JS */
19+ display : none;
20+ }
21+
22+ # theme-picker {
23+ display : none;
24+ }
Original file line number Diff line number Diff line change @@ -255,10 +255,6 @@ details.undocumented > summary::before {
255255 box-shadow : 0 0 0 1px # 148099, 0 0 0 2px transparent;
256256}
257257
258- .search-input : disabled {
259- background-color : # 3e3e3e ;
260- }
261-
262258.module-item .stab ,
263259.import-item .stab {
264260 color : # 000 ;
Original file line number Diff line number Diff line change @@ -219,10 +219,6 @@ details.undocumented > summary::before {
219219 border-color : # 008dfd ;
220220}
221221
222- .search-input : disabled {
223- background-color : # c5c4c4 ;
224- }
225-
226222# crate-search + .search-input : focus {
227223 box-shadow : 0 0 8px 4px # 078dd8 ;
228224}
Original file line number Diff line number Diff line change @@ -209,10 +209,6 @@ details.undocumented > summary::before {
209209 border-color : # 66afe9 ;
210210}
211211
212- .search-input : disabled {
213- background-color : # e6e6e6 ;
214- }
215-
216212# crate-search + .search-input : focus {
217213 box-shadow : 0 0 8px # 078dd8 ;
218214}
Original file line number Diff line number Diff line change @@ -263,7 +263,9 @@ function hideThemeButtonState() {
263263 search_input . placeholder = searchState . input . origPlaceholder ;
264264 } ) ;
265265
266- search_input . removeAttribute ( 'disabled' ) ;
266+ if ( search_input . value != '' ) {
267+ loadSearch ( ) ;
268+ }
267269
268270 // `crates{version}.js` should always be loaded before this script, so we can use it
269271 // safely.
Original file line number Diff line number Diff line change 8585 < input {# -#}
8686 class ="search-input " {# -#}
8787 name ="search " {# -#}
88- disabled {# -#}
8988 autocomplete ="off " {# -#}
9089 spellcheck ="false " {# -#}
9190 placeholder ="Click or press ‘S’ to search, ‘?’ for more options… " {# -#}
Original file line number Diff line number Diff line change 1+ // When JavaScript is disabled, we hide the search bar, because it
2+ // can't be used without JS.
3+ javascript: false
4+
5+ goto: file://|DOC_PATH|/test_docs/struct.Foo.html
6+ assert-css: (".sub", {"display": "none"})
You can’t perform that action at this time.
0 commit comments