-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathSearchBar.scss
More file actions
60 lines (49 loc) · 1.31 KB
/
SearchBar.scss
File metadata and controls
60 lines (49 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.navbar__search {
display: none;
align-items: center;
@media (min-width: 1024px) {
display: flex;
}
.navbar__mobile-menu &,
.mobile-search-container & {
display: block !important;
width: 100%;
}
form {
position: relative;
}
.search-icon {
position: absolute;
left: 0.75rem;
top: 50%;
transform: translateY(-50%);
color: var(--muted-foreground);
height: 1rem;
width: 1rem;
}
input {
padding: 0.5rem 1rem 0.5rem 2.5rem;
width: 16rem;
background-color: rgba(var(--card-rgb), 0.5); /* tiny bump */
border: 1px solid rgba(102, 157, 246, 0.267); /* slightly brighter sky blue */
border-radius: 9999px;
color: var(--foreground);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 1px 4px rgba(0, 0, 0, 0.25);
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
input:hover {
background-color: rgba(255, 255, 255, 0.06);
border-color: rgba(96, 165, 250, 0.4);
}
input:focus {
outline: none;
background-color: rgba(255, 255, 255, 0.08);
border-color: rgba(96, 165, 250, 0.6);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.search-error {
margin-top: 0.25rem;
font-size: 0.75rem;
color: #f87171; // red-400
}
}