mapbox-gl-rails 2.7.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  font: 12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;
3
3
  overflow: hidden;
4
4
  position: relative;
5
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
5
+ -webkit-tap-highlight-color: rgb(0 0 0 / 0);
6
6
  }
7
7
 
8
8
  .mapboxgl-canvas {
@@ -123,7 +123,7 @@
123
123
  background: #fff;
124
124
 
125
125
  &:not(:empty) {
126
- box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
126
+ box-shadow: 0 0 0 2px rgb(0 0 0 / 10%);
127
127
  }
128
128
 
129
129
  button {
@@ -169,32 +169,18 @@
169
169
  }
170
170
 
171
171
  .mapboxgl-ctrl-attrib-button:focus, .mapboxgl-ctrl-group button:focus {
172
- box-shadow: 0 0 2px 2px #0096ff;
172
+ box-shadow: 0 0 2px 2px rgb(0 150 255 / 100%);
173
173
  }
174
174
 
175
- .mapboxgl-ctrl button {
176
- &:disabled {
177
- cursor: not-allowed;
175
+ .mapboxgl-ctrl button:disabled {
176
+ cursor: not-allowed;
178
177
 
179
- .mapboxgl-ctrl-icon {
180
- opacity: .25;
181
- }
182
- }
183
-
184
- &:not(:disabled):hover {
185
- background-color: rgba(0, 0, 0, 0.05);
178
+ .mapboxgl-ctrl-icon {
179
+ opacity: .25;
186
180
  }
187
181
  }
188
182
 
189
- .mapboxgl-ctrl-group button:focus {
190
- &:focus-visible {
191
- box-shadow: 0 0 2px 2px #0096ff;
192
- }
193
-
194
- &:not(:focus-visible) {
195
- box-shadow: none;
196
- }
197
-
183
+ .mapboxgl-ctrl-group button {
198
184
  &:first-child {
199
185
  border-radius: 4px 4px 0 0;
200
186
  }
@@ -208,6 +194,20 @@
208
194
  }
209
195
  }
210
196
 
197
+ .mapboxgl-ctrl button:not(:disabled):hover {
198
+ background-color: rgb(0 0 0 / 5%);
199
+ }
200
+
201
+ .mapboxgl-ctrl-group button:focus {
202
+ &:focus-visible {
203
+ box-shadow: 0 0 2px 2px rgb(0 150 255 / 100%);
204
+ }
205
+
206
+ &:not(:focus-visible) {
207
+ box-shadow: none;
208
+ }
209
+ }
210
+
211
211
  .mapboxgl-ctrl button {
212
212
  &.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
213
213
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E %3C/svg%3E");
@@ -400,7 +400,7 @@ a.mapboxgl-ctrl-logo {
400
400
 
401
401
  .mapboxgl-ctrl.mapboxgl-ctrl-attrib {
402
402
  padding: 0 5px;
403
- background-color: hsla(0, 0%, 100%, 0.5);
403
+ background-color: rgb(255 255 255 / 50%);
404
404
  margin: 0;
405
405
  }
406
406
 
@@ -435,7 +435,7 @@ a.mapboxgl-ctrl-logo {
435
435
  cursor: pointer;
436
436
  position: absolute;
437
437
  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 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%3E");
438
- background-color: hsla(0, 0%, 100%, 0.5);
438
+ background-color: rgb(255 255 255 / 50%);
439
439
  width: 24px;
440
440
  height: 24px;
441
441
  box-sizing: border-box;
@@ -456,7 +456,7 @@ a.mapboxgl-ctrl-logo {
456
456
  }
457
457
 
458
458
  &.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button {
459
- background-color: rgba(0, 0, 0, 0.05);
459
+ background-color: rgb(0 0 0 / 5%);
460
460
  }
461
461
  }
462
462
 
@@ -495,7 +495,7 @@ a.mapboxgl-ctrl-logo {
495
495
 
496
496
  .mapboxgl-ctrl-attrib {
497
497
  a {
498
- color: rgba(0, 0, 0, 0.75);
498
+ color: rgb(0 0 0 / 75%);
499
499
  text-decoration: none;
500
500
 
501
501
  &:hover {
@@ -515,13 +515,14 @@ a.mapboxgl-ctrl-logo {
515
515
  }
516
516
 
517
517
  .mapboxgl-ctrl-scale {
518
- background-color: hsla(0, 0%, 100%, 0.75);
518
+ background-color: rgb(255 255 255 / 75%);
519
519
  font-size: 10px;
520
520
  border: 2px solid #333;
521
521
  border-top: #333;
522
522
  padding: 0 5px;
523
523
  color: #333;
524
524
  box-sizing: border-box;
525
+ white-space: nowrap;
525
526
  }
526
527
 
527
528
  .mapboxgl-popup {
@@ -618,7 +619,7 @@ a.mapboxgl-ctrl-logo {
618
619
  background-color: transparent;
619
620
 
620
621
  &:hover {
621
- background-color: rgba(0, 0, 0, 0.05);
622
+ background-color: rgb(0 0 0 / 5%);
622
623
  }
623
624
  }
624
625
 
@@ -626,7 +627,7 @@ a.mapboxgl-ctrl-logo {
626
627
  position: relative;
627
628
  background: #fff;
628
629
  border-radius: 3px;
629
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
630
+ box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
630
631
  padding: 10px 10px 15px;
631
632
  pointer-events: auto;
632
633
  }
@@ -701,7 +702,7 @@ a.mapboxgl-ctrl-logo {
701
702
  top: -2px;
702
703
  width: 19px;
703
704
  box-sizing: border-box;
704
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
705
+ box-shadow: 0 0 3px rgb(0 0 0 / 35%);
705
706
  }
706
707
  }
707
708
 
@@ -802,7 +803,7 @@ a.mapboxgl-ctrl-logo {
802
803
  left: 0;
803
804
  width: 100%;
804
805
  height: 100%;
805
- background: rgba(0, 0, 0, 0.7);
806
+ background: rgb(0 0 0 / 70%);
806
807
  opacity: 0;
807
808
  pointer-events: none;
808
809
  transition: opacity .75s ease-in-out;
@@ -14,7 +14,7 @@ module MapboxGl
14
14
  # Major version number
15
15
  MAJOR = 2
16
16
  # Minor version number
17
- MINOR = 7
17
+ MINOR = 9
18
18
  # Smallest version number
19
19
  TINY = 0
20
20
 
@@ -1,2 +1,2 @@
1
1
  //= link_directory ../javascripts .js
2
- //= link_directory ../stylesheets .scss
2
+ //= link_directory ../stylesheets .css
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: 2.7.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Bulai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-12 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties