File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 3
3
font-size : 16px ;
4
4
}
5
5
6
+ # multi-page-nav .search .search-keybinding {
7
+ float : right;
8
+ width : 0 ;
9
+ transform : translateX (-1em );
10
+ color : # 999 ;
11
+ }
12
+
13
+ # multi-page-nav .search : focus-within .search-keybinding {
14
+ display : none;
15
+ }
16
+
6
17
# multi-page-nav .search # search-input {
7
18
border : 1px solid # 666 ;
8
- border-radius : 3 px ;
19
+ border-radius : 3.2 px ;
9
20
color : # 999 ;
10
21
background-color : unset;
11
22
height : 1.8rem ;
Original file line number Diff line number Diff line change @@ -125,6 +125,13 @@ function inject_html!(parent)
125
125
Dict (" id" => " search-result-container" , " class" => " suggestions hidden" ),
126
126
)
127
127
push! (div. children, suggestions)
128
+ keybinding = Gumbo. HTMLElement {:div} (
129
+ [],
130
+ div,
131
+ Dict (" class" => " search-keybinding" ),
132
+ )
133
+ push! (keybinding. children, Gumbo. HTMLText (keybinding, " /" ))
134
+ push! (div. children, keybinding)
128
135
end
129
136
130
137
function to_json_index (index:: SearchIndex , file)
You can’t perform that action at this time.
0 commit comments