-
Notifications
You must be signed in to change notification settings - Fork 326
/
geosuggest.css
72 lines (71 loc) · 1.43 KB
/
geosuggest.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
/**
* The geosuggest module
* NOTE: duplicated font-sizes' are for browsers which don't support rem (only IE 8)
*/
.geosuggest {
font-size: 18px;
font-size: 1rem;
position: relative;
width: 50%;
margin: 1em auto;
text-align: left;
}
.geosuggest__input {
width: 100%;
border: 2px solid transparent;
box-shadow: 0 0 1px #3d464d;
padding: .5em 1em;
-webkit-transition: border 0.2s, box-shadow 0.2s;
transition: border 0.2s, box-shadow 0.2s;
}
.geosuggest__input:focus {
border-color: #267dc0;
box-shadow: 0 0 0 transparent;
}
.geosuggest__suggests {
position: absolute;
top: 100%;
left: 0;
right: 0;
max-height: 25em;
padding: 0;
margin-top: -1px;
background: #fff;
border: 2px solid #267dc0;
border-top-width: 0;
overflow-x: hidden;
overflow-y: auto;
list-style: none;
z-index: 5;
-webkit-transition: max-height 0.2s, border 0.2s;
transition: max-height 0.2s, border 0.2s;
}
.geosuggest__suggests--hidden {
max-height: 0;
overflow: hidden;
border-width: 0;
}
/**
* A geosuggest item
*/
.geosuggest__item {
font-size: 18px;
font-size: 1rem;
padding: .5em .65em;
cursor: pointer;
}
.geosuggest__item:hover,
.geosuggest__item:focus {
background: #f5f5f5;
}
.geosuggest__item--active {
background: #267dc0;
color: #fff;
}
.geosuggest__item--active:hover,
.geosuggest__item--active:focus {
background: #ccc;
}
.geosuggest__item__matched-text {
font-weight: bold;
}