Skip to content

Commit d3d5ad0

Browse files
authored
nicer search bar (#104)
* nicer search bar * unnecessary
1 parent 9954c0a commit d3d5ad0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,17 @@ Renders a search widget which when clicked (or the corresponding keyboard shortc
5858
input {
5959
position: relative;
6060
padding: 0.5em 0.5em 0.4em 2em;
61-
border: 1px solid var(--sk-back-translucent);
61+
border: none;
6262
font-family: inherit;
6363
font-size: 1.4rem;
64-
/* text-align: center; */
6564
appearance: none;
6665
-webkit-appearance: none;
6766
width: 100%;
6867
height: 4.2rem;
6968
border-radius: 3.5rem;
7069
background:
7170
no-repeat 1rem 50% / 1em 1em url(../icons/search.svg),
72-
var(--sk-back-3);
71+
var(--sk-back-4);
7372
color: var(--sk-text-3);
7473
}
7574
@@ -79,7 +78,7 @@ Renders a search widget which when clicked (or the corresponding keyboard shortc
7978
8079
input::placeholder {
8180
font-size: 1.2rem;
82-
text-transform: uppercase;
81+
text-transform: lowercase;
8382
color: var(--sk-text-3);
8483
transform: translateY(-1px);
8584
}
@@ -99,13 +98,9 @@ Renders a search widget which when clicked (or the corresponding keyboard shortc
9998
10099
kbd {
101100
display: none;
102-
background: var(--sk-back-2);
103-
border: 1px solid var(--sk-back-translucent);
104-
padding: 0.2rem 0.2rem 0rem 0.2rem;
105101
color: var(--sk-text-3);
106102
font-size: inherit;
107103
font-family: inherit;
108-
border-radius: 2px;
109104
}
110105
111106
@media (min-width: 800px) {
@@ -141,4 +136,10 @@ Renders a search widget which when clicked (or the corresponding keyboard shortc
141136
opacity: 1;
142137
}
143138
}
139+
140+
@media (min-width: 1240px) {
141+
.search-container {
142+
width: 32rem;
143+
}
144+
}
144145
</style>

0 commit comments

Comments
 (0)