blob: ac90ea7265fa2fdd935a0a53bcaad5c4327fc18e (
plain)
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
|
.autocomplete {
position: relative;
margin-bottom: 4px;
}
.autocomplete input[type=text],
.autocomplete .matches {
width: 400px;
}
.autocomplete div {
background: white;
cursor: pointer;
}
.autocomplete .matches {
position: absolute;
top: 100%;
left: 0;
border: 1px solid #888;
max-height: 220px;
overflow-y: auto;
z-index: 1;
}
.autocomplete .matches div {
padding: 3px;
}
.autocomplete .matches div:nth-child(even) {
background: #eee;
}
.autocomplete .matches div:nth-child(odd) {
background: #fff;
}
.autocomplete .matches div:nth-child(even).selected,
.autocomplete .matches div:nth-child(odd).selected {
color: #fff;
background: #000;
cursor: pointer;
}
.autocomplete .selected {
background: rgba(128,128,128,0.2);
}
|