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.
@@ -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.mapboxgl-compact {
469
- min-height: 20px;
470
- padding: 0;
471
- margin: 10px;
472
- position: relative;
473
- background-color: #fff;
474
- border-radius: 3px 12px 12px 3px;
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
- &:hover {
477
- padding: 2px 24px 2px 4px;
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:hover, .mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover {
484
- padding: 2px 4px 2px 24px;
485
- border-radius: 12px 3px 3px 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
- .mapboxgl-ctrl-attrib-inner {
490
- display: none;
491
- }
489
+ .mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner {
490
+ display: none;
491
+ }
492
492
 
493
- &:hover .mapboxgl-ctrl-attrib-inner {
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
- &:after {
498
- content: "";
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
 
@@ -14,7 +14,7 @@ module MapboxGl
14
14
  # Major version number
15
15
  MAJOR = 1
16
16
  # Minor version number
17
- MINOR = 10
17
+ MINOR = 13
18
18
  # Smallest version number
19
19
  TINY = 1
20
20
 
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.10.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: 2020-05-30 00:00:00.000000000 Z
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.0.2
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