forked from EbrahimKaram/Lebanon-Districts-D3-Map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautocomplete.css
45 lines (37 loc) · 890 Bytes
/
autocomplete.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
.autocomplete {
/*the container must be positioned relative:*/
position: relative;
display: inline-block;
width: inherit;
}
input[type=submit] {
background-color: DodgerBlue;
color: #fff;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 100;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
width: inherit;
}
.autocomplete-items div {
padding: 4px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #ffffff;
}
.autocomplete-items div:hover {
/*when hovering an item:*/
background-color: #e9e9e9;
}
.autocomplete-active {
/*when navigating through the items using the arrow keys:*/
background-color: DodgerBlue !important;
color: #ffffff;
}