@@ -263,10 +263,46 @@ It appears when the user clicks on the `Search` component or presses the corresp
263
263
z-index : 100 ;
264
264
}
265
265
266
+ .modal {
267
+ position : fixed ;
268
+ display : flex ;
269
+ justify-content : center ;
270
+ align-items : center ;
271
+ pointer-events : none ;
272
+ left : 0 ;
273
+ top : 0 ;
274
+ width : 100% ;
275
+ height : 100% ;
276
+ z-index : 9999 ;
277
+ }
278
+
279
+ .search-box {
280
+ --padding : 1rem ;
281
+ position : relative ;
282
+ height : calc (100% - 2rem );
283
+ width : calc (100vw - 2rem );
284
+ max-width : 64rem ;
285
+ max-height : 64rem ;
286
+ filter : drop-shadow (2px 4px 16px rgba (0 , 0 , 0 , 0.2 ));
287
+ border-radius : var (--sk-border-radius );
288
+ display : flex ;
289
+ flex-direction : column ;
290
+ overflow : hidden ;
291
+ font-family : var (--sk-font-ui );
292
+
293
+ @media (min-width : 800px ) {
294
+ --padding : 1.6rem ;
295
+ }
296
+
297
+ & > * {
298
+ pointer-events : all ;
299
+ }
300
+ }
301
+
266
302
input {
267
303
font-size : var (--sk-text-l );
268
304
width : 100% ;
269
- padding : 1 rem 5rem 0.5 rem 1 rem ;
305
+ padding : var ( --padding ) 5rem var ( --padding ) var ( --padding ) ;
270
306
height : 6rem ;
271
307
border : none ;
272
308
border-bottom : 1px solid var (--sk-back-3 );
@@ -315,37 +351,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
315
351
margin : 0 ;
316
352
}
317
353
318
- .modal {
319
- position : fixed ;
320
- display : flex ;
321
- justify-content : center ;
322
- align-items : center ;
323
- pointer-events : none ;
324
- left : 0 ;
325
- top : 0 ;
326
- width : 100% ;
327
- height : 100% ;
328
- z-index : 9999 ;
329
- }
330
-
331
- .search-box {
332
- position : relative ;
333
- height : calc (100% - 2rem );
334
- width : calc (100vw - 2rem );
335
- max-width : 64rem ;
336
- max-height : 64rem ;
337
- filter : drop-shadow (2px 4px 16px rgba (0 , 0 , 0 , 0.2 ));
338
- border-radius : var (--sk-border-radius );
339
- display : flex ;
340
- flex-direction : column ;
341
- overflow : hidden ;
342
- font-family : var (--sk-font-ui );
343
-
344
- & > * {
345
- pointer-events : all ;
346
- }
347
- }
348
-
349
354
.results {
350
355
overflow : auto ;
351
356
overscroll-behavior-y : none ;
@@ -358,7 +363,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
358
363
}
359
364
360
365
.info {
361
- padding : 1 rem ;
366
+ padding : var ( --padding ) ;
362
367
font-family : var (--sk-font-ui );
363
368
font-size : 1.2rem ;
364
369
font-weight : normal ;
@@ -376,7 +381,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
376
381
display : block ;
377
382
text-decoration : none ;
378
383
line-height : 1 ;
379
- padding : 1rem 5 rem 1 rem 1rem ;
384
+ padding : 1rem calc ( 4 rem + var ( --padding )) 1rem var ( --padding ) ;
380
385
381
386
&:hover {
382
387
background : rgba (0 , 0 , 0 , 0.05 );
0 commit comments