-
Notifications
You must be signed in to change notification settings - Fork 73
/
_search.scss
78 lines (66 loc) · 1.56 KB
/
_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
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
/***** Search field *****/
.search {
position: relative;
input[type='search'] {
border: 1px solid $border-color;
box-sizing: border-box;
color: $secondary-text-color;
height: 40px;
padding-left: 40px;
padding-right: 20px;
-webkit-appearance: none;
width: 100%;
border-radius: $border-radius;
transition: 0.2s ease-in-out;
[dir='rtl'] & {
padding-right: 40px;
padding-left: 20px;
}
&:focus {
border: 1px solid $input-focus-color;
color: $text-color;
}
}
&-full input[type='search'] {
height: 60px;
background-color: $primary-shade;
border: none;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12),
0 1px 5px 0 rgba(0, 0, 0, 0.2);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
&:focus {
box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.28), 0 3px 1px -2px rgba(0, 0, 0, 0.12),
0 1px 5px 0 rgba(0, 0, 0, 0.2);
border: none;
}
}
}
.search-icon {
@include vertical-align;
position: absolute;
left: 15px;
z-index: 1;
width: 18px;
height: 18px;
color: $secondary-text-color;
[dir='rtl'] & {
right: 15px;
left: auto;
}
}
zd-autocomplete {
background-color: $primary-shade;
border-radius: $border-radius;
}
zd-autocomplete-multibrand {
border-color: $border-color;
zd-autocomplete-title-multibrand {
color: $brand-color;
}
zd-autocomplete-breadcrumbs-multibrand {
color: $secondary-text-color;
}
&[aria-selected='true'] {
background-color: $secondary-shade;
}
}