mapbox-gl-rails 1.10.1 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mapbox-gl.js +1089 -779
- data/app/assets/stylesheets/mapbox-gl.scss +42 -29
- data/lib/mapbox-gl/rails/version.rb +1 -1
- metadata +3 -3
@@ -184,7 +184,7 @@
|
|
184
184
|
}
|
185
185
|
}
|
186
186
|
|
187
|
-
.mapboxgl-ctrl-group button:focus {
|
187
|
+
.mapboxgl-ctrl-attrib-button:focus, .mapboxgl-ctrl-group button:focus {
|
188
188
|
box-shadow: 0 0 2px 2px #0096ff;
|
189
189
|
}
|
190
190
|
|
@@ -465,45 +465,58 @@ a.mapboxgl-ctrl-logo {
|
|
465
465
|
}
|
466
466
|
|
467
467
|
@media screen {
|
468
|
-
.mapboxgl-ctrl-attrib
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
468
|
+
.mapboxgl-ctrl-attrib {
|
469
|
+
&.mapboxgl-compact {
|
470
|
+
min-height: 20px;
|
471
|
+
padding: 2px 24px 2px 0;
|
472
|
+
margin: 10px;
|
473
|
+
position: relative;
|
474
|
+
background-color: #fff;
|
475
|
+
border-radius: 12px;
|
476
|
+
}
|
475
477
|
|
476
|
-
|
477
|
-
padding: 2px
|
478
|
+
&.mapboxgl-compact-show {
|
479
|
+
padding: 2px 28px 2px 8px;
|
478
480
|
visibility: visible;
|
479
|
-
margin-top: 6px;
|
480
481
|
}
|
481
482
|
}
|
482
483
|
|
483
|
-
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact
|
484
|
-
padding: 2px
|
485
|
-
border-radius: 12px
|
484
|
+
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact-show, .mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact-show {
|
485
|
+
padding: 2px 8px 2px 28px;
|
486
|
+
border-radius: 12px;
|
486
487
|
}
|
487
488
|
|
488
|
-
.mapboxgl-ctrl-attrib.mapboxgl-compact {
|
489
|
-
|
490
|
-
|
491
|
-
}
|
489
|
+
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner {
|
490
|
+
display: none;
|
491
|
+
}
|
492
492
|
|
493
|
-
|
493
|
+
.mapboxgl-ctrl-attrib-button {
|
494
|
+
display: none;
|
495
|
+
cursor: pointer;
|
496
|
+
position: absolute;
|
497
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");
|
498
|
+
background-color: hsla(0, 0%, 100%, 0.5);
|
499
|
+
width: 24px;
|
500
|
+
height: 24px;
|
501
|
+
box-sizing: border-box;
|
502
|
+
border-radius: 12px;
|
503
|
+
outline: none;
|
504
|
+
top: 0;
|
505
|
+
right: 0;
|
506
|
+
border: 0;
|
507
|
+
}
|
508
|
+
|
509
|
+
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button, .mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button {
|
510
|
+
left: 0;
|
511
|
+
}
|
512
|
+
|
513
|
+
.mapboxgl-ctrl-attrib {
|
514
|
+
&.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner, &.mapboxgl-compact .mapboxgl-ctrl-attrib-button {
|
494
515
|
display: block;
|
495
516
|
}
|
496
517
|
|
497
|
-
|
498
|
-
|
499
|
-
cursor: pointer;
|
500
|
-
position: absolute;
|
501
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");
|
502
|
-
background-color: hsla(0, 0%, 100%, 0.5);
|
503
|
-
width: 24px;
|
504
|
-
height: 24px;
|
505
|
-
box-sizing: border-box;
|
506
|
-
border-radius: 12px;
|
518
|
+
&.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button {
|
519
|
+
background-color: rgba(0, 0, 0, 0.05);
|
507
520
|
}
|
508
521
|
}
|
509
522
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mapbox-gl-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Bulai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.1.2
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: an asset gemification of the Mapbox GL JS library
|