File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 11
11
height : 1.8rem ;
12
12
font-family : Glober;
13
13
width : 20em ;
14
+ font-size : 14px ;
15
+ padding : 0 8px ;
14
16
}
15
17
16
18
# multi-page-nav .search # search-input ::placeholder {
17
19
color : # 999 ;
20
+ opacity : 1 ;
18
21
}
19
22
20
23
# multi-page-nav .search : focus-within # search-input {
24
27
color : # 000 ;
25
28
}
26
29
30
+ .theme--documenter-dark # multi-page-nav .search : focus-within # search-input {
31
+ background-color : # 202227 ;
32
+ color : # eee ;
33
+ }
34
+
27
35
# multi-page-nav .search : focus-within .suggestions {
28
36
display : block;
29
37
}
49
57
overflow-y : auto;
50
58
}
51
59
60
+ .theme--documenter-dark # multi-page-nav .suggestions {
61
+ background : # 2e3138 ;
62
+ border : 1px solid # 5e6d6f ;
63
+ }
64
+
65
+ .theme--documenter-dark # multi-page-nav .suggestion a : hover ,
66
+ .theme--documenter-dark # multi-page-nav .suggestion a : focus {
67
+ background-color : # 202227 ;
68
+ }
69
+
52
70
# multi-page-nav .suggestions .suggestion {
53
71
line-height : 1.4 ;
54
72
border-radius : 4px ;
66
84
}
67
85
68
86
# multi-page-nav .suggestion a : hover ,
69
- .suggestion a : focus {
87
+ # multi-page-nav .suggestion a : focus {
70
88
background-color : # eee ;
71
89
}
72
90
Original file line number Diff line number Diff line change 155
155
registerSearchListener ( )
156
156
157
157
document . body . addEventListener ( 'keydown' , ev => {
158
- if ( ev . key === '/' ) {
158
+ if ( document . activeElement === document . body && ( ev . key === '/' || ev . key === 's' ) ) {
159
159
document . getElementById ( 'search-input' ) . focus ( )
160
160
ev . preventDefault ( )
161
161
}
Original file line number Diff line number Diff line change 1
1
// custom search widget
2
2
( function ( ) {
3
3
function initialize ( ) {
4
- stork . register ( " multidocumenter" , " /stork.st" )
4
+ stork . register ( ' multidocumenter' , ' /stork.st' )
5
5
6
6
document . body . addEventListener ( 'keydown' , ev => {
7
- if ( ev . key === '/' ) {
7
+ if ( document . activeElement === document . body && ( ev . key === '/' || ev . key === 's' ) ) {
8
8
document . getElementById ( 'search-input' ) . focus ( )
9
9
ev . preventDefault ( )
10
10
}
You can’t perform that action at this time.
0 commit comments