Skip to content

Commit 3b88272

Browse files
committed
start tweaking styles
1 parent 82e3b82 commit 3b88272

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

packages/site-kit/src/lib/search/SearchBox.svelte

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -272,26 +272,21 @@ It appears when the user clicks on the `Search` component or presses the corresp
272272
border: none;
273273
border-bottom: 1px solid var(--sk-back-3);
274274
flex-shrink: 0;
275-
background: var(--sk-back-2);
275+
background: var(--sk-back-3);
276276
color: var(--sk-text-1);
277277
278278
&::selection {
279279
background-color: var(--sk-back-translucent);
280280
}
281281
282282
&::placeholder {
283-
color: var(--sk-text-3);
283+
color: var(--sk-text-2);
284284
opacity: 0.3;
285285
}
286286
287287
&:focus-visible {
288-
background: var(--sk-theme-2);
289-
color: white;
290-
outline: none;
291-
}
292-
293-
&:focus-visible::placeholder {
294-
color: rgba(255, 255, 255, 0.5);
288+
border-radius: var(--sk-border-radius);
289+
outline-offset: -3px;
295290
}
296291
}
297292
@@ -303,16 +298,13 @@ It appears when the user clicks on the `Search` component or presses the corresp
303298
width: 5rem;
304299
height: 5rem;
305300
background: none;
301+
border-radius: var(--sk-border-radius);
306302
color: var(--sk-text-2);
303+
opacity: 0.3;
307304
308305
&:focus-visible {
309-
background: var(--sk-theme-2);
310-
color: var(--sk-back-1);
311-
outline: none;
312-
}
313-
314-
input:focus-visible + & {
315-
color: var(--sk-back-1);
306+
opacity: 1;
307+
outline-offset: -3px;
316308
}
317309
}
318310
@@ -363,6 +355,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
363355
364356
.info {
365357
padding: 1rem;
358+
font-family: var(--sk-font-ui);
366359
font-size: 1.2rem;
367360
font-weight: normal;
368361
text-transform: uppercase;

0 commit comments

Comments
 (0)