leaflet-rails 0.6.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,6 +65,16 @@
65
65
  .leaflet-marker-pane { z-index: 6; }
66
66
  .leaflet-popup-pane { z-index: 7; }
67
67
 
68
+ .leaflet-vml-shape {
69
+ width: 1px;
70
+ height: 1px;
71
+ }
72
+ .lvml {
73
+ behavior: url(#default#VML);
74
+ display: inline-block;
75
+ position: absolute;
76
+ }
77
+
68
78
 
69
79
  /* control positioning */
70
80
 
@@ -160,9 +170,8 @@
160
170
  .leaflet-control {
161
171
  cursor: auto;
162
172
  }
163
- .leaflet-dragging,
164
- .leaflet-dragging .leaflet-clickable,
165
- .leaflet-dragging .leaflet-container {
173
+ .leaflet-dragging .leaflet-container,
174
+ .leaflet-dragging .leaflet-clickable {
166
175
  cursor: move;
167
176
  cursor: -webkit-grabbing;
168
177
  cursor: -moz-grabbing;
@@ -182,9 +191,8 @@
182
191
  outline: 2px solid orange;
183
192
  }
184
193
  .leaflet-zoom-box {
185
- border: 2px dotted #05f;
186
- background: white;
187
- opacity: 0.5;
194
+ border: 2px dotted #38f;
195
+ background: rgba(255,255,255,0.5);
188
196
  }
189
197
 
190
198
 
@@ -197,11 +205,11 @@
197
205
  /* general toolbar styles */
198
206
 
199
207
  .leaflet-bar {
200
- box-shadow: 0 1px 7px rgba(0,0,0,0.65);
201
- -webkit-border-radius: 4px;
202
- border-radius: 4px;
208
+ box-shadow: 0 1px 5px rgba(0,0,0,0.65);
209
+ border-radius: 4px;
203
210
  }
204
- .leaflet-bar a, .leaflet-bar a:hover {
211
+ .leaflet-bar a,
212
+ .leaflet-bar a:hover {
205
213
  background-color: #fff;
206
214
  border-bottom: 1px solid #ccc;
207
215
  width: 26px;
@@ -222,16 +230,12 @@
222
230
  background-color: #f4f4f4;
223
231
  }
224
232
  .leaflet-bar a:first-child {
225
- -webkit-border-top-left-radius: 4px;
226
- border-top-left-radius: 4px;
227
- -webkit-border-top-right-radius: 4px;
228
- border-top-right-radius: 4px;
233
+ border-top-left-radius: 4px;
234
+ border-top-right-radius: 4px;
229
235
  }
230
236
  .leaflet-bar a:last-child {
231
- -webkit-border-bottom-left-radius: 4px;
232
- border-bottom-left-radius: 4px;
233
- -webkit-border-bottom-right-radius: 4px;
234
- border-bottom-right-radius: 4px;
237
+ border-bottom-left-radius: 4px;
238
+ border-bottom-right-radius: 4px;
235
239
  border-bottom: none;
236
240
  }
237
241
  .leaflet-bar a.leaflet-disabled {
@@ -240,55 +244,38 @@
240
244
  color: #bbb;
241
245
  }
242
246
 
243
- .leaflet-touch .leaflet-bar {
244
- -webkit-border-radius: 10px;
245
- border-radius: 10px;
246
- }
247
247
  .leaflet-touch .leaflet-bar a {
248
248
  width: 30px;
249
249
  height: 30px;
250
- }
251
- .leaflet-touch .leaflet-bar a:first-child {
252
- -webkit-border-top-left-radius: 7px;
253
- border-top-left-radius: 7px;
254
- -webkit-border-top-right-radius: 7px;
255
- border-top-right-radius: 7px;
256
- }
257
- .leaflet-touch .leaflet-bar a:last-child {
258
- -webkit-border-bottom-left-radius: 7px;
259
- border-bottom-left-radius: 7px;
260
- -webkit-border-bottom-right-radius: 7px;
261
- border-bottom-right-radius: 7px;
262
- border-bottom: none;
250
+ line-height: 30px;
263
251
  }
264
252
 
265
253
 
266
254
  /* zoom control */
267
255
 
268
- .leaflet-control-zoom-in {
256
+ .leaflet-control-zoom-in,
257
+ .leaflet-control-zoom-out {
269
258
  font: bold 18px 'Lucida Console', Monaco, monospace;
259
+ text-indent: 1px;
270
260
  }
271
261
  .leaflet-control-zoom-out {
272
- font: bold 22px 'Lucida Console', Monaco, monospace;
262
+ font-size: 20px;
273
263
  }
274
264
 
275
265
  .leaflet-touch .leaflet-control-zoom-in {
276
266
  font-size: 22px;
277
- line-height: 30px;
278
267
  }
279
268
  .leaflet-touch .leaflet-control-zoom-out {
280
- font-size: 28px;
281
- line-height: 30px;
269
+ font-size: 24px;
282
270
  }
283
271
 
284
272
 
285
273
  /* layers control */
286
274
 
287
275
  .leaflet-control-layers {
288
- box-shadow: 0 1px 7px rgba(0,0,0,0.4);
289
- background: #f8f8f9;
290
- -webkit-border-radius: 5px;
291
- border-radius: 5px;
276
+ box-shadow: 0 1px 5px rgba(0,0,0,0.4);
277
+ background: #fff;
278
+ border-radius: 5px;
292
279
  }
293
280
  .leaflet-control-layers-toggle {
294
281
  background-image: url(<%= asset_path 'layers.png' %>);
@@ -334,8 +321,8 @@
334
321
  /* attribution and scale controls */
335
322
 
336
323
  .leaflet-container .leaflet-control-attribution {
337
- background-color: rgba(255, 255, 255, 0.7);
338
- box-shadow: 0 0 5px #bbb;
324
+ background: #fff;
325
+ background: rgba(255, 255, 255, 0.7);
339
326
  margin: 0;
340
327
  }
341
328
  .leaflet-control-attribution,
@@ -343,6 +330,12 @@
343
330
  padding: 0 5px;
344
331
  color: #333;
345
332
  }
333
+ .leaflet-control-attribution a {
334
+ text-decoration: none;
335
+ }
336
+ .leaflet-control-attribution a:hover {
337
+ text-decoration: underline;
338
+ }
346
339
  .leaflet-container .leaflet-control-attribution,
347
340
  .leaflet-container .leaflet-control-scale {
348
341
  font-size: 11px;
@@ -356,21 +349,21 @@
356
349
  .leaflet-control-scale-line {
357
350
  border: 2px solid #777;
358
351
  border-top: none;
359
- color: black;
360
352
  line-height: 1.1;
361
353
  padding: 2px 5px 1px;
362
354
  font-size: 11px;
363
- text-shadow: 1px 1px 1px #fff;
364
- background-color: rgba(255, 255, 255, 0.5);
365
- box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
366
355
  white-space: nowrap;
367
356
  overflow: hidden;
357
+ -moz-box-sizing: content-box;
358
+ box-sizing: content-box;
359
+
360
+ background: #fff;
361
+ background: rgba(255, 255, 255, 0.5);
368
362
  }
369
363
  .leaflet-control-scale-line:not(:first-child) {
370
364
  border-top: 2px solid #777;
371
365
  border-bottom: none;
372
366
  margin-top: -2px;
373
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
374
367
  }
375
368
  .leaflet-control-scale-line:not(:first-child):not(:last-child) {
376
369
  border-bottom: 2px solid #777;
@@ -383,7 +376,8 @@
383
376
  }
384
377
  .leaflet-touch .leaflet-control-layers,
385
378
  .leaflet-touch .leaflet-bar {
386
- border: 4px solid rgba(0,0,0,0.3);
379
+ border: 2px solid rgba(0,0,0,0.2);
380
+ background-clip: padding-box;
387
381
  }
388
382
 
389
383
 
@@ -396,8 +390,7 @@
396
390
  .leaflet-popup-content-wrapper {
397
391
  padding: 1px;
398
392
  text-align: left;
399
- -webkit-border-radius: 12px;
400
- border-radius: 12px;
393
+ border-radius: 12px;
401
394
  }
402
395
  .leaflet-popup-content {
403
396
  margin: 13px 19px;
@@ -426,7 +419,8 @@
426
419
  -o-transform: rotate(45deg);
427
420
  transform: rotate(45deg);
428
421
  }
429
- .leaflet-popup-content-wrapper, .leaflet-popup-tip {
422
+ .leaflet-popup-content-wrapper,
423
+ .leaflet-popup-tip {
430
424
  background: white;
431
425
 
432
426
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
@@ -454,6 +448,27 @@
454
448
  border-top: 1px solid #ddd;
455
449
  }
456
450
 
451
+ .leaflet-oldie .leaflet-popup-content-wrapper {
452
+ zoom: 1;
453
+ }
454
+ .leaflet-oldie .leaflet-popup-tip {
455
+ width: 24px;
456
+ margin: 0 auto;
457
+
458
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
459
+ filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
460
+ }
461
+ .leaflet-oldie .leaflet-popup-tip-container {
462
+ margin-top: -1px;
463
+ }
464
+
465
+ .leaflet-oldie .leaflet-control-zoom,
466
+ .leaflet-oldie .leaflet-control-layers,
467
+ .leaflet-oldie .leaflet-popup-content-wrapper,
468
+ .leaflet-oldie .leaflet-popup-tip {
469
+ border: 1px solid #999;
470
+ }
471
+
457
472
 
458
473
  /* div icon */
459
474
 
@@ -461,7 +476,3 @@
461
476
  background: #fff;
462
477
  border: 1px solid #666;
463
478
  }
464
- .leaflet-editing-icon {
465
- -webkit-border-radius: 2px;
466
- border-radius: 2px;
467
- }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leaflet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-01 00:00:00.000000000 Z
12
+ date: 2013-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -135,7 +135,6 @@ files:
135
135
  - vendor/assets/images/marker-shadow.png
136
136
  - vendor/assets/javascripts/leaflet.js.erb
137
137
  - vendor/assets/stylesheets/leaflet.css.erb
138
- - vendor/assets/stylesheets/leaflet.ie.css
139
138
  homepage: ''
140
139
  licenses:
141
140
  - BSD
@@ -1,51 +0,0 @@
1
- .leaflet-vml-shape {
2
- width: 1px;
3
- height: 1px;
4
- }
5
- .lvml {
6
- behavior: url(#default#VML);
7
- display: inline-block;
8
- position: absolute;
9
- }
10
-
11
- .leaflet-control {
12
- display: inline;
13
- }
14
-
15
- .leaflet-popup-tip {
16
- width: 21px;
17
- _width: 27px;
18
- margin: 0 auto;
19
- _margin-top: -3px;
20
-
21
- filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
22
- -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
23
- }
24
- .leaflet-popup-tip-container {
25
- margin-top: -1px;
26
- }
27
- .leaflet-popup-content-wrapper, .leaflet-popup-tip {
28
- border: 1px solid #999;
29
- }
30
- .leaflet-popup-content-wrapper {
31
- zoom: 1;
32
- }
33
-
34
- .leaflet-control-zoom,
35
- .leaflet-control-layers {
36
- border: 3px solid #999;
37
- }
38
- .leaflet-control-layers-toggle {
39
- }
40
- .leaflet-control-attribution,
41
- .leaflet-control-layers,
42
- .leaflet-control-scale-line {
43
- background: white;
44
- }
45
- .leaflet-zoom-box {
46
- filter: alpha(opacity=50);
47
- }
48
- .leaflet-control-attribution {
49
- border-top: 1px solid #bbb;
50
- border-left: 1px solid #bbb;
51
- }