@@ -159,7 +159,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
159
159
use:trap
160
160
>
161
161
<div class =" search-box" >
162
- <div style = " background: var(--background); padding: 0.5rem " >
162
+ <div class = " controls " >
163
163
<input
164
164
use:forcefocus
165
165
onkeydown ={(e ) => {
@@ -177,12 +177,12 @@ It appears when the user clicks on the `Search` component or presses the corresp
177
177
aria-label ={placeholder }
178
178
spellcheck =" false"
179
179
/>
180
- </div >
181
180
182
- <button aria-label ="Close" onclick ={close }>
183
- <!-- <Icon name="close" /> -->
184
- <kbd >Esc</kbd >
185
- </button >
181
+ <button class ="raised" aria-label ="Close" onclick ={close }>
182
+ <!-- <Icon name="close" /> -->
183
+ <kbd >Esc</kbd >
184
+ </button >
185
+ </div >
186
186
187
187
<span id =" search-description" class =" visually-hidden" >
188
188
{#if search_description }
@@ -302,16 +302,22 @@ It appears when the user clicks on the `Search` component or presses the corresp
302
302
}
303
303
}
304
304
305
+ .controls {
306
+ background : var (--background );
307
+ padding : 0.5rem ;
308
+ display : flex ;
309
+ gap : 1rem ;
310
+ }
311
+
305
312
input {
306
313
font : var (--sk-font-ui-large );
307
- width : 100 % ;
308
- padding : calc ( var (--padding ) - 0.5 rem ) 5 rem calc (var (--padding ) - 0.5rem ) var ( --padding );
314
+ flex : 1 ;
315
+ padding : var (--padding ) calc (var (--padding ) - 0.5rem );
309
316
height : 6rem ;
310
317
border : none ;
311
- border-bottom : 1px solid var (--sk-back-3 );
312
318
flex-shrink : 0 ;
313
- background : var (--sk-back-3 );
314
319
color : var (--sk-text-1 );
320
+ border-bottom : 1px solid var (--sk-back-6 );
315
321
316
322
&::selection {
317
323
background-color: var (--sk-back-translucent );
@@ -323,29 +329,31 @@ It appears when the user clicks on the `Search` component or presses the corresp
323
329
}
324
330
325
331
&:focus-visible {
326
- outline-offset : -3 px ;
332
+ outline-offset : -2 px ;
327
333
}
328
334
}
329
335
330
336
button [aria-label = ' Close' ] {
331
- --size : 2rem ;
332
- position : absolute ;
333
- top : 0.5rem ;
334
- right : 0 ;
335
- width : 5rem ;
336
- height : 6rem ;
337
+ height : 100% ;
338
+ aspect-ratio : 1 ;
337
339
background : none ;
338
340
color : var (--sk-text-2 );
339
- opacity : 0.3 ;
340
341
341
342
&:focus-visible {
342
343
opacity: 1 ;
343
344
outline-offset : -3px ;
344
345
}
345
346
346
347
kbd {
348
+ display : flex ;
349
+ align-items : center ;
350
+ justify-content : center ;
347
351
text-transform : uppercase ;
348
- font : var (--sk-font-ui-small );
352
+ background : none ;
353
+ font : var (--sk-font-ui-medium );
354
+ color : var (--sk-text-4 );
355
+ width : 100% ;
356
+ height : 100% ;
349
357
}
350
358
}
351
359
0 commit comments