mapbox-rails 1.0.2
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 +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.md +50 -0
- data/README.md +56 -0
- data/Rakefile +13 -0
- data/lib/mapbox-rails.rb +11 -0
- data/lib/mapbox-rails/engine.rb +6 -0
- data/lib/mapbox-rails/railtie.rb +6 -0
- data/lib/mapbox-rails/remote_resource_loader.rb +39 -0
- data/lib/mapbox-rails/version.rb +6 -0
- data/mapbox-rails.gemspec +23 -0
- data/vendor/assets/images/layers.png +0 -0
- data/vendor/assets/images/marker-icon.png +0 -0
- data/vendor/assets/images/marker-icon@2x.png +0 -0
- data/vendor/assets/images/marker-shadow.png +0 -0
- data/vendor/assets/javascripts/mapbox.js +13790 -0
- data/vendor/assets/stylesheets/mapbox.css.sass +588 -0
- data/vendor/assets/stylesheets/mapbox.ie.css +51 -0
- metadata +92 -0
@@ -0,0 +1,588 @@
|
|
1
|
+
/* required styles
|
2
|
+
|
3
|
+
.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
|
4
|
+
position: absolute
|
5
|
+
left: 0
|
6
|
+
top: 0
|
7
|
+
|
8
|
+
.leaflet-container
|
9
|
+
overflow: hidden
|
10
|
+
-ms-touch-action: none
|
11
|
+
|
12
|
+
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow
|
13
|
+
-webkit-user-select: none
|
14
|
+
-moz-user-select: none
|
15
|
+
user-select: none
|
16
|
+
-webkit-user-drag: none
|
17
|
+
|
18
|
+
.leaflet-marker-icon, .leaflet-marker-shadow
|
19
|
+
display: block
|
20
|
+
|
21
|
+
/* map is broken in FF if you have max-width: 100% on tiles
|
22
|
+
|
23
|
+
.leaflet-container img
|
24
|
+
max-width: none !important
|
25
|
+
&.leaflet-image-layer
|
26
|
+
max-width: 15000px !important
|
27
|
+
|
28
|
+
/* stupid Android 2 doesn't understand "max-width: none" properly
|
29
|
+
|
30
|
+
.leaflet-tile
|
31
|
+
filter: inherit
|
32
|
+
visibility: hidden
|
33
|
+
|
34
|
+
.leaflet-tile-loaded
|
35
|
+
visibility: inherit
|
36
|
+
|
37
|
+
.leaflet-zoom-box
|
38
|
+
width: 0
|
39
|
+
height: 0
|
40
|
+
|
41
|
+
.leaflet-tile-pane
|
42
|
+
z-index: 2
|
43
|
+
|
44
|
+
.leaflet-objects-pane
|
45
|
+
z-index: 3
|
46
|
+
|
47
|
+
.leaflet-overlay-pane
|
48
|
+
z-index: 4
|
49
|
+
|
50
|
+
.leaflet-shadow-pane
|
51
|
+
z-index: 5
|
52
|
+
|
53
|
+
.leaflet-marker-pane
|
54
|
+
z-index: 6
|
55
|
+
|
56
|
+
.leaflet-popup-pane
|
57
|
+
z-index: 7
|
58
|
+
|
59
|
+
/* control positioning
|
60
|
+
|
61
|
+
.leaflet-control
|
62
|
+
position: relative
|
63
|
+
z-index: 7
|
64
|
+
pointer-events: auto
|
65
|
+
|
66
|
+
.leaflet-top, .leaflet-bottom
|
67
|
+
position: absolute
|
68
|
+
z-index: 1000
|
69
|
+
pointer-events: none
|
70
|
+
|
71
|
+
.leaflet-top
|
72
|
+
top: 0
|
73
|
+
|
74
|
+
.leaflet-right
|
75
|
+
right: 0
|
76
|
+
|
77
|
+
.leaflet-bottom
|
78
|
+
bottom: 0
|
79
|
+
|
80
|
+
.leaflet-left
|
81
|
+
left: 0
|
82
|
+
|
83
|
+
.leaflet-control
|
84
|
+
float: left
|
85
|
+
clear: both
|
86
|
+
|
87
|
+
.leaflet-right .leaflet-control
|
88
|
+
float: right
|
89
|
+
|
90
|
+
.leaflet-top .leaflet-control
|
91
|
+
margin-top: 10px
|
92
|
+
|
93
|
+
.leaflet-bottom .leaflet-control
|
94
|
+
margin-bottom: 10px
|
95
|
+
|
96
|
+
.leaflet-left .leaflet-control
|
97
|
+
margin-left: 10px
|
98
|
+
|
99
|
+
.leaflet-right .leaflet-control
|
100
|
+
margin-right: 10px
|
101
|
+
|
102
|
+
/* zoom and fade animations
|
103
|
+
|
104
|
+
.leaflet-fade-anim
|
105
|
+
.leaflet-tile, .leaflet-popup
|
106
|
+
opacity: 0
|
107
|
+
-webkit-transition: opacity 0.2s linear
|
108
|
+
-moz-transition: opacity 0.2s linear
|
109
|
+
-o-transition: opacity 0.2s linear
|
110
|
+
transition: opacity 0.2s linear
|
111
|
+
.leaflet-tile-loaded, .leaflet-map-pane .leaflet-popup
|
112
|
+
opacity: 1
|
113
|
+
|
114
|
+
.leaflet-zoom-anim
|
115
|
+
.leaflet-zoom-animated
|
116
|
+
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)
|
117
|
+
-moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1)
|
118
|
+
-o-transition: -o-transform 0.25s cubic-bezier(0, 0, 0.25, 1)
|
119
|
+
transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1)
|
120
|
+
.leaflet-tile
|
121
|
+
-webkit-transition: none
|
122
|
+
-moz-transition: none
|
123
|
+
-o-transition: none
|
124
|
+
transition: none
|
125
|
+
|
126
|
+
.leaflet-pan-anim .leaflet-tile, .leaflet-touching .leaflet-zoom-animated
|
127
|
+
-webkit-transition: none
|
128
|
+
-moz-transition: none
|
129
|
+
-o-transition: none
|
130
|
+
transition: none
|
131
|
+
|
132
|
+
.leaflet-zoom-anim .leaflet-zoom-hide
|
133
|
+
visibility: hidden
|
134
|
+
|
135
|
+
/* cursors
|
136
|
+
|
137
|
+
.leaflet-clickable
|
138
|
+
cursor: pointer
|
139
|
+
|
140
|
+
.leaflet-container
|
141
|
+
cursor: -webkit-grab
|
142
|
+
cursor: -moz-grab
|
143
|
+
|
144
|
+
.leaflet-popup-pane, .leaflet-control
|
145
|
+
cursor: auto
|
146
|
+
|
147
|
+
.leaflet-dragging
|
148
|
+
cursor: move
|
149
|
+
cursor: -webkit-grabbing
|
150
|
+
cursor: -moz-grabbing
|
151
|
+
.leaflet-clickable, .leaflet-container
|
152
|
+
cursor: move
|
153
|
+
cursor: -webkit-grabbing
|
154
|
+
cursor: -moz-grabbing
|
155
|
+
|
156
|
+
/* visual tweaks
|
157
|
+
|
158
|
+
.leaflet-container
|
159
|
+
background: #ddd
|
160
|
+
outline: 0
|
161
|
+
a
|
162
|
+
color: #0078A8
|
163
|
+
&.leaflet-active
|
164
|
+
outline: 2px solid orange
|
165
|
+
|
166
|
+
.leaflet-zoom-box
|
167
|
+
border: 2px dotted #05f
|
168
|
+
background: white
|
169
|
+
opacity: 0.5
|
170
|
+
|
171
|
+
/* general typography
|
172
|
+
|
173
|
+
.leaflet-container
|
174
|
+
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif
|
175
|
+
|
176
|
+
/* general toolbar styles
|
177
|
+
|
178
|
+
.leaflet-bar
|
179
|
+
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65)
|
180
|
+
-webkit-border-radius: 4px
|
181
|
+
border-radius: 4px
|
182
|
+
a
|
183
|
+
background-color: #fff
|
184
|
+
border-bottom: 1px solid #ccc
|
185
|
+
width: 26px
|
186
|
+
height: 26px
|
187
|
+
line-height: 26px
|
188
|
+
display: block
|
189
|
+
text-align: center
|
190
|
+
text-decoration: none
|
191
|
+
color: black
|
192
|
+
background-position: 50% 50%
|
193
|
+
background-repeat: no-repeat
|
194
|
+
display: block
|
195
|
+
|
196
|
+
.leaflet-control-layers-toggle
|
197
|
+
background-position: 50% 50%
|
198
|
+
background-repeat: no-repeat
|
199
|
+
display: block
|
200
|
+
|
201
|
+
.leaflet-bar a
|
202
|
+
&:hover
|
203
|
+
background-color: #f4f4f4
|
204
|
+
&:first-child
|
205
|
+
-webkit-border-top-left-radius: 4px
|
206
|
+
border-top-left-radius: 4px
|
207
|
+
-webkit-border-top-right-radius: 4px
|
208
|
+
border-top-right-radius: 4px
|
209
|
+
&:last-child
|
210
|
+
-webkit-border-bottom-left-radius: 4px
|
211
|
+
border-bottom-left-radius: 4px
|
212
|
+
-webkit-border-bottom-right-radius: 4px
|
213
|
+
border-bottom-right-radius: 4px
|
214
|
+
border-bottom: none
|
215
|
+
&.leaflet-disabled
|
216
|
+
cursor: default
|
217
|
+
background-color: #f4f4f4
|
218
|
+
color: #bbb
|
219
|
+
|
220
|
+
.leaflet-touch .leaflet-bar
|
221
|
+
-webkit-border-radius: 10px
|
222
|
+
border-radius: 10px
|
223
|
+
a
|
224
|
+
width: 30px
|
225
|
+
height: 30px
|
226
|
+
&:first-child
|
227
|
+
-webkit-border-top-left-radius: 7px
|
228
|
+
border-top-left-radius: 7px
|
229
|
+
-webkit-border-top-right-radius: 7px
|
230
|
+
border-top-right-radius: 7px
|
231
|
+
&:last-child
|
232
|
+
-webkit-border-bottom-left-radius: 7px
|
233
|
+
border-bottom-left-radius: 7px
|
234
|
+
-webkit-border-bottom-right-radius: 7px
|
235
|
+
border-bottom-right-radius: 7px
|
236
|
+
border-bottom: none
|
237
|
+
|
238
|
+
/* zoom control
|
239
|
+
|
240
|
+
.leaflet-control-zoom-in
|
241
|
+
font: bold 18px 'Lucida Console', Monaco, monospace
|
242
|
+
|
243
|
+
.leaflet-control-zoom-out
|
244
|
+
font: bold 22px 'Lucida Console', Monaco, monospace
|
245
|
+
|
246
|
+
.leaflet-touch
|
247
|
+
.leaflet-control-zoom-in
|
248
|
+
font-size: 22px
|
249
|
+
line-height: 30px
|
250
|
+
.leaflet-control-zoom-out
|
251
|
+
font-size: 28px
|
252
|
+
line-height: 30px
|
253
|
+
|
254
|
+
/* layers control
|
255
|
+
|
256
|
+
.leaflet-control-layers
|
257
|
+
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4)
|
258
|
+
background: #f8f8f9
|
259
|
+
-webkit-border-radius: 8px
|
260
|
+
border-radius: 8px
|
261
|
+
|
262
|
+
.leaflet-control-layers-toggle
|
263
|
+
background-image: image-url('assets/layers.png')
|
264
|
+
width: 36px
|
265
|
+
height: 36px
|
266
|
+
|
267
|
+
.leaflet-touch .leaflet-control-layers-toggle
|
268
|
+
width: 44px
|
269
|
+
height: 44px
|
270
|
+
|
271
|
+
.leaflet-control-layers .leaflet-control-layers-list
|
272
|
+
display: none
|
273
|
+
|
274
|
+
.leaflet-control-layers-expanded
|
275
|
+
.leaflet-control-layers-toggle
|
276
|
+
display: none
|
277
|
+
.leaflet-control-layers-list
|
278
|
+
display: block
|
279
|
+
position: relative
|
280
|
+
padding: 6px 10px 6px 6px
|
281
|
+
color: #333
|
282
|
+
background: #fff
|
283
|
+
|
284
|
+
.leaflet-control-layers-selector
|
285
|
+
margin-top: 2px
|
286
|
+
position: relative
|
287
|
+
top: 1px
|
288
|
+
|
289
|
+
.leaflet-control-layers label
|
290
|
+
display: block
|
291
|
+
|
292
|
+
.leaflet-control-layers-separator
|
293
|
+
height: 0
|
294
|
+
border-top: 1px solid #ddd
|
295
|
+
margin: 5px -10px 5px -6px
|
296
|
+
|
297
|
+
/* attribution and scale controls
|
298
|
+
|
299
|
+
.leaflet-container .leaflet-control-attribution
|
300
|
+
background-color: rgba(255, 255, 255, 0.7)
|
301
|
+
box-shadow: 0 0 5px #bbb
|
302
|
+
margin: 0
|
303
|
+
|
304
|
+
.leaflet-control-attribution, .leaflet-control-scale-line
|
305
|
+
padding: 0 5px
|
306
|
+
color: #333
|
307
|
+
|
308
|
+
.leaflet-container
|
309
|
+
.leaflet-control-attribution, .leaflet-control-scale
|
310
|
+
font-size: 11px
|
311
|
+
|
312
|
+
.leaflet-left .leaflet-control-scale
|
313
|
+
margin-left: 5px
|
314
|
+
|
315
|
+
.leaflet-bottom .leaflet-control-scale
|
316
|
+
margin-bottom: 5px
|
317
|
+
|
318
|
+
.leaflet-control-scale-line
|
319
|
+
border: 2px solid #777
|
320
|
+
border-top: none
|
321
|
+
color: black
|
322
|
+
line-height: 1.1
|
323
|
+
padding: 2px 5px 1px
|
324
|
+
font-size: 11px
|
325
|
+
text-shadow: 1px 1px 1px #fff
|
326
|
+
background-color: rgba(255, 255, 255, 0.5)
|
327
|
+
box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2)
|
328
|
+
white-space: nowrap
|
329
|
+
overflow: hidden
|
330
|
+
&:not(:first-child)
|
331
|
+
border-top: 2px solid #777
|
332
|
+
border-bottom: none
|
333
|
+
margin-top: -2px
|
334
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)
|
335
|
+
&:not(:last-child)
|
336
|
+
border-bottom: 2px solid #777
|
337
|
+
|
338
|
+
.leaflet-touch
|
339
|
+
.leaflet-control-attribution, .leaflet-control-layers, .leaflet-control-zoom
|
340
|
+
box-shadow: none
|
341
|
+
.leaflet-control-layers, .leaflet-control-zoom
|
342
|
+
border: 4px solid rgba(0, 0, 0, 0.3)
|
343
|
+
|
344
|
+
/* popup
|
345
|
+
|
346
|
+
.leaflet-popup
|
347
|
+
position: absolute
|
348
|
+
text-align: center
|
349
|
+
|
350
|
+
.leaflet-popup-content-wrapper
|
351
|
+
padding: 1px
|
352
|
+
text-align: left
|
353
|
+
-webkit-border-radius: 20px
|
354
|
+
border-radius: 20px
|
355
|
+
|
356
|
+
.leaflet-popup-content
|
357
|
+
margin: 14px 20px
|
358
|
+
line-height: 1.4
|
359
|
+
p
|
360
|
+
margin: 18px 0
|
361
|
+
|
362
|
+
.leaflet-popup-tip-container
|
363
|
+
margin: 0 auto
|
364
|
+
width: 40px
|
365
|
+
height: 20px
|
366
|
+
position: relative
|
367
|
+
overflow: hidden
|
368
|
+
|
369
|
+
.leaflet-popup-tip
|
370
|
+
width: 15px
|
371
|
+
height: 15px
|
372
|
+
padding: 1px
|
373
|
+
margin: -8px auto 0
|
374
|
+
-webkit-transform: rotate(45deg)
|
375
|
+
-moz-transform: rotate(45deg)
|
376
|
+
-ms-transform: rotate(45deg)
|
377
|
+
-o-transform: rotate(45deg)
|
378
|
+
transform: rotate(45deg)
|
379
|
+
|
380
|
+
.leaflet-popup-content-wrapper, .leaflet-popup-tip
|
381
|
+
background: white
|
382
|
+
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4)
|
383
|
+
|
384
|
+
.leaflet-container a.leaflet-popup-close-button
|
385
|
+
position: absolute
|
386
|
+
top: 0
|
387
|
+
right: 0
|
388
|
+
padding: 4px 5px 0 0
|
389
|
+
text-align: center
|
390
|
+
width: 18px
|
391
|
+
height: 14px
|
392
|
+
font: 16px/14px Tahoma, Verdana, sans-serif
|
393
|
+
color: #c3c3c3
|
394
|
+
text-decoration: none
|
395
|
+
font-weight: bold
|
396
|
+
background: transparent
|
397
|
+
&:hover
|
398
|
+
color: #999
|
399
|
+
|
400
|
+
.leaflet-popup-scrolled
|
401
|
+
overflow: auto
|
402
|
+
border-bottom: 1px solid #ddd
|
403
|
+
border-top: 1px solid #ddd
|
404
|
+
|
405
|
+
/* div icon
|
406
|
+
|
407
|
+
.leaflet-div-icon
|
408
|
+
background: #fff
|
409
|
+
border: 1px solid #666
|
410
|
+
|
411
|
+
.leaflet-editing-icon
|
412
|
+
-webkit-border-radius: 2px
|
413
|
+
border-radius: 2px
|
414
|
+
|
415
|
+
.map-legends
|
416
|
+
border: 1px solid #bbb
|
417
|
+
box-sizing: border-box
|
418
|
+
background: #fff
|
419
|
+
-webkit-border-radius: 3px
|
420
|
+
border-radius: 3px
|
421
|
+
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
422
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
423
|
+
.map-legend
|
424
|
+
padding: 10px
|
425
|
+
|
426
|
+
.map-tooltip
|
427
|
+
z-index: 999999
|
428
|
+
padding: 10px
|
429
|
+
max-width: 300px
|
430
|
+
opacity: 1
|
431
|
+
-webkit-transition: opacity 150ms
|
432
|
+
-moz-transition: opacity 150ms
|
433
|
+
-ms-transition: opacity 150ms
|
434
|
+
-o-transition: opacity 150ms
|
435
|
+
transition: opacity 150ms
|
436
|
+
-webkit-user-select: auto
|
437
|
+
-moz-user-select: auto
|
438
|
+
user-select: auto
|
439
|
+
border: 1px solid #bbb
|
440
|
+
box-sizing: border-box
|
441
|
+
background: #fff
|
442
|
+
-webkit-border-radius: 3px
|
443
|
+
border-radius: 3px
|
444
|
+
min-width: 180px
|
445
|
+
max-width: 280px
|
446
|
+
max-height: 400px
|
447
|
+
overflow: auto
|
448
|
+
width: 220px\8
|
449
|
+
/*< IE 9
|
450
|
+
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
451
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
452
|
+
.close
|
453
|
+
text-indent: -999em
|
454
|
+
background: white url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAeCAYAAADO4udXAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHFSURBVHic7dpBbsIwEAXQoZpbwKKz8Bm66EFyjUicI1KuwUF6Ci/cBbmFJbqoLbluJezgMSn8JyGhJMRAvmZiw+5yuRBAay/3fgPwmBAsUIFggQoEC1QgWKACwQIVCBaoQLCgiIiMIjKWHo9gbVy4oJ/po9e42fPiUBERcemBxpiD935i5qO19ly6rzUR+SAics69a46zFc65WUSIKi9sA2MYN449O+fm0hcXVyzv/UREb977kzHmELeHUJ3Cvqn0fDfYhwfoi5WqKlREFRWLmY8hQPsQroGIKG4jooWZjzWDw3VJG4oXtnflWqU4WNbaszFmSMMVdsVQDdpt8NmkoYoVI2lPPY0iQjVVa1f774ak9cV2pBqqcE91rfUtre+57jGuiIxJgFa3oS0orljQxU03zGv8NeNzzr3eet6qipVVqyVs7toK43S7xYffmmwpoVulysPV4rstnhXmoWLmgZkH+g7YPp8twnOrXW74UZ2stecsXD2WG55F1Ur3Wtmss1mFrF1u+LUImswWp07LDcv1Q/6n3u1dc9ZZPSuExxErosa9HIIFKvAjNKhAsEAFggUqECxQgWCBCgQLVCBYoALBAhVfpi7sxwlEhWYAAAAASUVORK5CYII=) no-repeat 0 0
|
455
|
+
overflow: hidden
|
456
|
+
display: none
|
457
|
+
&.closable .close
|
458
|
+
&:active
|
459
|
+
border-color: #b0b0b0
|
460
|
+
background-color: #f0f0f0
|
461
|
+
position: absolute
|
462
|
+
top: 4px
|
463
|
+
right: 4px
|
464
|
+
width: 20px
|
465
|
+
height: 20px
|
466
|
+
background-position: -5px -5px
|
467
|
+
border-radius: 10px
|
468
|
+
display: block
|
469
|
+
|
470
|
+
/* Leaflet Overrides
|
471
|
+
|
472
|
+
.leaflet-control-interaction
|
473
|
+
position: absolute
|
474
|
+
top: 10px
|
475
|
+
right: 10px
|
476
|
+
width: 300px
|
477
|
+
|
478
|
+
.leaflet-popup
|
479
|
+
pointer-events: none
|
480
|
+
|
481
|
+
.leaflet-popup-close-button
|
482
|
+
pointer-events: all
|
483
|
+
|
484
|
+
.leaflet-popup-content-wrapper
|
485
|
+
border-radius: 2px
|
486
|
+
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
487
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
488
|
+
pointer-events: all
|
489
|
+
|
490
|
+
.leaflet-popup-content
|
491
|
+
line-height: 1.6em
|
492
|
+
margin: 12px 16px
|
493
|
+
.marker-title
|
494
|
+
font-weight: bold
|
495
|
+
line-height: 2em
|
496
|
+
|
497
|
+
.leaflet-popup-tip
|
498
|
+
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
499
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
|
500
|
+
|
501
|
+
.leaflet-control-mapbox-geocoder
|
502
|
+
input
|
503
|
+
outline: none
|
504
|
+
padding: 5px
|
505
|
+
&.searching:before
|
506
|
+
content: ''
|
507
|
+
background: #cccccc
|
508
|
+
background: rgba(224, 224, 224, 0.5)
|
509
|
+
position: absolute
|
510
|
+
left: 0px
|
511
|
+
top: 0px
|
512
|
+
right: 0px
|
513
|
+
bottom: 0px
|
514
|
+
z-index: 100
|
515
|
+
|
516
|
+
.leaflet-bar
|
517
|
+
box-shadow: none
|
518
|
+
|
519
|
+
.leaflet-control .mapbox-button
|
520
|
+
border-radius: 4px
|
521
|
+
font-weight: bold
|
522
|
+
padding: 5px 8px
|
523
|
+
|
524
|
+
/* Cursors
|
525
|
+
|
526
|
+
.leaflet-container
|
527
|
+
cursor: default
|
528
|
+
cursor: -webkit-default
|
529
|
+
cursor: -moz-default
|
530
|
+
|
531
|
+
.leaflet-dragging
|
532
|
+
cursor: move
|
533
|
+
cursor: -webkit-grabbing
|
534
|
+
cursor: -moz-grabbing
|
535
|
+
|
536
|
+
.leaflet-clickable, .leaflet-container.map-clickable
|
537
|
+
cursor: pointer
|
538
|
+
cursor: -webkit-pointer
|
539
|
+
cursor: -moz-pointer
|
540
|
+
|
541
|
+
/* Light Theme (default)
|
542
|
+
|
543
|
+
.leaflet-control .mapbox-button
|
544
|
+
background: #fff
|
545
|
+
border: 1px solid #bbb
|
546
|
+
&:hover
|
547
|
+
background: #F4F4F4
|
548
|
+
cursor: pointer
|
549
|
+
|
550
|
+
.leaflet-bar, .leaflet-touch .leaflet-bar
|
551
|
+
border: 1px solid #bbb
|
552
|
+
|
553
|
+
.leaflet-bar a:active, .leaflet-control .mapbox-button:active
|
554
|
+
background: #e2e2e2
|
555
|
+
|
556
|
+
.leaflet-control-mapbox-geocoder input
|
557
|
+
&[type=text]
|
558
|
+
border: 1px solid #bbb
|
559
|
+
&:focus
|
560
|
+
border-color: #888
|
561
|
+
|
562
|
+
/* Dark Theme
|
563
|
+
|
564
|
+
.leaflet-container.dark
|
565
|
+
.leaflet-bar
|
566
|
+
border-color: #000
|
567
|
+
a
|
568
|
+
background: #404040
|
569
|
+
color: #fff
|
570
|
+
border-color: #000
|
571
|
+
.leaflet-control .mapbox-button
|
572
|
+
background: #404040
|
573
|
+
color: #fff
|
574
|
+
border-color: #000
|
575
|
+
.leaflet-bar a:hover, .leaflet-control .mapbox-button:hover
|
576
|
+
background: #565656
|
577
|
+
.leaflet-bar a:active, .leaflet-control .mapbox-button:active
|
578
|
+
background: #6B6B6B
|
579
|
+
.leaflet-bar a.leaflet-disabled, .leaflet-control .mapbox-button.disabled
|
580
|
+
background: #252525
|
581
|
+
color: #474747
|
582
|
+
.leaflet-control-mapbox-geocoder input
|
583
|
+
&[type=text]
|
584
|
+
background: #565656
|
585
|
+
border-color: #000
|
586
|
+
color: #fff
|
587
|
+
&:focus
|
588
|
+
border-color: #ccc
|