-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
81 lines (70 loc) · 1.3 KB
/
index.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
81
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body{
background-color:rgb(141, 138, 138);
padding: 0 20px;
}
.wrapper{
max-width: 450px;
margin:150px auto;
}
.wrapper .search-input {
position: relative;
background-color: aliceblue;
width: 100%;
border-radius: 5px;
box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.12);
}
.search-input input{
height: 55px;
width: 100%;
outline: none;
border: none;
border-radius: 5px;
padding: 0px 60px 0 20px;
font-size: 18px;
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}
.search-input .icon {
height: 55px;
width: 55px;
line-height: 55px;
position: absolute;
top:0;
right: 0;
text-align: center;
font-size: 20px;
color:rgb(24, 131, 224);
cursor: pointer;
}
.search-input .autocom-box{
padding: 0;
max-height: 280px;
overflow-y: auto;
opacity: 0;
pointer-events: none;
}
.search-input.active .autocom-box{
padding: 10px 8px;
opacity:1;
pointer-events: auto;
}
.autocom-box li {
list-style: none;
padding: 8px 12px;
width: 100%;
cursor: default;
border-radius: 3px;
display: none;
}
.search-input.active .autocom-box li{
display: block;
}
.autocom-box li:hover{
background-color: rgb(196, 186, 186);
cursor: pointer;
}