mapbox-rails 1.6.1 → 1.6.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mapbox-rails might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/mapbox-rails/remote_resource_loader.rb +10 -10
- data/lib/mapbox-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/mapbox.css.scss +924 -739
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b966313b34fea627e72f73bcbfce0de360cf49b
|
4
|
+
data.tar.gz: 6032adcf31e14eedbc1fc1a5c15e03948d97c8da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5b8be3980b70cbab57e985be200642d249615b4e7466676d1ec4268e3d670058083ee4faa91317c581407b7e8f59c733aae3e7e294b9fb40c189f4ae7ce85c0
|
7
|
+
data.tar.gz: 819e6da827f6897cfe9bc105e95296984a1affe701e385c9c09e59f965dc4230bc4e28ca7c8698d47514398d62c96dd2dd66d1403da19040c8fd26da0d62ec3e
|
@@ -17,19 +17,19 @@ class RemoteResourceLoader < Thor
|
|
17
17
|
get "http://api.tiles.mapbox.com/mapbox.js/v1.6.1/images/icons-ffffff@2x.png", "images/icons-ffffff@2x.png"
|
18
18
|
end
|
19
19
|
|
20
|
-
desc 'convert css to
|
20
|
+
desc 'convert css to scss file', 'convert css to scss file by sass-convert'
|
21
21
|
def convert
|
22
22
|
self.destination_root = 'vendor/assets'
|
23
23
|
inside destination_root do
|
24
|
-
run('sass-convert -F css -T
|
25
|
-
gsub_file 'stylesheets/mapbox.css.
|
26
|
-
"image-url('
|
27
|
-
gsub_file 'stylesheets/mapbox.css.
|
28
|
-
"image-url('
|
29
|
-
gsub_file 'stylesheets/mapbox.css.
|
30
|
-
"image-url('
|
31
|
-
gsub_file 'stylesheets/mapbox.css.
|
32
|
-
"image-url('
|
24
|
+
run('sass-convert -F css -T scss stylesheets/mapbox.css stylesheets/mapbox.css.scss')
|
25
|
+
gsub_file 'stylesheets/mapbox.css.scss', 'url(./images/icons-000000.png)',
|
26
|
+
"image-url('icons-000000.png')"
|
27
|
+
gsub_file 'stylesheets/mapbox.css.scss', 'url(./images/icons-ffffff.png)',
|
28
|
+
"image-url('icons-ffffff.png')"
|
29
|
+
gsub_file 'stylesheets/mapbox.css.scss', 'url(./images/icons-000000@2x.png)',
|
30
|
+
"image-url('icons-000000@2x.png')"
|
31
|
+
gsub_file 'stylesheets/mapbox.css.scss', 'url(./images/icons-ffffff@2x.png)',
|
32
|
+
"image-url('icons-ffffff@2x.png')"
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
data/lib/mapbox-rails/version.rb
CHANGED
@@ -1,763 +1,948 @@
|
|
1
|
-
/* general typography
|
2
|
-
|
3
|
-
.leaflet-container
|
4
|
-
background: #fff
|
5
|
-
font: 15px/25px 'Helvetica Neue', Arial, Helvetica, sans-serif
|
6
|
-
color: #404040
|
7
|
-
color: rgba(0, 0, 0, 0.75)
|
8
|
-
outline: 0
|
9
|
-
overflow: hidden
|
10
|
-
-ms-touch-action: none
|
11
|
-
*
|
12
|
-
-webkit-box-sizing: border-box
|
13
|
-
-moz-box-sizing: border-box
|
14
|
-
box-sizing: border-box
|
15
|
-
&:after, &:before
|
16
|
-
-webkit-box-sizing: border-box
|
17
|
-
-moz-box-sizing: border-box
|
18
|
-
box-sizing: border-box
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
.leaflet-
|
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
|
-
|
1
|
+
/* general typography */
|
2
|
+
|
3
|
+
.leaflet-container {
|
4
|
+
background: #fff;
|
5
|
+
font: 15px/25px 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
6
|
+
color: #404040;
|
7
|
+
color: rgba(0, 0, 0, 0.75);
|
8
|
+
outline: 0;
|
9
|
+
overflow: hidden;
|
10
|
+
-ms-touch-action: none;
|
11
|
+
* {
|
12
|
+
-webkit-box-sizing: border-box;
|
13
|
+
-moz-box-sizing: border-box;
|
14
|
+
box-sizing: border-box;
|
15
|
+
&:after, &:before {
|
16
|
+
-webkit-box-sizing: border-box;
|
17
|
+
-moz-box-sizing: border-box;
|
18
|
+
box-sizing: border-box;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
h1, h2, h3, h4, h5, h6, p {
|
22
|
+
font-size: 15px;
|
23
|
+
line-height: 25px;
|
24
|
+
margin: 0 0 10px;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.mapbox-small, .leaflet-control-attribution, .leaflet-control-scale {
|
29
|
+
font-size: 12px;
|
30
|
+
line-height: 20px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.leaflet-container {
|
34
|
+
input, textarea, label, small {
|
35
|
+
font-size: 12px;
|
36
|
+
line-height: 20px;
|
37
|
+
}
|
38
|
+
a {
|
39
|
+
color: #3887BE;
|
40
|
+
font-weight: normal;
|
41
|
+
text-decoration: none;
|
42
|
+
&:hover {
|
43
|
+
color: #63b6e5;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
&.dark {
|
47
|
+
a {
|
48
|
+
color: #63b6e5;
|
49
|
+
&:hover {
|
50
|
+
color: #8fcaec;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
.mapbox-button {
|
54
|
+
background-color: #3887be;
|
55
|
+
display: inline-block;
|
56
|
+
height: 40px;
|
57
|
+
line-height: 40px;
|
58
|
+
text-decoration: none;
|
59
|
+
color: #fff;
|
60
|
+
font-size: 12px;
|
61
|
+
white-space: nowrap;
|
62
|
+
text-overflow: ellipsis;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
.mapbox-button {
|
66
|
+
background-color: #3887be;
|
67
|
+
display: inline-block;
|
68
|
+
height: 40px;
|
69
|
+
line-height: 40px;
|
70
|
+
text-decoration: none;
|
71
|
+
color: #fff;
|
72
|
+
font-size: 12px;
|
73
|
+
white-space: nowrap;
|
74
|
+
text-overflow: ellipsis;
|
75
|
+
}
|
76
|
+
&.dark .mapbox-button:hover, .mapbox-button:hover {
|
77
|
+
color: #fff;
|
78
|
+
background-color: #3bb2d0;
|
79
|
+
}
|
80
|
+
}
|
66
81
|
|
67
82
|
/* Base Leaflet
|
68
|
-
|
69
|
-
|
70
|
-
.leaflet-map-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-pane, .leaflet-tile-container, .leaflet-overlay-pane, .leaflet-shadow-pane, .leaflet-marker-pane, .leaflet-popup-pane, .leaflet-overlay-pane svg, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer
|
71
|
-
position: absolute
|
72
|
-
left: 0
|
73
|
-
top: 0
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
-webkit-user-
|
78
|
-
-
|
79
|
-
user-select: none
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
visibility:
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
.leaflet-
|
102
|
-
z-index:
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
.leaflet-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
.leaflet-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
.leaflet-
|
191
|
-
|
192
|
-
|
193
|
-
.
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
.leaflet-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
.
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
.
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
83
|
+
------------------------------------------------------- */
|
84
|
+
|
85
|
+
.leaflet-map-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-pane, .leaflet-tile-container, .leaflet-overlay-pane, .leaflet-shadow-pane, .leaflet-marker-pane, .leaflet-popup-pane, .leaflet-overlay-pane svg, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer {
|
86
|
+
position: absolute;
|
87
|
+
left: 0;
|
88
|
+
top: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow {
|
92
|
+
-webkit-user-drag: none;
|
93
|
+
-webkit-user-select: none;
|
94
|
+
-moz-user-select: none;
|
95
|
+
user-select: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
.leaflet-marker-icon, .leaflet-marker-shadow {
|
99
|
+
display: block;
|
100
|
+
}
|
101
|
+
|
102
|
+
.leaflet-tile {
|
103
|
+
filter: inherit;
|
104
|
+
visibility: hidden;
|
105
|
+
}
|
106
|
+
|
107
|
+
.leaflet-tile-loaded {
|
108
|
+
visibility: inherit;
|
109
|
+
}
|
110
|
+
|
111
|
+
.leaflet-zoom-box {
|
112
|
+
width: 0;
|
113
|
+
height: 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
.leaflet-tile-pane {
|
117
|
+
z-index: 2;
|
118
|
+
}
|
119
|
+
|
120
|
+
.leaflet-objects-pane {
|
121
|
+
z-index: 3;
|
122
|
+
}
|
123
|
+
|
124
|
+
.leaflet-overlay-pane {
|
125
|
+
z-index: 4;
|
126
|
+
}
|
127
|
+
|
128
|
+
.leaflet-shadow-pane {
|
129
|
+
z-index: 5;
|
130
|
+
}
|
131
|
+
|
132
|
+
.leaflet-marker-pane {
|
133
|
+
z-index: 6;
|
134
|
+
}
|
135
|
+
|
136
|
+
.leaflet-popup-pane {
|
137
|
+
z-index: 7;
|
138
|
+
}
|
139
|
+
|
140
|
+
.leaflet-control {
|
141
|
+
position: relative;
|
142
|
+
z-index: 7;
|
143
|
+
pointer-events: auto;
|
144
|
+
float: left;
|
145
|
+
clear: both;
|
146
|
+
}
|
147
|
+
|
148
|
+
.leaflet-right .leaflet-control {
|
149
|
+
float: right;
|
150
|
+
}
|
151
|
+
|
152
|
+
.leaflet-top .leaflet-control {
|
153
|
+
margin-top: 10px;
|
154
|
+
}
|
155
|
+
|
156
|
+
.leaflet-bottom .leaflet-control {
|
157
|
+
margin-bottom: 10px;
|
158
|
+
}
|
159
|
+
|
160
|
+
.leaflet-left .leaflet-control {
|
161
|
+
margin-left: 10px;
|
162
|
+
}
|
163
|
+
|
164
|
+
.leaflet-right .leaflet-control {
|
165
|
+
margin-right: 10px;
|
166
|
+
}
|
167
|
+
|
168
|
+
.leaflet-top, .leaflet-bottom {
|
169
|
+
position: absolute;
|
170
|
+
z-index: 1000;
|
171
|
+
pointer-events: none;
|
172
|
+
}
|
173
|
+
|
174
|
+
.leaflet-top {
|
175
|
+
top: 0;
|
176
|
+
}
|
177
|
+
|
178
|
+
.leaflet-right {
|
179
|
+
right: 0;
|
180
|
+
}
|
181
|
+
|
182
|
+
.leaflet-bottom {
|
183
|
+
bottom: 0;
|
184
|
+
}
|
185
|
+
|
186
|
+
.leaflet-left {
|
187
|
+
left: 0;
|
188
|
+
}
|
189
|
+
|
190
|
+
/* zoom and fade animations */
|
191
|
+
|
192
|
+
.leaflet-fade-anim {
|
193
|
+
.leaflet-tile, .leaflet-popup {
|
194
|
+
opacity: 0;
|
195
|
+
-webkit-transition: opacity 0.2s linear;
|
196
|
+
-moz-transition: opacity 0.2s linear;
|
197
|
+
-o-transition: opacity 0.2s linear;
|
198
|
+
transition: opacity 0.2s linear;
|
199
|
+
}
|
200
|
+
.leaflet-tile-loaded, .leaflet-map-pane .leaflet-popup {
|
201
|
+
opacity: 1;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
.leaflet-zoom-anim {
|
206
|
+
.leaflet-zoom-animated {
|
207
|
+
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
208
|
+
-moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
209
|
+
-o-transition: -o-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
210
|
+
transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
211
|
+
}
|
212
|
+
.leaflet-tile {
|
213
|
+
-webkit-transition: none;
|
214
|
+
-moz-transition: none;
|
215
|
+
-o-transition: none;
|
216
|
+
transition: none;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
.leaflet-pan-anim .leaflet-tile, .leaflet-touching .leaflet-zoom-animated {
|
221
|
+
-webkit-transition: none;
|
222
|
+
-moz-transition: none;
|
223
|
+
-o-transition: none;
|
224
|
+
transition: none;
|
225
|
+
}
|
226
|
+
|
227
|
+
.leaflet-zoom-anim .leaflet-zoom-hide {
|
228
|
+
visibility: hidden;
|
229
|
+
}
|
230
|
+
|
231
|
+
/* cursors */
|
232
|
+
|
233
|
+
.map-clickable, .leaflet-clickable {
|
234
|
+
cursor: pointer;
|
235
|
+
}
|
236
|
+
|
237
|
+
.leaflet-popup-pane, .leaflet-control {
|
238
|
+
cursor: auto;
|
239
|
+
}
|
240
|
+
|
241
|
+
.leaflet-container {
|
242
|
+
cursor: -webkit-grab;
|
243
|
+
cursor: -moz-grab;
|
244
|
+
}
|
245
|
+
|
246
|
+
.leaflet-dragging {
|
247
|
+
cursor: move;
|
248
|
+
cursor: -webkit-grabbing;
|
249
|
+
cursor: -moz-grabbing;
|
250
|
+
.map-clickable, .leaflet-clickable, .leaflet-container {
|
251
|
+
cursor: move;
|
252
|
+
cursor: -webkit-grabbing;
|
253
|
+
cursor: -moz-grabbing;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
.leaflet-zoom-box {
|
258
|
+
background: #fff;
|
259
|
+
border: 2px dotted #202020;
|
260
|
+
opacity: 0.5;
|
261
|
+
}
|
262
|
+
|
263
|
+
/* general toolbar styles */
|
264
|
+
|
265
|
+
.leaflet-control-layers {
|
266
|
+
background-color: #fff;
|
267
|
+
border: 1px solid #999;
|
268
|
+
border-color: rgba(0, 0, 0, 0.4);
|
269
|
+
border-radius: 3px;
|
270
|
+
box-shadow: none;
|
271
|
+
}
|
272
|
+
|
273
|
+
.leaflet-bar {
|
274
|
+
background-color: #fff;
|
275
|
+
border: 1px solid #999;
|
276
|
+
border-color: rgba(0, 0, 0, 0.4);
|
277
|
+
border-radius: 3px;
|
278
|
+
box-shadow: none;
|
279
|
+
a {
|
280
|
+
color: #404040;
|
281
|
+
color: rgba(0, 0, 0, 0.75);
|
282
|
+
border-bottom: 1px solid #ddd;
|
283
|
+
border-bottom-color: rgba(0, 0, 0, 0.1);
|
284
|
+
&:hover {
|
285
|
+
color: #404040;
|
286
|
+
color: rgba(0, 0, 0, 0.75);
|
287
|
+
border-bottom: 1px solid #ddd;
|
288
|
+
border-bottom-color: rgba(0, 0, 0, 0.1);
|
289
|
+
background-color: #f8f8f8;
|
290
|
+
cursor: pointer;
|
291
|
+
}
|
292
|
+
&:active {
|
293
|
+
background-color: #f8f8f8;
|
294
|
+
cursor: pointer;
|
295
|
+
}
|
296
|
+
&:first-child {
|
297
|
+
border-radius: 3px 3px 0 0;
|
298
|
+
}
|
299
|
+
&:last-child {
|
300
|
+
border-bottom: none;
|
301
|
+
border-radius: 0 0 3px 3px;
|
302
|
+
}
|
303
|
+
&:only-of-type {
|
304
|
+
border-radius: 3px;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
.leaflet-disabled {
|
308
|
+
cursor: default;
|
309
|
+
opacity: 0.75;
|
310
|
+
}
|
311
|
+
}
|
312
|
+
|
313
|
+
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
|
314
|
+
display: block;
|
315
|
+
content: '';
|
316
|
+
text-indent: -999em;
|
317
|
+
}
|
318
|
+
|
319
|
+
.leaflet-control-layers .leaflet-control-layers-list {
|
320
|
+
display: none;
|
321
|
+
}
|
322
|
+
|
323
|
+
.leaflet-control-layers-expanded {
|
324
|
+
.leaflet-control-layers-toggle {
|
325
|
+
display: none;
|
326
|
+
}
|
327
|
+
.leaflet-control-layers-list {
|
328
|
+
display: block;
|
329
|
+
position: relative;
|
330
|
+
}
|
331
|
+
background: #fff;
|
332
|
+
padding: 6px 10px 6px 6px;
|
333
|
+
color: #404040;
|
334
|
+
color: rgba(0, 0, 0, 0.75);
|
335
|
+
}
|
336
|
+
|
337
|
+
.leaflet-control-layers-selector {
|
338
|
+
margin-top: 2px;
|
339
|
+
position: relative;
|
340
|
+
top: 1px;
|
341
|
+
}
|
342
|
+
|
343
|
+
.leaflet-control-layers label {
|
344
|
+
display: block;
|
345
|
+
}
|
346
|
+
|
347
|
+
.leaflet-control-layers-separator {
|
348
|
+
height: 0;
|
349
|
+
border-top: 1px solid #ddd;
|
350
|
+
border-top-color: rgba(0, 0, 0, 0.1);
|
351
|
+
margin: 5px -10px 5px -6px;
|
352
|
+
}
|
353
|
+
|
354
|
+
.leaflet-container .leaflet-control-attribution {
|
355
|
+
background-color: rgba(255, 255, 255, 0.25);
|
356
|
+
margin: 0;
|
357
|
+
box-shadow: none;
|
358
|
+
}
|
359
|
+
|
360
|
+
.leaflet-control-attribution a:hover, .map-info-container a:hover {
|
361
|
+
color: inherit;
|
362
|
+
text-decoration: underline;
|
363
|
+
}
|
364
|
+
|
365
|
+
.leaflet-control-attribution, .leaflet-control-scale-line {
|
366
|
+
padding: 0 5px;
|
367
|
+
}
|
368
|
+
|
369
|
+
.leaflet-left .leaflet-control-scale {
|
370
|
+
margin-left: 5px;
|
371
|
+
}
|
372
|
+
|
373
|
+
.leaflet-bottom .leaflet-control-scale {
|
374
|
+
margin-bottom: 5px;
|
375
|
+
}
|
376
|
+
|
377
|
+
.leaflet-control-scale-line {
|
378
|
+
background-color: rgba(255, 255, 255, 0.5);
|
379
|
+
border: 1px solid #999;
|
380
|
+
border-color: rgba(0, 0, 0, 0.4);
|
381
|
+
border-top: none;
|
382
|
+
padding: 2px 5px 1px;
|
383
|
+
white-space: nowrap;
|
384
|
+
overflow: hidden;
|
385
|
+
&:not(:first-child) {
|
386
|
+
border-top: 2px solid #ddd;
|
387
|
+
border-top-color: rgba(0, 0, 0, 0.1);
|
388
|
+
border-bottom: none;
|
389
|
+
margin-top: -2px;
|
390
|
+
&:not(:last-child) {
|
391
|
+
border-bottom: 2px solid #777;
|
392
|
+
}
|
393
|
+
}
|
394
|
+
}
|
395
|
+
|
396
|
+
/* popup */
|
397
|
+
|
398
|
+
.leaflet-popup {
|
399
|
+
position: absolute;
|
400
|
+
text-align: center;
|
401
|
+
pointer-events: none;
|
402
|
+
}
|
403
|
+
|
404
|
+
.leaflet-popup-content-wrapper {
|
405
|
+
padding: 1px;
|
406
|
+
text-align: left;
|
407
|
+
pointer-events: all;
|
408
|
+
}
|
409
|
+
|
410
|
+
.leaflet-popup-content {
|
411
|
+
padding: 10px 10px 15px;
|
412
|
+
margin: 0;
|
413
|
+
line-height: inherit;
|
414
|
+
}
|
415
|
+
|
416
|
+
.leaflet-popup-tip-container {
|
417
|
+
width: 20px;
|
418
|
+
height: 20px;
|
419
|
+
margin: 0 auto;
|
420
|
+
position: relative;
|
421
|
+
}
|
422
|
+
|
423
|
+
.leaflet-popup-tip {
|
424
|
+
width: 0;
|
425
|
+
height: 0;
|
426
|
+
margin: 0;
|
427
|
+
border-left: 10px solid transparent;
|
428
|
+
border-right: 10px solid transparent;
|
429
|
+
border-top: 10px solid #fff;
|
430
|
+
box-shadow: none;
|
431
|
+
}
|
432
|
+
|
433
|
+
.leaflet-popup-close-button {
|
434
|
+
text-indent: -999em;
|
435
|
+
position: absolute;
|
436
|
+
top: 0;
|
437
|
+
right: 0;
|
438
|
+
pointer-events: all;
|
439
|
+
&:hover {
|
440
|
+
background-color: #f8f8f8;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
.leaflet-popup-scrolled {
|
445
|
+
overflow: auto;
|
446
|
+
border-bottom: 1px solid #ddd;
|
447
|
+
border-top: 1px solid #ddd;
|
448
|
+
}
|
449
|
+
|
450
|
+
/* div icon */
|
451
|
+
|
452
|
+
.leaflet-div-icon {
|
453
|
+
background: #fff;
|
454
|
+
border: 1px solid #999;
|
455
|
+
border-color: rgba(0, 0, 0, 0.4);
|
456
|
+
}
|
457
|
+
|
458
|
+
.leaflet-editing-icon {
|
459
|
+
border-radius: 3px;
|
460
|
+
}
|
374
461
|
|
375
462
|
/* Leaflet + Mapbox
|
376
|
-
|
377
|
-
|
378
|
-
.leaflet-bar a, .mapbox-icon, .map-tooltip.closable .close, .leaflet-control-layers-toggle, .leaflet-popup-close-button, .mapbox-button-icon:before
|
379
|
-
content: ''
|
380
|
-
display: inline-block
|
381
|
-
width: 26px
|
382
|
-
height: 26px
|
383
|
-
vertical-align: middle
|
384
|
-
background-repeat: no-repeat
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
background-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
background-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
.
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
.
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
background-position: 0 -
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
463
|
+
------------------------------------------------------- */
|
464
|
+
|
465
|
+
.leaflet-bar a, .mapbox-icon, .map-tooltip.closable .close, .leaflet-control-layers-toggle, .leaflet-popup-close-button, .mapbox-button-icon:before {
|
466
|
+
content: '';
|
467
|
+
display: inline-block;
|
468
|
+
width: 26px;
|
469
|
+
height: 26px;
|
470
|
+
vertical-align: middle;
|
471
|
+
background-repeat: no-repeat;
|
472
|
+
}
|
473
|
+
|
474
|
+
.leaflet-bar a {
|
475
|
+
display: block;
|
476
|
+
}
|
477
|
+
|
478
|
+
.leaflet-control-zoom-in, .leaflet-control-zoom-out, .leaflet-popup-close-button, .leaflet-control-layers-toggle, .leaflet-container.dark .map-tooltip .close, .map-tooltip .close, .mapbox-icon {
|
479
|
+
opacity: .75;
|
480
|
+
background-image: image-url('icons-000000.png');
|
481
|
+
background-repeat: no-repeat;
|
482
|
+
background-size: 26px 260px;
|
483
|
+
}
|
484
|
+
|
485
|
+
.mapbox-button-icon:before {
|
486
|
+
opacity: 1;
|
487
|
+
background-image: image-url('icons-ffffff.png');
|
488
|
+
background-size: 26px 260px;
|
489
|
+
}
|
490
|
+
|
491
|
+
.leaflet-container.dark {
|
492
|
+
.leaflet-control-zoom-in, .leaflet-control-zoom-out, .leaflet-control-layers-toggle, .mapbox-icon {
|
493
|
+
opacity: 1;
|
494
|
+
background-image: image-url('icons-ffffff.png');
|
495
|
+
background-size: 26px 260px;
|
496
|
+
}
|
497
|
+
}
|
498
|
+
|
499
|
+
.leaflet-bar {
|
500
|
+
.leaflet-control-zoom-in {
|
501
|
+
background-position: 0 0;
|
502
|
+
}
|
503
|
+
.leaflet-control-zoom-out {
|
504
|
+
background-position: 0 -26px;
|
505
|
+
}
|
506
|
+
}
|
507
|
+
|
508
|
+
.map-tooltip .close, .leaflet-popup-close-button {
|
509
|
+
background-position: 0 -52px;
|
510
|
+
}
|
511
|
+
|
512
|
+
.mapbox-icon-info {
|
513
|
+
background-position: 0 -78px;
|
514
|
+
}
|
515
|
+
|
516
|
+
.leaflet-control-layers-toggle {
|
517
|
+
background-position: 0 -104px;
|
518
|
+
}
|
519
|
+
|
520
|
+
.mapbox-icon-share {
|
521
|
+
&:before {
|
522
|
+
background-position: 0 -130px;
|
523
|
+
}
|
524
|
+
background-position: 0 -130px;
|
525
|
+
}
|
526
|
+
|
527
|
+
.mapbox-icon-geocoder {
|
528
|
+
&:before {
|
529
|
+
background-position: 0 -156px;
|
530
|
+
}
|
531
|
+
background-position: 0 -156px;
|
532
|
+
}
|
533
|
+
|
534
|
+
.mapbox-icon-facebook {
|
535
|
+
&:before {
|
536
|
+
background-position: 0 -182px;
|
537
|
+
}
|
538
|
+
background-position: 0 -182px;
|
539
|
+
}
|
540
|
+
|
541
|
+
.mapbox-icon-twitter {
|
542
|
+
&:before {
|
543
|
+
background-position: 0 -208px;
|
544
|
+
}
|
545
|
+
background-position: 0 -208px;
|
546
|
+
}
|
547
|
+
|
548
|
+
.mapbox-icon-pinterest {
|
549
|
+
&:before {
|
550
|
+
background-position: 0 -234px;
|
551
|
+
}
|
552
|
+
background-position: 0 -234px;
|
553
|
+
}
|
554
|
+
|
555
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
556
|
+
.leaflet-control-zoom-in, .leaflet-control-zoom-out, .leaflet-popup-close-button, .leaflet-control-layers-toggle, .mapbox-icon {
|
557
|
+
background-image: image-url('icons-000000@2x.png');
|
558
|
+
}
|
559
|
+
.mapbox-button-icon:before {
|
560
|
+
background-image: image-url('icons-ffffff@2x.png');
|
561
|
+
}
|
562
|
+
.leaflet-container.dark {
|
563
|
+
.leaflet-control-zoom-in, .leaflet-control-zoom-out, .leaflet-control-layers-toggle, .mapbox-icon {
|
564
|
+
background-image: image-url('icons-ffffff@2x.png');
|
565
|
+
}
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
.leaflet-popup-content-wrapper, .map-legends, .map-tooltip {
|
570
|
+
background: #fff;
|
571
|
+
border-radius: 3px;
|
572
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
573
|
+
}
|
574
|
+
|
575
|
+
.map-legends, .map-tooltip {
|
576
|
+
max-width: 300px;
|
577
|
+
}
|
578
|
+
|
579
|
+
.map-legends .map-legend {
|
580
|
+
padding: 10px;
|
581
|
+
}
|
582
|
+
|
583
|
+
.map-tooltip {
|
584
|
+
z-index: 999999;
|
585
|
+
padding: 10px;
|
586
|
+
min-width: 180px;
|
587
|
+
max-height: 400px;
|
588
|
+
overflow: auto;
|
589
|
+
opacity: 1;
|
590
|
+
-webkit-transition: opacity 150ms;
|
591
|
+
-moz-transition: opacity 150ms;
|
592
|
+
-o-transition: opacity 150ms;
|
593
|
+
transition: opacity 150ms;
|
594
|
+
.close {
|
595
|
+
text-indent: -999em;
|
596
|
+
overflow: hidden;
|
597
|
+
display: none;
|
598
|
+
}
|
599
|
+
&.closable .close {
|
600
|
+
position: absolute;
|
601
|
+
top: 0;
|
602
|
+
right: 0;
|
603
|
+
border-radius: 3px;
|
604
|
+
&:active {
|
605
|
+
background-color: #f8f8f8;
|
606
|
+
}
|
607
|
+
}
|
608
|
+
}
|
609
|
+
|
610
|
+
.leaflet-control-interaction {
|
611
|
+
position: absolute;
|
612
|
+
top: 10px;
|
613
|
+
right: 10px;
|
614
|
+
width: 300px;
|
615
|
+
}
|
616
|
+
|
617
|
+
.leaflet-popup-content .marker-title {
|
618
|
+
font-weight: bold;
|
619
|
+
}
|
620
|
+
|
621
|
+
.leaflet-control .mapbox-button {
|
622
|
+
background-color: #fff;
|
623
|
+
border: 1px solid #ddd;
|
624
|
+
border-color: rgba(0, 0, 0, 0.1);
|
625
|
+
padding: 5px 10px;
|
626
|
+
border-radius: 3px;
|
627
|
+
}
|
504
628
|
|
505
629
|
/* Share modal
|
506
|
-
|
507
|
-
|
508
|
-
.mapbox-modal
|
509
|
-
> div
|
510
|
-
position: absolute
|
511
|
-
top: 0
|
512
|
-
left: 0
|
513
|
-
width: 100
|
514
|
-
height: 100
|
515
|
-
z-index: -1
|
516
|
-
overflow-y: auto
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
opacity:
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
-
|
532
|
-
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
630
|
+
------------------------------------------------------- */
|
631
|
+
|
632
|
+
.mapbox-modal {
|
633
|
+
> div {
|
634
|
+
position: absolute;
|
635
|
+
top: 0;
|
636
|
+
left: 0;
|
637
|
+
width: 100%;
|
638
|
+
height: 100%;
|
639
|
+
z-index: -1;
|
640
|
+
overflow-y: auto;
|
641
|
+
}
|
642
|
+
&.active > div {
|
643
|
+
z-index: 99999;
|
644
|
+
transition: all .2s, z-index 0 0;
|
645
|
+
}
|
646
|
+
.mapbox-modal-mask {
|
647
|
+
background: rgba(0, 0, 0, 0.5);
|
648
|
+
opacity: 0;
|
649
|
+
}
|
650
|
+
&.active .mapbox-modal-mask {
|
651
|
+
opacity: 1;
|
652
|
+
}
|
653
|
+
.mapbox-modal-content {
|
654
|
+
-webkit-transform: translateY(-100%);
|
655
|
+
-moz-transform: translateY(-100%);
|
656
|
+
-ms-transform: translateY(-100%);
|
657
|
+
transform: translateY(-100%);
|
658
|
+
}
|
659
|
+
&.active .mapbox-modal-content {
|
660
|
+
-webkit-transform: translateY(0);
|
661
|
+
-moz-transform: translateY(0);
|
662
|
+
-ms-transform: translateY(0);
|
663
|
+
transform: translateY(0);
|
664
|
+
}
|
665
|
+
}
|
666
|
+
|
667
|
+
.mapbox-modal-body {
|
668
|
+
position: relative;
|
669
|
+
background: #fff;
|
670
|
+
padding: 20px;
|
671
|
+
z-index: 1000;
|
672
|
+
width: 50%;
|
673
|
+
margin: 20px 0 20px 25%;
|
674
|
+
}
|
675
|
+
|
676
|
+
.mapbox-share-buttons {
|
677
|
+
margin: 0 0 20px;
|
678
|
+
a {
|
679
|
+
width: 33.3333%;
|
680
|
+
border-left: 1px solid #fff;
|
681
|
+
text-align: center;
|
682
|
+
border-radius: 0;
|
683
|
+
&:last-child {
|
684
|
+
border-radius: 0 3px 3px 0;
|
685
|
+
}
|
686
|
+
&:first-child {
|
687
|
+
border: none;
|
688
|
+
border-radius: 3px 0 0 3px;
|
689
|
+
}
|
690
|
+
}
|
691
|
+
}
|
692
|
+
|
693
|
+
.mapbox-modal input {
|
694
|
+
width: 100%;
|
695
|
+
height: 40px;
|
696
|
+
padding: 10px;
|
697
|
+
border: 1px solid #ddd;
|
698
|
+
border-color: rgba(0, 0, 0, 0.1);
|
699
|
+
color: rgba(0, 0, 0, 0.5);
|
700
|
+
}
|
564
701
|
|
565
702
|
/* Info Control
|
566
|
-
|
567
|
-
|
568
|
-
.leaflet-control
|
569
|
-
&.mapbox-control-info
|
570
|
-
margin: 5px 30px 10px 10px
|
571
|
-
min-height: 26px
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
.mapbox-info-toggle
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
703
|
+
------------------------------------------------------- */
|
704
|
+
|
705
|
+
.leaflet-control {
|
706
|
+
&.mapbox-control-info {
|
707
|
+
margin: 5px 30px 10px 10px;
|
708
|
+
min-height: 26px;
|
709
|
+
}
|
710
|
+
&.mapbox-control-info-right {
|
711
|
+
margin: 5px 10px 10px 30px;
|
712
|
+
}
|
713
|
+
}
|
714
|
+
|
715
|
+
.mapbox-info-toggle {
|
716
|
+
background-color: #fff;
|
717
|
+
background-color: rgba(255, 255, 255, 0.5);
|
718
|
+
border-radius: 50%;
|
719
|
+
position: absolute;
|
720
|
+
bottom: 0;
|
721
|
+
left: 0;
|
722
|
+
z-index: 1;
|
723
|
+
}
|
724
|
+
|
725
|
+
.mapbox-control-info-right .mapbox-info-toggle {
|
726
|
+
left: auto;
|
727
|
+
right: 0;
|
728
|
+
}
|
729
|
+
|
730
|
+
.mapbox-info-toggle:hover {
|
731
|
+
background-color: #fff;
|
732
|
+
}
|
733
|
+
|
734
|
+
.map-info-container {
|
735
|
+
background: #fff;
|
736
|
+
padding: 3px 5px 3px 27px;
|
737
|
+
display: none;
|
738
|
+
position: relative;
|
739
|
+
bottom: 0;
|
740
|
+
left: 0;
|
741
|
+
border-radius: 13px 3px 3px 13px;
|
742
|
+
}
|
743
|
+
|
744
|
+
.mapbox-control-info.active .map-info-container {
|
745
|
+
display: inline-block;
|
746
|
+
}
|
747
|
+
|
748
|
+
.mapbox-control-info-right .map-info-container {
|
749
|
+
left: auto;
|
750
|
+
right: 0;
|
751
|
+
padding: 3px 27px 3px 5px;
|
752
|
+
border-radius: 3px 13px 13px 3px;
|
753
|
+
}
|
608
754
|
|
609
755
|
/* Geocoder
|
610
|
-
|
611
|
-
|
612
|
-
.leaflet-control-mapbox-geocoder
|
613
|
-
position: relative
|
614
|
-
&.searching
|
615
|
-
opacity: 0.75
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
border
|
621
|
-
border-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
-
|
631
|
-
-
|
632
|
-
transition: opacity 100ms
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
border: 0
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
756
|
+
------------------------------------------------------- */
|
757
|
+
|
758
|
+
.leaflet-control-mapbox-geocoder {
|
759
|
+
position: relative;
|
760
|
+
&.searching {
|
761
|
+
opacity: 0.75;
|
762
|
+
}
|
763
|
+
.leaflet-control-mapbox-geocoder-wrap {
|
764
|
+
background: #fff;
|
765
|
+
position: absolute;
|
766
|
+
border: 1px solid #999;
|
767
|
+
border-color: rgba(0, 0, 0, 0.4);
|
768
|
+
border-bottom-width: 0;
|
769
|
+
overflow: hidden;
|
770
|
+
left: 26px;
|
771
|
+
height: 27px;
|
772
|
+
width: 0;
|
773
|
+
top: -1px;
|
774
|
+
border-radius: 0 3px 3px 0;
|
775
|
+
opacity: 0;
|
776
|
+
-webkit-transition: opacity 100ms;
|
777
|
+
-moz-transition: opacity 100ms;
|
778
|
+
-o-transition: opacity 100ms;
|
779
|
+
transition: opacity 100ms;
|
780
|
+
}
|
781
|
+
&.active .leaflet-control-mapbox-geocoder-wrap {
|
782
|
+
width: 180px;
|
783
|
+
opacity: 1;
|
784
|
+
}
|
785
|
+
}
|
786
|
+
|
787
|
+
.leaflet-bar .leaflet-control-mapbox-geocoder-toggle {
|
788
|
+
border-bottom: none;
|
789
|
+
&:hover {
|
790
|
+
border-bottom: none;
|
791
|
+
}
|
792
|
+
}
|
793
|
+
|
794
|
+
.leaflet-control-mapbox-geocoder-toggle {
|
795
|
+
border-radius: 3px;
|
796
|
+
}
|
797
|
+
|
798
|
+
.leaflet-control-mapbox-geocoder {
|
799
|
+
&.active {
|
800
|
+
border-top-right-radius: 0;
|
801
|
+
border-bottom-right-radius: 0;
|
802
|
+
.leaflet-control-mapbox-geocoder-toggle {
|
803
|
+
border-top-right-radius: 0;
|
804
|
+
border-bottom-right-radius: 0;
|
805
|
+
}
|
806
|
+
}
|
807
|
+
.leaflet-control-mapbox-geocoder-form input {
|
808
|
+
background: transparent;
|
809
|
+
border: 0;
|
810
|
+
width: 180px;
|
811
|
+
padding: 0 0 0 10px;
|
812
|
+
height: 26px;
|
813
|
+
outline: none;
|
814
|
+
}
|
815
|
+
}
|
816
|
+
|
817
|
+
.leaflet-control-mapbox-geocoder-results {
|
818
|
+
width: 180px;
|
819
|
+
position: absolute;
|
820
|
+
left: 26px;
|
821
|
+
top: 25px;
|
822
|
+
border-radius: 0 0 3px 3px;
|
823
|
+
}
|
824
|
+
|
825
|
+
.leaflet-control-mapbox-geocoder.active .leaflet-control-mapbox-geocoder-results {
|
826
|
+
background: #fff;
|
827
|
+
border: 1px solid #999;
|
828
|
+
border-color: rgba(0, 0, 0, 0.4);
|
829
|
+
}
|
830
|
+
|
831
|
+
.leaflet-control-mapbox-geocoder-results {
|
832
|
+
a, span {
|
833
|
+
padding: 0 10px;
|
834
|
+
text-overflow: ellipsis;
|
835
|
+
white-space: nowrap;
|
836
|
+
display: block;
|
837
|
+
width: 100%;
|
838
|
+
font-size: 12px;
|
839
|
+
line-height: 26px;
|
840
|
+
text-align: left;
|
841
|
+
overflow: hidden;
|
842
|
+
}
|
843
|
+
a:first-child {
|
844
|
+
border-top: 1px solid #999;
|
845
|
+
border-top-color: rgba(0, 0, 0, 0.4);
|
846
|
+
border-radius: 0;
|
847
|
+
}
|
848
|
+
}
|
849
|
+
|
850
|
+
.leaflet-container.dark .leaflet-control .leaflet-control-mapbox-geocoder-results a:hover, .leaflet-control-mapbox-geocoder-results a:hover {
|
851
|
+
background: #f8f8f8;
|
852
|
+
opacity: 1;
|
853
|
+
}
|
691
854
|
|
692
855
|
/* Dark Theme
|
693
|
-
|
694
|
-
|
695
|
-
.leaflet-container
|
696
|
-
&.dark
|
697
|
-
.leaflet-bar
|
698
|
-
background-color: #404040
|
699
|
-
border-color: #202020
|
700
|
-
border-color: rgba(0, 0, 0, 0.75)
|
701
|
-
a
|
702
|
-
color: #404040
|
703
|
-
border-color: rgba(0, 0, 0, 0.5)
|
704
|
-
&:active, &:hover
|
705
|
-
background-color: #505050
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
.
|
710
|
-
background-color:
|
711
|
-
color: #
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
856
|
+
------------------------------------------------------- */
|
857
|
+
|
858
|
+
.leaflet-container {
|
859
|
+
&.dark {
|
860
|
+
.leaflet-bar {
|
861
|
+
background-color: #404040;
|
862
|
+
border-color: #202020;
|
863
|
+
border-color: rgba(0, 0, 0, 0.75);
|
864
|
+
a {
|
865
|
+
color: #404040;
|
866
|
+
border-color: rgba(0, 0, 0, 0.5);
|
867
|
+
&:active, &:hover {
|
868
|
+
background-color: #505050;
|
869
|
+
}
|
870
|
+
}
|
871
|
+
}
|
872
|
+
.mapbox-info-toggle, .map-info-container, .leaflet-control-attribution {
|
873
|
+
background-color: rgba(0, 0, 0, 0.25);
|
874
|
+
color: #f8f8f8;
|
875
|
+
}
|
876
|
+
.leaflet-bar a.leaflet-disabled, .leaflet-control .mapbox-button.disabled {
|
877
|
+
background-color: #252525;
|
878
|
+
color: #404040;
|
879
|
+
}
|
880
|
+
.leaflet-control-mapbox-geocoder > div {
|
881
|
+
border-color: #202020;
|
882
|
+
border-color: rgba(0, 0, 0, 0.75);
|
883
|
+
}
|
884
|
+
.leaflet-control .leaflet-control-mapbox-geocoder-results {
|
885
|
+
a {
|
886
|
+
border-color: #ddd #202020;
|
887
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.75);
|
888
|
+
}
|
889
|
+
span {
|
890
|
+
border-color: #202020;
|
891
|
+
border-color: rgba(0, 0, 0, 0.75);
|
892
|
+
}
|
893
|
+
}
|
894
|
+
}
|
895
|
+
img {
|
896
|
+
max-width: none !important;
|
897
|
+
&.leaflet-image-layer {
|
898
|
+
max-width: 15000px !important;
|
899
|
+
}
|
900
|
+
}
|
901
|
+
}
|
726
902
|
|
727
903
|
/* Larger Screens
|
728
|
-
|
729
|
-
@media only screen and (max-width: 800px)
|
730
|
-
.mapbox-modal-body
|
731
|
-
width: 83.3333
|
732
|
-
margin-left: 8.3333
|
904
|
+
------------------------------------------------------- */
|
905
|
+
@media only screen and (max-width: 800px) {
|
906
|
+
.mapbox-modal-body {
|
907
|
+
width: 83.3333%;
|
908
|
+
margin-left: 8.3333%;
|
909
|
+
}
|
910
|
+
}
|
733
911
|
|
734
912
|
/* Smaller Screens
|
735
|
-
|
736
|
-
@media only screen and (max-width: 640px)
|
737
|
-
.mapbox-modal-body
|
738
|
-
width: 100
|
739
|
-
height: 100
|
740
|
-
margin: 0
|
913
|
+
------------------------------------------------------- */
|
914
|
+
@media only screen and (max-width: 640px) {
|
915
|
+
.mapbox-modal-body {
|
916
|
+
width: 100%;
|
917
|
+
height: 100%;
|
918
|
+
margin: 0;
|
919
|
+
}
|
920
|
+
}
|
741
921
|
|
742
922
|
/* Browser Fixes
|
743
|
-
|
744
|
-
/* Map is broken in FF if you have max-width: 100% on tiles
|
923
|
+
------------------------------------------------------- */
|
924
|
+
/* Map is broken in FF if you have max-width: 100% on tiles */
|
745
925
|
|
746
|
-
/* Stupid Android 2 doesn't understand "max-width: none" properly
|
926
|
+
/* Stupid Android 2 doesn't understand "max-width: none" properly */
|
747
927
|
|
748
|
-
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319
|
928
|
+
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
749
929
|
|
750
|
-
.leaflet-overlay-pane svg
|
751
|
-
-moz-user-select: none
|
930
|
+
.leaflet-overlay-pane svg {
|
931
|
+
-moz-user-select: none;
|
932
|
+
}
|
752
933
|
|
753
|
-
/* Older IEs don't support the translateY property for display animation
|
934
|
+
/* Older IEs don't support the translateY property for display animation */
|
754
935
|
|
755
|
-
.leaflet-oldie .mapbox-modal
|
756
|
-
.mapbox-modal-content
|
757
|
-
display: none
|
758
|
-
|
759
|
-
|
936
|
+
.leaflet-oldie .mapbox-modal {
|
937
|
+
.mapbox-modal-content {
|
938
|
+
display: none;
|
939
|
+
}
|
940
|
+
&.active .mapbox-modal-content {
|
941
|
+
display: block;
|
942
|
+
}
|
943
|
+
}
|
760
944
|
|
761
|
-
.map-tooltip
|
762
|
-
width: 280px\8
|
763
|
-
/* < IE9
|
945
|
+
.map-tooltip {
|
946
|
+
width: 280px\8;
|
947
|
+
/* < IE9 */
|
948
|
+
}
|