forked from enkidevs/react-search-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-search-input.css
46 lines (42 loc) · 1.19 KB
/
react-search-input.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
.react-search-input {
padding: 10px 10px;
height: 52px;
position: relative;
}
.react-search-input::before {
content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAQJJREFUKBWVkr2uQUEUhf3ET6GRaC5aFRoJKrf1BKpb8SwqovYGXkCj00k0QnRKEYkILYobvpUYmeMMyVnJl7P3mjN7Zu9zwiGv2qRFyMMSRrAFp6JPN8XzBj+wgDkUYAg7WINTYdwpDECxrRLJHeq2accdkgm8bzTvNAg2EDOGeUYI1KNO1gkuzTA1g8T7ojbn4ONQWPuHPWgeHmnzCqoe15tkSNPgPEAn68oVcOmA2XMtGK9FoE/VhOTTVNExqLCGZnxCv2pYauEC6lF0oQxX6IOvb7yX9NPEQafan+aPXDdQC18LsO6Tip5BBY6gIQaSbnMCFRCBZRcIvFkbsvCr4AFGOCxQy+JdGQAAAABJRU5ErkJggg==');
display: block;
position: absolute;
width: 15px;
z-index: 3;
height: 15px;
font-size: 20px;
top: 11px;
left: 16px;
line-height: 32px;
opacity: 0.6;
}
.react-search-input > input {
width: 100%;
font-size: 18px;
border: none;
line-height: 22px;
padding: 5px 10px 5px 25px;
height: 32px;
position: relative;
}
.react-search-input > input:focus {
outline: none;
}
.react-search-input--clearable {
position: absolute;
top: 50%;
right: 6px;
transform: translateY(-50%);
padding: 2px;
border: none;
background: none;
}
.react-search-input--clearable svg {
display: block;
}