-
Notifications
You must be signed in to change notification settings - Fork 0
/
_search.scss
50 lines (43 loc) · 927 Bytes
/
_search.scss
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
$_search-icon-size: 1rem;
.search {
margin-left: auto;
max-width: 20rem;
position: relative;
width: 100%;
&__label {
margin: 0;
}
&__input {
border-radius: 4px;
margin: 0;
padding-left: $_search-icon-size * 2.5;
padding-right: $_search-icon-size * 2.5;
}
&__eyeglass-icon {
fill: $grey-7;
height: $_search-icon-size;
left: $_search-icon-size;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: $_search-icon-size;
}
&__clear-link {
height: $_search-icon-size;
position: absolute;
right: $_search-icon-size * 0.75;
top: 50%;
transform: translateY(-50%);
width: $_search-icon-size;
}
&__clear-icon {
fill: $grey-5;
height: $_search-icon-size;
position: absolute;
transition: fill $base-duration $base-timing;
width: $_search-icon-size;
&:hover {
fill: $action-color;
}
}
}