-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch.css
80 lines (66 loc) · 1.39 KB
/
search.css
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@import "fyndiq-styles-colors/colors.css";
.label {
display: inline-block;
padding: 18px;
color: white;
cursor: pointer;
fill: none;
}
.magnifier {
height: 19px;
width: 19px;
stroke: var(--color-border);
transition: stroke .15s;
}
.wrapper {
display: inline-flex;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
transition: background-color .15s ease-out;
height: 56px;
&:hover {
background-color: var(--color-border);
& .magnifier {
stroke: var(--color-black);
}
}
}
/* Nesting is here to force overwriting the hidden styles */
.wrapper .input {
border: none;
padding: 0;
box-shadow: none;
transition: .15s ease-out;
background: transparent;
outline: 0;
/* Hidden styles: 1px is because Safari cannot focus an input with a width of 0 */
width: 1px;
opacity: 0;
}
.wrapperOpen {
background-color: var(--color-white);
border-color: var(--color-border);
box-shadow: 0 0 5px 0 color(var(--color-black) a(10%));
&:hover {
background-color: var(--color-white);
}
/* stylelint-disable-next-line no-descending-specificity */
& .magnifier {
stroke: var(--color-black);
}
& .input {
opacity: 1;
}
&.wrapper--size-m .input {
width: 590px;
}
&.wrapper--size-s .input {
width: 300px;
}
}
.checkboxWrapper {
display: inline-block;
padding: 8px 10px;
font-weight: 300;
}