@antv/l7-component 2.22.4 → 2.22.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -180,6 +180,7 @@ loadStyles(`.l7-marker-container {
180
180
  height: 100%;
181
181
  overflow: hidden;
182
182
  }
183
+
183
184
  .l7-marker {
184
185
  position: absolute !important;
185
186
  top: 0;
@@ -187,13 +188,15 @@ loadStyles(`.l7-marker-container {
187
188
  z-index: 5;
188
189
  cursor: pointer;
189
190
  }
191
+
190
192
  .l7-marker-cluster {
191
193
  width: 40px;
192
194
  height: 40px;
193
- background-color: rgba(181, 226, 140, 0.6);
195
+ background-color: rgb(181 226 140 / 60%);
194
196
  background-clip: padding-box;
195
197
  border-radius: 20px;
196
198
  }
199
+
197
200
  .l7-marker-cluster div {
198
201
  width: 30px;
199
202
  height: 30px;
@@ -205,26 +208,31 @@ loadStyles(`.l7-marker-container {
205
208
  Helvetica,
206
209
  sans-serif;
207
210
  text-align: center;
208
- background-color: rgba(110, 204, 57, 0.6);
211
+ background-color: rgb(110 204 57 / 60%);
209
212
  border-radius: 15px;
210
213
  }
214
+
211
215
  .l7-marker-cluster span {
212
216
  line-height: 30px;
213
217
  }
218
+
214
219
  .l7-touch .l7-control-attribution,
215
220
  .l7-touch .l7-control-layers,
216
221
  .l7-touch .l7-bar {
217
222
  box-shadow: none;
218
223
  }
224
+
219
225
  .l7-touch .l7-control-layers,
220
226
  .l7-touch .l7-bar {
221
227
  background-clip: padding-box;
222
- border: 2px solid rgba(0, 0, 0, 0.2);
228
+ border: 2px solid rgb(0 0 0 / 20%);
223
229
  }
230
+
224
231
  .mapboxgl-ctrl-logo,
225
232
  .amap-logo {
226
233
  display: none !important;
227
234
  }
235
+
228
236
  .l7-select-box {
229
237
  border: 3px dashed gray;
230
238
  border-radius: 2px;
@@ -232,6 +240,7 @@ loadStyles(`.l7-marker-container {
232
240
  z-index: 999;
233
241
  box-sizing: border-box;
234
242
  }
243
+
235
244
  .l7-control-container {
236
245
  font:
237
246
  12px/1.5 'Helvetica Neue',
@@ -239,6 +248,7 @@ loadStyles(`.l7-marker-container {
239
248
  Helvetica,
240
249
  sans-serif;
241
250
  }
251
+
242
252
  .l7-control-container .l7-control {
243
253
  position: relative;
244
254
  z-index: 999;
@@ -246,13 +256,16 @@ loadStyles(`.l7-marker-container {
246
256
  clear: both;
247
257
  color: #595959;
248
258
  font-size: 12px;
249
- pointer-events: visiblePainted;
259
+ pointer-events: visiblepainted;
260
+
250
261
  /* IE 9-10 doesn't have auto */
251
262
  pointer-events: auto;
252
263
  }
264
+
253
265
  .l7-control-container .l7-control.l7-control--hide {
254
266
  display: none;
255
267
  }
268
+
256
269
  .l7-control-container .l7-top {
257
270
  top: 0;
258
271
  display: flex;
@@ -260,9 +273,11 @@ loadStyles(`.l7-marker-container {
260
273
  z-index: 999;
261
274
  pointer-events: none;
262
275
  }
276
+
263
277
  .l7-control-container .l7-top .l7-control:not(.l7-control--hide) {
264
278
  margin-top: 8px;
265
279
  }
280
+
266
281
  .l7-control-container .l7-right {
267
282
  right: 0;
268
283
  display: flex;
@@ -270,9 +285,11 @@ loadStyles(`.l7-marker-container {
270
285
  z-index: 999;
271
286
  pointer-events: none;
272
287
  }
288
+
273
289
  .l7-control-container .l7-right .l7-control:not(.l7-control--hide) {
274
290
  margin-right: 8px;
275
291
  }
292
+
276
293
  .l7-control-container .l7-bottom {
277
294
  bottom: 0;
278
295
  display: flex;
@@ -280,9 +297,11 @@ loadStyles(`.l7-marker-container {
280
297
  z-index: 999;
281
298
  pointer-events: none;
282
299
  }
300
+
283
301
  .l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {
284
302
  margin-bottom: 8px;
285
303
  }
304
+
286
305
  .l7-control-container .l7-left {
287
306
  left: 0;
288
307
  display: flex;
@@ -290,44 +309,56 @@ loadStyles(`.l7-marker-container {
290
309
  z-index: 999;
291
310
  pointer-events: none;
292
311
  }
312
+
293
313
  .l7-control-container .l7-left .l7-control:not(.l7-control--hide) {
294
314
  margin-left: 8px;
295
315
  }
316
+
296
317
  .l7-control-container .l7-center {
297
318
  position: absolute;
298
319
  display: flex;
299
320
  justify-content: center;
300
321
  }
322
+
301
323
  .l7-control-container .l7-center.l7-top,
302
324
  .l7-control-container .l7-center.l7-bottom {
303
325
  width: 100%;
304
326
  }
327
+
305
328
  .l7-control-container .l7-center.l7-left,
306
329
  .l7-control-container .l7-center.l7-right {
307
330
  height: 100%;
308
331
  }
332
+
309
333
  .l7-control-container .l7-center .l7-control {
310
334
  margin-right: 8px;
311
335
  margin-bottom: 8px;
312
336
  }
337
+
313
338
  .l7-control-container .l7-row {
314
339
  flex-direction: row;
315
340
  }
341
+
316
342
  .l7-control-container .l7-row.l7-top {
317
343
  align-items: flex-start;
318
344
  }
345
+
319
346
  .l7-control-container .l7-row.l7-bottom {
320
347
  align-items: flex-end;
321
348
  }
349
+
322
350
  .l7-control-container .l7-column {
323
351
  flex-direction: column;
324
352
  }
353
+
325
354
  .l7-control-container .l7-column.l7-left {
326
355
  align-items: flex-start;
327
356
  }
357
+
328
358
  .l7-control-container .l7-column.l7-right {
329
359
  align-items: flex-end;
330
360
  }
361
+
331
362
  .l7-button-control {
332
363
  min-width: 28px;
333
364
  height: 28px;
@@ -341,55 +372,68 @@ loadStyles(`.l7-marker-container {
341
372
  justify-content: center;
342
373
  align-items: center;
343
374
  padding: 0 6px;
344
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
375
+ box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
345
376
  line-height: 16px;
346
377
  }
378
+
347
379
  .l7-button-control .l7-iconfont {
348
380
  fill: #595959;
349
381
  color: #595959;
350
382
  width: 16px;
351
383
  height: 16px;
352
384
  }
385
+
353
386
  .l7-button-control.l7-button-control--row {
354
387
  padding: 0 16px 0 13px;
355
388
  }
389
+
356
390
  .l7-button-control.l7-button-control--row * + .l7-button-control__text {
357
391
  margin-left: 8px;
358
392
  }
393
+
359
394
  .l7-button-control.l7-button-control--column {
360
395
  height: 44px;
361
396
  flex-direction: column;
362
397
  }
398
+
363
399
  .l7-button-control.l7-button-control--column .l7-iconfont {
364
400
  margin-top: 3px;
365
401
  }
402
+
366
403
  .l7-button-control.l7-button-control--column .l7-button-control__text {
367
404
  margin-top: 3px;
368
405
  font-size: 10px;
369
406
  -webkit-transform: scale(0.83333);
370
407
  transform: scale(0.83333);
371
408
  }
409
+
372
410
  .l7-button-control:not(:disabled):hover {
373
411
  background-color: #f3f3f3;
374
412
  }
413
+
375
414
  .l7-button-control:not(:disabled):active {
376
415
  background-color: #f3f3f3;
377
416
  }
417
+
378
418
  .l7-button-control:disabled {
379
419
  background-color: #fafafa;
380
420
  color: #bdbdbd;
381
421
  cursor: not-allowed;
382
422
  }
423
+
383
424
  .l7-button-control:disabled .l7-iconfont {
384
425
  fill: #bdbdbd;
385
426
  color: #bdbdbd;
386
427
  }
428
+
387
429
  .l7-button-control:disabled:hover {
388
430
  background-color: #fafafa;
389
431
  }
432
+
390
433
  .l7-button-control:disabled:active {
391
434
  background-color: #fafafa;
392
435
  }
436
+
393
437
  .l7-popper {
394
438
  position: absolute;
395
439
  display: flex;
@@ -398,63 +442,75 @@ loadStyles(`.l7-marker-container {
398
442
  z-index: 5;
399
443
  color: #595959;
400
444
  }
445
+
401
446
  .l7-popper.l7-popper-hide {
402
447
  display: none;
403
448
  }
449
+
404
450
  .l7-popper .l7-popper-content {
405
451
  min-height: 28px;
406
452
  background: #fff;
407
453
  border-radius: 2px;
408
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
454
+ box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
409
455
  }
456
+
410
457
  .l7-popper .l7-popper-arrow {
411
458
  width: 0;
412
459
  height: 0;
413
460
  border-width: 4px;
414
461
  border-style: solid;
415
- border-top-color: transparent;
416
- border-bottom-color: transparent;
417
- border-left-color: transparent;
418
- border-right-color: transparent;
419
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
462
+ border-color: transparent;
463
+ box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
420
464
  }
465
+
421
466
  .l7-popper.l7-popper-left {
422
467
  flex-direction: row;
423
468
  }
469
+
424
470
  .l7-popper.l7-popper-left .l7-popper-arrow {
425
471
  border-left-color: #fff;
426
472
  margin: 10px 0;
427
473
  }
474
+
428
475
  .l7-popper.l7-popper-right {
429
476
  flex-direction: row-reverse;
430
477
  }
478
+
431
479
  .l7-popper.l7-popper-right .l7-popper-arrow {
432
480
  border-right-color: #fff;
433
481
  margin: 10px 0;
434
482
  }
483
+
435
484
  .l7-popper.l7-popper-top {
436
485
  flex-direction: column;
437
486
  }
487
+
438
488
  .l7-popper.l7-popper-top .l7-popper-arrow {
439
489
  border-top-color: #fff;
440
490
  margin: 0 10px;
441
491
  }
492
+
442
493
  .l7-popper.l7-popper-bottom {
443
494
  flex-direction: column-reverse;
444
495
  }
496
+
445
497
  .l7-popper.l7-popper-bottom .l7-popper-arrow {
446
498
  border-bottom-color: #fff;
447
499
  margin: 0 10px;
448
500
  }
501
+
449
502
  .l7-popper.l7-popper-start {
450
503
  align-items: flex-start;
451
504
  }
505
+
452
506
  .l7-popper.l7-popper-end {
453
507
  align-items: flex-end;
454
508
  }
509
+
455
510
  .l7-select-control--normal {
456
511
  padding: 4px 0;
457
512
  }
513
+
458
514
  .l7-select-control--normal .l7-select-control-item {
459
515
  display: flex;
460
516
  align-items: center;
@@ -463,16 +519,20 @@ loadStyles(`.l7-marker-container {
463
519
  font-size: 12px;
464
520
  line-height: 24px;
465
521
  }
522
+
466
523
  .l7-select-control--normal .l7-select-control-item > * + * {
467
524
  margin-left: 6px;
468
525
  }
526
+
469
527
  .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
470
528
  width: 14px;
471
529
  height: 14px;
472
530
  }
531
+
473
532
  .l7-select-control--normal .l7-select-control-item:hover {
474
533
  background-color: #f3f3f3;
475
534
  }
535
+
476
536
  .l7-select-control--image {
477
537
  display: flex;
478
538
  flex-wrap: wrap;
@@ -481,9 +541,9 @@ loadStyles(`.l7-marker-container {
481
541
  max-width: 460px;
482
542
  max-height: 400px;
483
543
  margin: 12px 0 0 12px;
484
- overflow-x: hidden;
485
- overflow-y: auto;
544
+ overflow: hidden auto;
486
545
  }
546
+
487
547
  .l7-select-control--image .l7-select-control-item {
488
548
  position: relative;
489
549
  display: flex;
@@ -498,37 +558,46 @@ loadStyles(`.l7-marker-container {
498
558
  border: 1px solid #fff;
499
559
  border-radius: 2px;
500
560
  }
561
+
501
562
  .l7-select-control--image .l7-select-control-item img {
502
563
  width: 100%;
503
564
  height: 80px;
504
565
  }
566
+
505
567
  .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
506
568
  position: absolute;
507
569
  top: 0;
508
570
  right: 0;
509
571
  }
572
+
510
573
  .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
511
574
  display: flex;
512
575
  align-items: center;
513
576
  justify-content: center;
514
577
  line-height: 26px;
515
578
  }
579
+
516
580
  .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
517
581
  margin-left: 8px;
518
582
  }
583
+
519
584
  .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
520
585
  border-color: #0370fe;
521
586
  }
587
+
522
588
  .l7-select-control-item {
523
589
  cursor: pointer;
524
590
  }
591
+
525
592
  .l7-select-control-item input[type='checkbox'] {
526
593
  margin: 0;
527
594
  cursor: pointer;
528
595
  }
596
+
529
597
  .l7-select-control--multiple .l7-select-control-item:hover {
530
598
  background-color: transparent;
531
599
  }
600
+
532
601
  .l7-control-logo {
533
602
  width: 89px;
534
603
  height: 16px;
@@ -537,53 +606,65 @@ loadStyles(`.l7-marker-container {
537
606
  -ms-user-select: none;
538
607
  user-select: none;
539
608
  }
609
+
540
610
  .l7-control-logo img {
541
611
  height: 100%;
542
612
  width: 100%;
543
613
  }
614
+
544
615
  .l7-control-logo .l7-control-logo-link {
545
616
  display: block;
546
617
  cursor: pointer;
547
618
  }
619
+
548
620
  .l7-control-logo .l7-control-logo-link img {
549
621
  cursor: pointer;
550
622
  }
623
+
551
624
  .l7-control-mouse-location {
552
625
  background-color: #fff;
553
626
  border-radius: 2px;
554
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
627
+ box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
555
628
  padding: 2px 4px;
556
629
  min-width: 130px;
557
630
  }
631
+
558
632
  .l7-control-zoom {
559
633
  overflow: hidden;
560
634
  border-radius: 2px;
561
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
635
+ box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
562
636
  }
637
+
563
638
  .l7-control-zoom .l7-button-control {
564
639
  font-size: 16px;
565
640
  border-bottom: 1px solid #f0f0f0;
566
641
  border-radius: 0;
567
642
  box-shadow: 0 0 0;
568
643
  }
644
+
569
645
  .l7-control-zoom .l7-button-control .l7-iconfont {
570
646
  width: 14px;
571
647
  height: 14px;
572
648
  }
649
+
573
650
  .l7-control-zoom .l7-button-control:last-child {
574
651
  border-bottom: 0;
575
652
  }
653
+
576
654
  .l7-control-zoom .l7-control-zoom__number {
577
655
  color: #595959;
578
656
  padding: 0;
579
657
  }
658
+
580
659
  .l7-control-zoom .l7-control-zoom__number:hover {
581
660
  background-color: #fff;
582
661
  }
662
+
583
663
  .l7-control-scale {
584
664
  display: flex;
585
665
  flex-direction: column;
586
666
  }
667
+
587
668
  .l7-control-scale .l7-control-scale-line {
588
669
  box-sizing: border-box;
589
670
  padding: 2px 5px 1px;
@@ -597,18 +678,22 @@ loadStyles(`.l7-marker-container {
597
678
  border-top: 0;
598
679
  transition: width 0.1s;
599
680
  }
681
+
600
682
  .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
601
683
  margin-top: -2px;
602
684
  border-top: 2px solid #777;
603
685
  border-bottom: none;
604
686
  }
687
+
605
688
  .l7-right .l7-control-scale {
606
689
  display: flex;
607
690
  align-items: flex-end;
608
691
  }
692
+
609
693
  .l7-right .l7-control-scale .l7-control-scale-line {
610
694
  text-align: right;
611
695
  }
696
+
612
697
  .l7-popup {
613
698
  position: absolute;
614
699
  top: 0;
@@ -618,21 +703,25 @@ loadStyles(`.l7-marker-container {
618
703
  will-change: transform;
619
704
  pointer-events: none;
620
705
  }
706
+
621
707
  .l7-popup.l7-popup-hide {
622
708
  display: none;
623
709
  }
710
+
624
711
  .l7-popup .l7-popup-content {
625
712
  position: relative;
626
713
  padding: 16px;
627
714
  font-size: 14px;
628
715
  background: #fff;
629
716
  border-radius: 3px;
630
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
717
+ box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
631
718
  }
719
+
632
720
  .l7-popup .l7-popup-content .l7-popup-content__title {
633
721
  margin-bottom: 8px;
634
722
  font-weight: bold;
635
723
  }
724
+
636
725
  .l7-popup .l7-popup-content .l7-popup-close-button,
637
726
  .l7-popup .l7-popup-content .l7-popup-content__title,
638
727
  .l7-popup .l7-popup-content .l7-popup-content__panel {
@@ -643,6 +732,7 @@ loadStyles(`.l7-marker-container {
643
732
  user-select: text;
644
733
  pointer-events: initial;
645
734
  }
735
+
646
736
  .l7-popup .l7-popup-content .l7-popup-close-button {
647
737
  position: absolute;
648
738
  top: 0;
@@ -658,6 +748,7 @@ loadStyles(`.l7-marker-container {
658
748
  border-radius: 0 3px 0 0;
659
749
  cursor: pointer;
660
750
  }
751
+
661
752
  .l7-popup .l7-popup-tip {
662
753
  position: relative;
663
754
  z-index: 1;
@@ -665,93 +756,113 @@ loadStyles(`.l7-marker-container {
665
756
  height: 0;
666
757
  border: 10px solid transparent;
667
758
  }
759
+
668
760
  .l7-popup.l7-popup-anchor-bottom,
669
761
  .l7-popup.l7-popup-anchor-bottom-left,
670
762
  .l7-popup.l7-popup-anchor-bottom-right {
671
763
  flex-direction: column-reverse;
672
764
  }
765
+
673
766
  .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
674
767
  .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
675
768
  .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
676
769
  bottom: 1px;
677
770
  }
771
+
678
772
  .l7-popup.l7-popup-anchor-top,
679
773
  .l7-popup.l7-popup-anchor-top-left,
680
774
  .l7-popup.l7-popup-anchor-top-right {
681
775
  flex-direction: column;
682
776
  }
777
+
683
778
  .l7-popup.l7-popup-anchor-top .l7-popup-tip,
684
779
  .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
685
780
  .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
686
781
  top: 1px;
687
782
  }
783
+
688
784
  .l7-popup.l7-popup-anchor-left {
689
785
  flex-direction: row;
690
786
  }
787
+
691
788
  .l7-popup.l7-popup-anchor-right {
692
789
  flex-direction: row-reverse;
693
790
  }
791
+
694
792
  .l7-popup-anchor-top .l7-popup-tip {
695
793
  position: relative;
696
794
  align-self: center;
697
795
  border-top: none;
698
796
  border-bottom-color: #fff;
699
797
  }
798
+
700
799
  .l7-popup-anchor-top-left .l7-popup-tip {
701
800
  align-self: flex-start;
702
801
  border-top: none;
703
802
  border-bottom-color: #fff;
704
803
  border-left: none;
705
804
  }
805
+
706
806
  .l7-popup-anchor-top-right .l7-popup-tip {
707
807
  align-self: flex-end;
708
808
  border-top: none;
709
809
  border-right: none;
710
810
  border-bottom-color: #fff;
711
811
  }
812
+
712
813
  .l7-popup-anchor-bottom .l7-popup-tip {
713
814
  align-self: center;
714
815
  border-top-color: #fff;
715
816
  border-bottom: none;
716
817
  }
818
+
717
819
  .l7-popup-anchor-bottom-left .l7-popup-tip {
718
820
  align-self: flex-start;
719
821
  border-top-color: #fff;
720
822
  border-bottom: none;
721
823
  border-left: none;
722
824
  }
825
+
723
826
  .l7-popup-anchor-bottom-right .l7-popup-tip {
724
827
  align-self: flex-end;
725
828
  border-top-color: #fff;
726
829
  border-right: none;
727
830
  border-bottom: none;
728
831
  }
832
+
729
833
  .l7-popup-anchor-left .l7-popup-tip {
730
834
  align-self: center;
731
835
  border-right-color: #fff;
732
836
  border-left: none;
733
837
  }
838
+
734
839
  .l7-popup-anchor-right .l7-popup-tip {
735
840
  right: 1px;
736
841
  align-self: center;
737
842
  border-right: none;
738
843
  border-left-color: #fff;
739
844
  }
845
+
740
846
  .l7-popup-anchor-top-left .l7-popup-content {
741
847
  border-top-left-radius: 0;
742
848
  }
849
+
743
850
  .l7-popup-anchor-top-right .l7-popup-content {
744
851
  border-top-right-radius: 0;
745
852
  }
853
+
746
854
  .l7-popup-anchor-bottom-left .l7-popup-content {
747
855
  border-bottom-left-radius: 0;
748
856
  }
857
+
749
858
  .l7-popup-anchor-bottom-right .l7-popup-content {
750
859
  border-bottom-right-radius: 0;
751
860
  }
861
+
752
862
  .l7-popup-track-pointer {
753
863
  display: none;
754
864
  }
865
+
755
866
  .l7-popup-track-pointer * {
756
867
  -webkit-user-select: none;
757
868
  -moz-user-select: none;
@@ -759,18 +870,23 @@ loadStyles(`.l7-marker-container {
759
870
  user-select: none;
760
871
  pointer-events: none;
761
872
  }
873
+
762
874
  .l7-map:hover .l7-popup-track-pointer {
763
875
  display: flex;
764
876
  }
877
+
765
878
  .l7-map:active .l7-popup-track-pointer {
766
879
  display: none;
767
880
  }
881
+
768
882
  .l7-layer-popup__row {
769
883
  font-size: 12px;
770
884
  }
885
+
771
886
  .l7-layer-popup__row + .l7-layer-popup__row {
772
887
  margin-top: 4px;
773
888
  }
889
+
774
890
  .l7-control-swipe {
775
891
  position: absolute;
776
892
  top: 50%;
@@ -780,10 +896,12 @@ loadStyles(`.l7-marker-container {
780
896
  transform: translate(-50%, -50%);
781
897
  touch-action: none;
782
898
  }
899
+
783
900
  .l7-control-swipe_hide {
784
901
  display: none;
785
902
  }
786
- .l7-control-swipe:before {
903
+
904
+ .l7-control-swipe::before {
787
905
  position: absolute;
788
906
  top: -5000px;
789
907
  bottom: -5000px;
@@ -795,14 +913,13 @@ loadStyles(`.l7-marker-container {
795
913
  transform: translate(-2px, 0);
796
914
  content: '';
797
915
  }
798
- .l7-control-swipe.horizontal:before {
799
- top: 50%;
800
- right: -5000px;
801
- bottom: auto;
802
- left: -5000px;
916
+
917
+ .l7-control-swipe.horizontal::before {
918
+ inset: 50% -5000px auto;
803
919
  width: auto;
804
920
  height: 4px;
805
921
  }
922
+
806
923
  .l7-control-swipe__button {
807
924
  display: block;
808
925
  width: 28px;
@@ -819,32 +936,37 @@ loadStyles(`.l7-marker-container {
819
936
  border-radius: 2px;
820
937
  outline: none;
821
938
  }
939
+
822
940
  .l7-control-swipe,
823
941
  .l7-control-swipe__button {
824
942
  cursor: ew-resize;
825
943
  }
944
+
826
945
  .l7-control-swipe.horizontal,
827
946
  .l7-control-swipe.horizontal button {
828
947
  cursor: ns-resize;
829
948
  }
830
- .l7-control-swipe:after,
831
- .l7-control-swipe__button:before,
832
- .l7-control-swipe__button:after {
949
+
950
+ .l7-control-swipe::after,
951
+ .l7-control-swipe__button::before,
952
+ .l7-control-swipe__button::after {
833
953
  position: absolute;
834
954
  top: 25%;
835
955
  bottom: 25%;
836
956
  left: 50%;
837
957
  width: 2px;
838
- background: currentColor;
958
+ background: currentcolor;
839
959
  -webkit-transform: translate(-1px, 0);
840
960
  transform: translate(-1px, 0);
841
961
  content: '';
842
962
  }
843
- .l7-control-swipe__button:after {
963
+
964
+ .l7-control-swipe__button::after {
844
965
  -webkit-transform: translateX(4px);
845
966
  transform: translateX(4px);
846
967
  }
847
- .l7-control-swipe__button:before {
968
+
969
+ .l7-control-swipe__button::before {
848
970
  -webkit-transform: translateX(-6px);
849
971
  transform: translateX(-6px);
850
972
  }