1
1
.leaflet-control-geocoder {
2
2
background : white;
3
- box-shadow : 0 1px 7px rgba (0 , 0 , 0 , 0.65 );
4
- -webkit-border-radius : 4px ;
5
- border-radius : 4px ;
6
- line-height : 26px ;
7
- overflow : hidden;
8
3
}
9
-
10
- .leaflet-touch .leaflet-control-geocoder {
11
- box-shadow : none;
12
- border : 2px solid rgba (0 , 0 , 0 , 0.2 );
13
- background-clip : padding-box;
14
- line-height : 30px ;
4
+ .leaflet-control-geocoder a {
5
+ border-bottom-left-radius : 4px ;
6
+ border-bottom-right-radius : 4px ;
7
+ border-bottom : none;
8
+ display : inline-block;
9
+ }
10
+ .leaflet-control-geocoder a : hover {
11
+ border-bottom : none;
12
+ display : inline-block;
15
13
}
16
14
17
15
.leaflet-control-geocoder-form {
18
- display : inline;
16
+ display : none;
17
+ vertical-align : middle;
19
18
}
20
-
21
- .leaflet-control-geocoder-form input , .leaflet-control-geocoder-form ul , .leaflet-control-geocoder-error {
22
- border : 0 ;
23
- color : transparent;
24
- background : white;
19
+ .leaflet-control-geocoder-expanded .leaflet-control-geocoder-form {
20
+ display : inline-block;
25
21
}
26
-
27
22
.leaflet-control-geocoder-form input {
28
- font-size : 16px ;
29
- width : 0 ;
30
- transition : width 0.125s ease-in;
31
- }
32
-
33
- .leaflet-control-geocoder-form input {
34
- padding : 0px ;
35
- }
36
-
37
- .leaflet-touch .leaflet-control-geocoder-form input {
38
- font-size : 22px ;
23
+ font-size : 120% ;
24
+ border : 0 ;
25
+ background-color : transparent;
26
+ width : 246px ;
39
27
}
40
-
41
- .leaflet-control-geocoder-icon {
28
+ /*.leaflet-control-geocoder-icon {
42
29
width: 26px;
43
30
height: 26px;
44
31
background-image: url(images/geocoder.png);
45
32
background-repeat: no-repeat;
46
33
background-position: center;
47
34
float: right;
48
35
cursor: pointer;
49
- }
36
+ }*/
50
37
51
- .leaflet-touch .leaflet-control-geocoder-icon {
38
+ /* .leaflet-touch .leaflet-control-geocoder-icon {
52
39
margin-top: 2px;
53
40
width: 30px;
54
- }
41
+ }*/
55
42
43
+ .leaflet-control-geocoder-icon {
44
+ background-image : url (images/geocoder.png);
45
+ background-repeat : no-repeat;
46
+ background-position : center;
47
+ }
56
48
.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon {
57
49
background-image : url (images/throbber.gif);
58
50
}
59
51
60
- .leaflet-control-geocoder-expanded input , .leaflet-control-geocoder-error {
61
- width : 226px ;
62
- margin : 0 0 0 4px ;
63
- padding : 0 0 0 4px ;
64
- vertical-align : middle;
65
- color : # 000 ;
52
+ .leaflet-control-geocoder-form-no-error {
53
+ display : none;
66
54
}
67
55
68
56
.leaflet-control-geocoder-form input : focus {
73
61
display : none;
74
62
}
75
63
76
- .leaflet-control-geocoder-form-no-error {
77
- display : none;
78
- }
79
64
80
65
.leaflet-control-geocoder-error {
81
66
margin-top : 8px ;
82
67
display : block;
83
68
color : # 444 ;
84
69
}
85
70
86
- ul .leaflet-control-geocoder-alternatives {
87
- width : 260px ;
88
- overflow : hidden;
89
- text-overflow : ellipsis;
90
- white-space : nowrap;
91
- list-style : none;
92
- padding : 0 ;
93
- transition : height 0.125s ease-in;
71
+ .leaflet-control-geocoder-alternatives {
72
+ display : block;
73
+ width : 272px ;
74
+ list-style : none;
75
+ padding : 0 ;
76
+ margin : 0 ;
94
77
}
95
78
96
79
.leaflet-control-geocoder-alternatives-minimized {
97
- width : 0 !important ;
80
+ display : none ;
98
81
height : 0 ;
99
- overflow : hidden;
100
- margin : 0 ;
101
- padding : 0 ;
102
82
}
103
-
104
83
.leaflet-control-geocoder-alternatives li {
105
- width : 100% ;
84
+ white-space : nowrap;
85
+ display : block;
106
86
overflow : hidden;
87
+ padding : 5px 8px ;
107
88
text-overflow : ellipsis;
108
- border-bottom : 1px solid # eee ;
109
- padding : 0 ;
89
+ border-bottom : 1px solid # ccc ;
90
+ cursor : pointer ;
110
91
}
111
-
112
-
113
92
.leaflet-control-geocoder-alternatives li : last-child {
114
93
border-bottom : none;
115
94
}
116
-
117
- .leaflet-control-geocoder-alternatives a {
118
- display : block;
119
- text-decoration : none;
120
- color : black;
121
- padding : 6px 8px 16px 6px ;
122
- font-size : 14px ;
123
- line-height : 1 ;
124
- font-weight : bold;
95
+ .leaflet-control-geocoder-alternatives li : hover , .leaflet-control-geocoder-selected {
96
+ background-color : # f5f5f5 ;
125
97
}
126
-
127
- .leaflet-touch .leaflet-control-geocoder-alternatives a {
128
- font-size : 18px ;
129
- }
130
-
131
- .leaflet-control-geocoder-alternatives a : hover , .leaflet-control-geocoder-selected {
132
- background-color : # ddd ;
133
- }
134
-
135
98
.leaflet-control-geocoder-address-detail {
136
- font-size : 12px ;
137
- font-weight : normal;
99
+
138
100
}
139
-
140
101
.leaflet-control-geocoder-address-context {
141
102
color : # 666 ;
142
- font-size : 12px ;
143
- font-weight : lighter;
144
103
}
0 commit comments