@@ -156,6 +156,10 @@ div[selected] > .scaladoc-searchbar-inkuire-package {
156
156
.search span : hover {
157
157
fill : var (--link-hover-fg );
158
158
}
159
+
160
+ # scaladoc-searchbar span .pull-right {
161
+ display : none;
162
+ }
159
163
}
160
164
161
165
# scaladoc-search {
@@ -177,12 +181,11 @@ div[selected] > .scaladoc-searchbar-inkuire-package {
177
181
left : calc (5% + var (--side-width ));
178
182
z-index : 5 ;
179
183
width : calc (90% - var (--side-width ));
180
- box-shadow : 0 2px 16 px 0 rgba ( 0 , 42 , 76 , 0.15 );
184
+ box-shadow : 2 px 2px 8 px 0 var ( --shadow );
181
185
font-size : 13px ;
182
186
font-family : system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif;
183
187
background-color : var (--leftbar-bg );
184
188
color : var (--leftbar-fg );
185
- box-shadow : 0 0 2px var (--shadow );
186
189
}
187
190
188
191
# scaladoc-searchbar-input {
@@ -206,45 +209,74 @@ div[selected] > .scaladoc-searchbar-inkuire-package {
206
209
overflow : auto;
207
210
}
208
211
209
- .scaladoc-searchbar-result {
212
+ .scaladoc-searchbar-row {
213
+ display : flex;
210
214
background-color : var (--leftbar-bg );
211
215
color : var (--leftbar-fg );
212
216
line-height : 24px ;
213
217
padding : 4px 10px 4px 10px ;
214
218
}
215
219
216
- .scaladoc-searchbar-result-row {
217
- display : flex;
220
+ .scaladoc-searchbar-row .hidden {
221
+ display : none;
222
+ }
223
+
224
+ .scaladoc-searchbar-row [divider ] {
225
+ border-top : solid 1px var (--leftbar-border );
218
226
}
219
227
220
- .scaladoc-searchbar-result .micon {
228
+ .scaladoc-searchbar-row .micon {
221
229
height : 16px ;
222
230
width : 16px ;
223
231
margin : 4px 8px 0px 0px ;
224
232
}
225
233
226
- .scaladoc-searchbar-result : first-of-type {
227
- margin-top : 10px ;
228
- }
229
-
230
- .scaladoc-searchbar-result [selected ] {
234
+ .scaladoc-searchbar-row [selected ] {
231
235
background-color : var (--leftbar-hover-bg );
232
236
color : var (--leftbar-hover-fg );
233
237
}
234
238
235
- .scaladoc-searchbar-result a {
236
- /* for some reason, with display:block if there's a wrap between the
237
- * search result text and the location span, the dead space to the
238
- * left of the location span doesn't get treated as part of the block,
239
- * which defeats the purpose of making the <a> a block element.
240
- * But inline-block with width:100% works as desired.
241
- */
242
- display : inline-block;
243
- width : 100% ;
239
+ .scaladoc-searchbar-row [result ] {
240
+ flex-direction : column;
241
+ }
242
+
243
+ .scaladoc-searchbar-row [result ] a {
244
244
text-indent : -20px ;
245
245
padding-left : 20px ;
246
246
}
247
247
248
+ .scaladoc-searchbar-row [loadmore ] {
249
+ align-items : center;
250
+ cursor : pointer;
251
+ }
252
+
253
+ .scaladoc-searchbar-row [loadmore ] > a {
254
+ display : flex;
255
+ align-items : center;
256
+ width : 100% ;
257
+ }
258
+
259
+ .scaladoc-searchbar-row [loadmore ] .i {
260
+ margin-left : 4px ;
261
+ margin-right : 4px ;
262
+ }
263
+
264
+ .searchbar-hints {
265
+ padding-top : 5vh ;
266
+ padding-bottom : 5vh ;
267
+ padding-left : 5vw ;
268
+ padding-right : 5vw ;
269
+ display : flex;
270
+ flex-direction : column;
271
+ align-items : center;
272
+ justify-content : center;
273
+ }
274
+
275
+ .searchbar-hints-list {
276
+ font-size : medium;
277
+ line-height : 2em ;
278
+ }
279
+
248
280
# searchBar {
249
281
display : inline-flex;
250
282
}
0 commit comments