@antv/l7-component 2.25.4 → 2.25.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
@@ -106,8 +106,7 @@ Object.defineProperty(exports, "Zoom", {
106
106
  });
107
107
  var _marker = _interopRequireDefault(require("./marker"));
108
108
  var _markerLayer = _interopRequireDefault(require("./marker-layer"));
109
- require("./assets/iconfont/iconfont.js");
110
- require("./css/index.less");
109
+ require("./assets/iconfont/iconfont");
111
110
  var _baseControl = require("./control/baseControl");
112
111
  Object.keys(_baseControl).forEach(function (key) {
113
112
  if (key === "default" || key === "__esModule") return;
@@ -143,4 +142,694 @@ Object.keys(_interface).forEach(function (key) {
143
142
  });
144
143
  });
145
144
  var _layerPopup = require("./popup/layerPopup");
146
- var _popup = require("./popup/popup");
145
+ var _popup = require("./popup/popup");
146
+ // 引入样式(预编译的 CSS,构建时由 transform-import-css-l7 内联到 JS,用户无需安装 less)
147
+ function loadStyles(css, doc) {
148
+ var isMiniAli = typeof my !== 'undefined' && !!my && typeof my.showToast === 'function' && my.isFRM !== true;
149
+ var isWeChatMiniProgram = typeof wx !== 'undefined' && wx !== null && (typeof wx.request !== 'undefined' || typeof wx.miniProgram !== 'undefined');
150
+ if (isMiniAli || isWeChatMiniProgram) {
151
+ return;
152
+ }
153
+ if (!doc) doc = document;
154
+ if (!doc) {
155
+ return;
156
+ }
157
+ var head = doc.head || doc.getElementsByTagName('head')[0];
158
+ if (!head) {
159
+ head = doc.createElement('head');
160
+ var body = doc.body || doc.getElementsByTagName('body')[0];
161
+ if (body) {
162
+ body.parentNode.insertBefore(head, body);
163
+ } else {
164
+ doc.documentElement.appendChild(head);
165
+ }
166
+ }
167
+ var style = doc.createElement('style');
168
+ style.type = 'text/css';
169
+ if (style.styleSheet) {
170
+ style.styleSheet.cssText = css;
171
+ } else {
172
+ style.appendChild(doc.createTextNode(css));
173
+ }
174
+ head.appendChild(style);
175
+ return style;
176
+ }
177
+ loadStyles(`.l7-marker-container {
178
+ position: absolute;
179
+ width: 100%;
180
+ height: 100%;
181
+ overflow: hidden;
182
+ }
183
+ .l7-marker {
184
+ position: absolute !important;
185
+ top: 0;
186
+ left: 0;
187
+ z-index: 5;
188
+ cursor: pointer;
189
+ }
190
+ .l7-marker-cluster {
191
+ width: 40px;
192
+ height: 40px;
193
+ background-color: rgba(181, 226, 140, 0.6);
194
+ background-clip: padding-box;
195
+ border-radius: 20px;
196
+ }
197
+ .l7-marker-cluster div {
198
+ width: 30px;
199
+ height: 30px;
200
+ margin-top: 5px;
201
+ margin-left: 5px;
202
+ font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;
203
+ text-align: center;
204
+ background-color: rgba(110, 204, 57, 0.6);
205
+ border-radius: 15px;
206
+ }
207
+ .l7-marker-cluster span {
208
+ line-height: 30px;
209
+ }
210
+ .l7-touch .l7-control-attribution,
211
+ .l7-touch .l7-control-layers,
212
+ .l7-touch .l7-bar {
213
+ box-shadow: none;
214
+ }
215
+ .l7-touch .l7-control-layers,
216
+ .l7-touch .l7-bar {
217
+ background-clip: padding-box;
218
+ border: 2px solid rgba(0, 0, 0, 0.2);
219
+ }
220
+ .mapboxgl-ctrl-logo,
221
+ .amap-logo {
222
+ display: none !important;
223
+ }
224
+ .l7-select-box {
225
+ border: 3px dashed gray;
226
+ border-radius: 2px;
227
+ position: absolute;
228
+ z-index: 999;
229
+ box-sizing: border-box;
230
+ }
231
+ .l7-control-container {
232
+ font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif;
233
+ }
234
+ .l7-control-container .l7-control {
235
+ position: relative;
236
+ z-index: 999;
237
+ float: left;
238
+ clear: both;
239
+ color: #595959;
240
+ font-size: 12px;
241
+ pointer-events: visiblepainted;
242
+ /* IE 9-10 doesn't have auto */
243
+ pointer-events: auto;
244
+ }
245
+ .l7-control-container .l7-control.l7-control--hide {
246
+ display: none;
247
+ }
248
+ .l7-control-container .l7-top {
249
+ top: 0;
250
+ display: flex;
251
+ position: absolute;
252
+ z-index: 999;
253
+ pointer-events: none;
254
+ }
255
+ .l7-control-container .l7-top .l7-control:not(.l7-control--hide) {
256
+ margin-top: 8px;
257
+ }
258
+ .l7-control-container .l7-right {
259
+ right: 0;
260
+ display: flex;
261
+ position: absolute;
262
+ z-index: 999;
263
+ pointer-events: none;
264
+ }
265
+ .l7-control-container .l7-right .l7-control:not(.l7-control--hide) {
266
+ margin-right: 8px;
267
+ }
268
+ .l7-control-container .l7-bottom {
269
+ bottom: 0;
270
+ display: flex;
271
+ position: absolute;
272
+ z-index: 999;
273
+ pointer-events: none;
274
+ }
275
+ .l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {
276
+ margin-bottom: 8px;
277
+ }
278
+ .l7-control-container .l7-left {
279
+ left: 0;
280
+ display: flex;
281
+ position: absolute;
282
+ z-index: 999;
283
+ pointer-events: none;
284
+ }
285
+ .l7-control-container .l7-left .l7-control:not(.l7-control--hide) {
286
+ margin-left: 8px;
287
+ }
288
+ .l7-control-container .l7-center {
289
+ position: absolute;
290
+ display: flex;
291
+ justify-content: center;
292
+ }
293
+ .l7-control-container .l7-center.l7-top,
294
+ .l7-control-container .l7-center.l7-bottom {
295
+ width: 100%;
296
+ }
297
+ .l7-control-container .l7-center.l7-left,
298
+ .l7-control-container .l7-center.l7-right {
299
+ height: 100%;
300
+ }
301
+ .l7-control-container .l7-center .l7-control {
302
+ margin-right: 8px;
303
+ margin-bottom: 8px;
304
+ }
305
+ .l7-control-container .l7-row {
306
+ flex-direction: row;
307
+ }
308
+ .l7-control-container .l7-row.l7-top {
309
+ align-items: flex-start;
310
+ }
311
+ .l7-control-container .l7-row.l7-bottom {
312
+ align-items: flex-end;
313
+ }
314
+ .l7-control-container .l7-column {
315
+ flex-direction: column;
316
+ }
317
+ .l7-control-container .l7-column.l7-left {
318
+ align-items: flex-start;
319
+ }
320
+ .l7-control-container .l7-column.l7-right {
321
+ align-items: flex-end;
322
+ }
323
+ .l7-button-control {
324
+ min-width: 28px;
325
+ height: 28px;
326
+ background-color: #fff;
327
+ border-width: 0;
328
+ border-radius: 2px;
329
+ outline: 0;
330
+ cursor: pointer;
331
+ transition: all 0.2s;
332
+ display: flex;
333
+ justify-content: center;
334
+ align-items: center;
335
+ padding: 0 6px;
336
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
337
+ line-height: 16px;
338
+ }
339
+ .l7-button-control .l7-iconfont {
340
+ fill: #595959;
341
+ color: #595959;
342
+ width: 16px;
343
+ height: 16px;
344
+ }
345
+ .l7-button-control.l7-button-control--row {
346
+ padding: 0 16px 0 13px;
347
+ }
348
+ .l7-button-control.l7-button-control--row * + .l7-button-control__text {
349
+ margin-left: 8px;
350
+ }
351
+ .l7-button-control.l7-button-control--column {
352
+ height: 44px;
353
+ flex-direction: column;
354
+ }
355
+ .l7-button-control.l7-button-control--column .l7-iconfont {
356
+ margin-top: 3px;
357
+ }
358
+ .l7-button-control.l7-button-control--column .l7-button-control__text {
359
+ margin-top: 3px;
360
+ font-size: 10px;
361
+ -webkit-transform: scale(0.83333);
362
+ transform: scale(0.83333);
363
+ }
364
+ .l7-button-control:not(:disabled):hover {
365
+ background-color: #f3f3f3;
366
+ }
367
+ .l7-button-control:not(:disabled):active {
368
+ background-color: #f3f3f3;
369
+ }
370
+ .l7-button-control:disabled {
371
+ background-color: #fafafa;
372
+ color: #bdbdbd;
373
+ cursor: not-allowed;
374
+ }
375
+ .l7-button-control:disabled .l7-iconfont {
376
+ fill: #bdbdbd;
377
+ color: #bdbdbd;
378
+ }
379
+ .l7-button-control:disabled:hover {
380
+ background-color: #fafafa;
381
+ }
382
+ .l7-button-control:disabled:active {
383
+ background-color: #fafafa;
384
+ }
385
+ .l7-popper {
386
+ position: absolute;
387
+ display: flex;
388
+ justify-content: center;
389
+ align-items: center;
390
+ z-index: 5;
391
+ color: #595959;
392
+ }
393
+ .l7-popper.l7-popper-hide {
394
+ display: none;
395
+ }
396
+ .l7-popper .l7-popper-content {
397
+ min-height: 28px;
398
+ background: #fff;
399
+ border-radius: 2px;
400
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
401
+ }
402
+ .l7-popper .l7-popper-arrow {
403
+ width: 0;
404
+ height: 0;
405
+ border-width: 4px;
406
+ border-style: solid;
407
+ border-color: transparent;
408
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
409
+ }
410
+ .l7-popper.l7-popper-left {
411
+ flex-direction: row;
412
+ }
413
+ .l7-popper.l7-popper-left .l7-popper-arrow {
414
+ border-left-color: #fff;
415
+ margin: 10px 0;
416
+ }
417
+ .l7-popper.l7-popper-right {
418
+ flex-direction: row-reverse;
419
+ }
420
+ .l7-popper.l7-popper-right .l7-popper-arrow {
421
+ border-right-color: #fff;
422
+ margin: 10px 0;
423
+ }
424
+ .l7-popper.l7-popper-top {
425
+ flex-direction: column;
426
+ }
427
+ .l7-popper.l7-popper-top .l7-popper-arrow {
428
+ border-top-color: #fff;
429
+ margin: 0 10px;
430
+ }
431
+ .l7-popper.l7-popper-bottom {
432
+ flex-direction: column-reverse;
433
+ }
434
+ .l7-popper.l7-popper-bottom .l7-popper-arrow {
435
+ border-bottom-color: #fff;
436
+ margin: 0 10px;
437
+ }
438
+ .l7-popper.l7-popper-start {
439
+ align-items: flex-start;
440
+ }
441
+ .l7-popper.l7-popper-end {
442
+ align-items: flex-end;
443
+ }
444
+ .l7-select-control--normal {
445
+ padding: 4px 0;
446
+ }
447
+ .l7-select-control--normal .l7-select-control-item {
448
+ display: flex;
449
+ align-items: center;
450
+ height: 24px;
451
+ padding: 0 16px;
452
+ font-size: 12px;
453
+ line-height: 24px;
454
+ }
455
+ .l7-select-control--normal .l7-select-control-item > * + * {
456
+ margin-left: 6px;
457
+ }
458
+ .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
459
+ width: 14px;
460
+ height: 14px;
461
+ }
462
+ .l7-select-control--normal .l7-select-control-item:hover {
463
+ background-color: #f3f3f3;
464
+ }
465
+ .l7-select-control--image {
466
+ display: flex;
467
+ flex-wrap: wrap;
468
+ align-items: flex-start;
469
+ box-sizing: content-box;
470
+ max-width: 460px;
471
+ max-height: 400px;
472
+ margin: 12px 0 0 12px;
473
+ overflow: hidden auto;
474
+ }
475
+ .l7-select-control--image .l7-select-control-item {
476
+ position: relative;
477
+ display: flex;
478
+ flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);
479
+ flex-direction: column;
480
+ justify-content: center;
481
+ box-sizing: content-box;
482
+ margin-right: 12px;
483
+ margin-bottom: 12px;
484
+ overflow: hidden;
485
+ font-size: 12px;
486
+ border: 1px solid #fff;
487
+ border-radius: 2px;
488
+ }
489
+ .l7-select-control--image .l7-select-control-item img {
490
+ width: 100%;
491
+ height: 80px;
492
+ }
493
+ .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
494
+ position: absolute;
495
+ top: 0;
496
+ right: 0;
497
+ }
498
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
499
+ display: flex;
500
+ align-items: center;
501
+ justify-content: center;
502
+ line-height: 26px;
503
+ }
504
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
505
+ margin-left: 8px;
506
+ }
507
+ .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
508
+ border-color: #0370fe;
509
+ }
510
+ .l7-select-control-item {
511
+ cursor: pointer;
512
+ }
513
+ .l7-select-control-item input[type='checkbox'] {
514
+ margin: 0;
515
+ cursor: pointer;
516
+ }
517
+ .l7-select-control--multiple .l7-select-control-item:hover {
518
+ background-color: transparent;
519
+ }
520
+ .l7-control-logo {
521
+ width: 89px;
522
+ height: 16px;
523
+ -webkit-user-select: none;
524
+ -moz-user-select: none;
525
+ -ms-user-select: none;
526
+ user-select: none;
527
+ }
528
+ .l7-control-logo img {
529
+ height: 100%;
530
+ width: 100%;
531
+ }
532
+ .l7-control-logo .l7-control-logo-link {
533
+ display: block;
534
+ cursor: pointer;
535
+ }
536
+ .l7-control-logo .l7-control-logo-link img {
537
+ cursor: pointer;
538
+ }
539
+ .l7-control-mouse-location {
540
+ background-color: #fff;
541
+ border-radius: 2px;
542
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
543
+ padding: 2px 4px;
544
+ min-width: 130px;
545
+ }
546
+ .l7-control-zoom {
547
+ overflow: hidden;
548
+ border-radius: 2px;
549
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
550
+ }
551
+ .l7-control-zoom .l7-button-control {
552
+ font-size: 16px;
553
+ border-bottom: 1px solid #f0f0f0;
554
+ border-radius: 0;
555
+ box-shadow: 0 0 0;
556
+ }
557
+ .l7-control-zoom .l7-button-control .l7-iconfont {
558
+ width: 14px;
559
+ height: 14px;
560
+ }
561
+ .l7-control-zoom .l7-button-control:last-child {
562
+ border-bottom: 0;
563
+ }
564
+ .l7-control-zoom .l7-control-zoom__number {
565
+ color: #595959;
566
+ padding: 0;
567
+ }
568
+ .l7-control-zoom .l7-control-zoom__number:hover {
569
+ background-color: #fff;
570
+ }
571
+ .l7-control-scale {
572
+ display: flex;
573
+ flex-direction: column;
574
+ }
575
+ .l7-control-scale .l7-control-scale-line {
576
+ box-sizing: border-box;
577
+ padding: 2px 5px 1px;
578
+ overflow: hidden;
579
+ color: #595959;
580
+ font-size: 10px;
581
+ line-height: 1.1;
582
+ white-space: nowrap;
583
+ background: #fff;
584
+ border: 2px solid #000;
585
+ border-top: 0;
586
+ transition: width 0.1s;
587
+ }
588
+ .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
589
+ margin-top: -2px;
590
+ border-top: 2px solid #777;
591
+ border-bottom: none;
592
+ }
593
+ .l7-right .l7-control-scale {
594
+ display: flex;
595
+ align-items: flex-end;
596
+ }
597
+ .l7-right .l7-control-scale .l7-control-scale-line {
598
+ text-align: right;
599
+ }
600
+ .l7-popup {
601
+ position: absolute;
602
+ top: 0;
603
+ left: 0;
604
+ z-index: 5;
605
+ display: flex;
606
+ will-change: transform;
607
+ pointer-events: none;
608
+ }
609
+ .l7-popup.l7-popup-hide {
610
+ display: none;
611
+ }
612
+ .l7-popup .l7-popup-content {
613
+ position: relative;
614
+ padding: 16px;
615
+ font-size: 14px;
616
+ background: #fff;
617
+ border-radius: 3px;
618
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
619
+ }
620
+ .l7-popup .l7-popup-content .l7-popup-content__title {
621
+ margin-bottom: 8px;
622
+ font-weight: bold;
623
+ }
624
+ .l7-popup .l7-popup-content .l7-popup-close-button,
625
+ .l7-popup .l7-popup-content .l7-popup-content__title,
626
+ .l7-popup .l7-popup-content .l7-popup-content__panel {
627
+ white-space: normal;
628
+ -webkit-user-select: text;
629
+ -moz-user-select: text;
630
+ -ms-user-select: text;
631
+ user-select: text;
632
+ pointer-events: initial;
633
+ }
634
+ .l7-popup .l7-popup-content .l7-popup-close-button {
635
+ position: absolute;
636
+ top: 0;
637
+ right: 0;
638
+ width: 18px;
639
+ height: 18px;
640
+ padding: 0;
641
+ font-size: 14px;
642
+ line-height: 18px;
643
+ text-align: center;
644
+ background-color: transparent;
645
+ border: 0;
646
+ border-radius: 0 3px 0 0;
647
+ cursor: pointer;
648
+ }
649
+ .l7-popup .l7-popup-tip {
650
+ position: relative;
651
+ z-index: 1;
652
+ width: 0;
653
+ height: 0;
654
+ border: 10px solid transparent;
655
+ }
656
+ .l7-popup.l7-popup-anchor-bottom,
657
+ .l7-popup.l7-popup-anchor-bottom-left,
658
+ .l7-popup.l7-popup-anchor-bottom-right {
659
+ flex-direction: column-reverse;
660
+ }
661
+ .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
662
+ .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
663
+ .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
664
+ bottom: 1px;
665
+ }
666
+ .l7-popup.l7-popup-anchor-top,
667
+ .l7-popup.l7-popup-anchor-top-left,
668
+ .l7-popup.l7-popup-anchor-top-right {
669
+ flex-direction: column;
670
+ }
671
+ .l7-popup.l7-popup-anchor-top .l7-popup-tip,
672
+ .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
673
+ .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
674
+ top: 1px;
675
+ }
676
+ .l7-popup.l7-popup-anchor-left {
677
+ flex-direction: row;
678
+ }
679
+ .l7-popup.l7-popup-anchor-right {
680
+ flex-direction: row-reverse;
681
+ }
682
+ .l7-popup-anchor-top .l7-popup-tip {
683
+ position: relative;
684
+ align-self: center;
685
+ border-top: none;
686
+ border-bottom-color: #fff;
687
+ }
688
+ .l7-popup-anchor-top-left .l7-popup-tip {
689
+ align-self: flex-start;
690
+ border-top: none;
691
+ border-bottom-color: #fff;
692
+ border-left: none;
693
+ }
694
+ .l7-popup-anchor-top-right .l7-popup-tip {
695
+ align-self: flex-end;
696
+ border-top: none;
697
+ border-right: none;
698
+ border-bottom-color: #fff;
699
+ }
700
+ .l7-popup-anchor-bottom .l7-popup-tip {
701
+ align-self: center;
702
+ border-top-color: #fff;
703
+ border-bottom: none;
704
+ }
705
+ .l7-popup-anchor-bottom-left .l7-popup-tip {
706
+ align-self: flex-start;
707
+ border-top-color: #fff;
708
+ border-bottom: none;
709
+ border-left: none;
710
+ }
711
+ .l7-popup-anchor-bottom-right .l7-popup-tip {
712
+ align-self: flex-end;
713
+ border-top-color: #fff;
714
+ border-right: none;
715
+ border-bottom: none;
716
+ }
717
+ .l7-popup-anchor-left .l7-popup-tip {
718
+ align-self: center;
719
+ border-right-color: #fff;
720
+ border-left: none;
721
+ }
722
+ .l7-popup-anchor-right .l7-popup-tip {
723
+ right: 1px;
724
+ align-self: center;
725
+ border-right: none;
726
+ border-left-color: #fff;
727
+ }
728
+ .l7-popup-anchor-top-left .l7-popup-content {
729
+ border-top-left-radius: 0;
730
+ }
731
+ .l7-popup-anchor-top-right .l7-popup-content {
732
+ border-top-right-radius: 0;
733
+ }
734
+ .l7-popup-anchor-bottom-left .l7-popup-content {
735
+ border-bottom-left-radius: 0;
736
+ }
737
+ .l7-popup-anchor-bottom-right .l7-popup-content {
738
+ border-bottom-right-radius: 0;
739
+ }
740
+ .l7-popup-track-pointer {
741
+ display: none;
742
+ }
743
+ .l7-popup-track-pointer * {
744
+ -webkit-user-select: none;
745
+ -moz-user-select: none;
746
+ -ms-user-select: none;
747
+ user-select: none;
748
+ pointer-events: none;
749
+ }
750
+ .l7-map:hover .l7-popup-track-pointer {
751
+ display: flex;
752
+ }
753
+ .l7-map:active .l7-popup-track-pointer {
754
+ display: none;
755
+ }
756
+ .l7-layer-popup__row {
757
+ font-size: 12px;
758
+ }
759
+ .l7-layer-popup__row + .l7-layer-popup__row {
760
+ margin-top: 4px;
761
+ }
762
+ .l7-control-swipe {
763
+ position: absolute;
764
+ top: 50%;
765
+ left: 50%;
766
+ z-index: 6;
767
+ -webkit-transform: translate(-50%, -50%);
768
+ transform: translate(-50%, -50%);
769
+ touch-action: none;
770
+ }
771
+ .l7-control-swipe_hide {
772
+ display: none;
773
+ }
774
+ .l7-control-swipe::before {
775
+ position: absolute;
776
+ top: -5000px;
777
+ bottom: -5000px;
778
+ left: 50%;
779
+ z-index: -1;
780
+ width: 4px;
781
+ background: #fff;
782
+ -webkit-transform: translate(-2px, 0);
783
+ transform: translate(-2px, 0);
784
+ content: '';
785
+ }
786
+ .l7-control-swipe.horizontal::before {
787
+ inset: 50% -5000px auto;
788
+ width: auto;
789
+ height: 4px;
790
+ }
791
+ .l7-control-swipe__button {
792
+ display: block;
793
+ width: 28px;
794
+ height: 28px;
795
+ margin: 0;
796
+ padding: 0;
797
+ color: #595959;
798
+ font-weight: bold;
799
+ font-size: inherit;
800
+ text-align: center;
801
+ text-decoration: none;
802
+ background-color: #fff;
803
+ border: none;
804
+ border-radius: 2px;
805
+ outline: none;
806
+ }
807
+ .l7-control-swipe,
808
+ .l7-control-swipe__button {
809
+ cursor: ew-resize;
810
+ }
811
+ .l7-control-swipe.horizontal,
812
+ .l7-control-swipe.horizontal button {
813
+ cursor: ns-resize;
814
+ }
815
+ .l7-control-swipe::after,
816
+ .l7-control-swipe__button::before,
817
+ .l7-control-swipe__button::after {
818
+ position: absolute;
819
+ top: 25%;
820
+ bottom: 25%;
821
+ left: 50%;
822
+ width: 2px;
823
+ background: currentcolor;
824
+ -webkit-transform: translate(-1px, 0);
825
+ transform: translate(-1px, 0);
826
+ content: '';
827
+ }
828
+ .l7-control-swipe__button::after {
829
+ -webkit-transform: translateX(4px);
830
+ transform: translateX(4px);
831
+ }
832
+ .l7-control-swipe__button::before {
833
+ -webkit-transform: translateX(-6px);
834
+ transform: translateX(-6px);
835
+ }`);