@gem-sdk/styles 1.22.9 → 1.22.31-new-feature.1
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/dist/builder.css +307 -0
- package/dist/builder.min.css +1 -1
- package/package.json +1 -1
- package/src/css/builds/builder.css +316 -0
package/dist/builder.css
CHANGED
|
@@ -305,6 +305,313 @@
|
|
|
305
305
|
.sticky-overlay.is-blank-page {
|
|
306
306
|
background-color: #d8e1ff !important;
|
|
307
307
|
}
|
|
308
|
+
/* Thêm code này sẽ làm lỗi tính năng fix height ở carousel, nhưng nếu k có thì toolbar sẽ bị ẩn nếu nằm trong carousel */
|
|
309
|
+
.builder .gem-slider:not([data-keen-slider-disabled]) {
|
|
310
|
+
overflow: unset;
|
|
311
|
+
}
|
|
312
|
+
[data-toolbar-wrap] {
|
|
313
|
+
position: relative;
|
|
314
|
+
}
|
|
315
|
+
/* Toolbar style default */
|
|
316
|
+
[data-toolbar-wrap] [data-toolbar] {
|
|
317
|
+
position: absolute;
|
|
318
|
+
z-index: 20;
|
|
319
|
+
height: 24px;
|
|
320
|
+
top: -23px;
|
|
321
|
+
left: 0;
|
|
322
|
+
max-width: unset;
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
padding: 4px;
|
|
326
|
+
color: #3c67ff;
|
|
327
|
+
background: #fff;
|
|
328
|
+
border: solid 1px #3c67ff;
|
|
329
|
+
white-space: nowrap;
|
|
330
|
+
pointer-events: unset;
|
|
331
|
+
font-family: Inter, sans-serif, ui-sans-serif, system-ui;
|
|
332
|
+
opacity: 0;
|
|
333
|
+
visibility: hidden;
|
|
334
|
+
cursor: pointer;
|
|
335
|
+
-webkit-user-select: none;
|
|
336
|
+
user-select: none;
|
|
337
|
+
transition: background 200ms ease-out;
|
|
338
|
+
}
|
|
339
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent],
|
|
340
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] {
|
|
341
|
+
display: flex;
|
|
342
|
+
align-items: center;
|
|
343
|
+
}
|
|
344
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent] [data-toolbar-icon-drag], [data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] [data-toolbar-icon-drag] {
|
|
345
|
+
display: block;
|
|
346
|
+
}
|
|
347
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent] [data-toolbar-icon-drag] svg, [data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] [data-toolbar-icon-drag] svg {
|
|
348
|
+
display: block;
|
|
349
|
+
max-width: unset;
|
|
350
|
+
width: 16px;
|
|
351
|
+
height: 16px;
|
|
352
|
+
}
|
|
353
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent] [data-toolbar-name], [data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] [data-toolbar-name] {
|
|
354
|
+
display: block;
|
|
355
|
+
white-space: nowrap;
|
|
356
|
+
font-size: 12px;
|
|
357
|
+
padding-left: 4px;
|
|
358
|
+
padding-right: 4px;
|
|
359
|
+
font-weight: 500;
|
|
360
|
+
}
|
|
361
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] {
|
|
362
|
+
position: absolute;
|
|
363
|
+
top: -24px;
|
|
364
|
+
left: -1px;
|
|
365
|
+
height: 24px;
|
|
366
|
+
padding: 4px;
|
|
367
|
+
opacity: 1;
|
|
368
|
+
visibility: visible;
|
|
369
|
+
z-index: 30;
|
|
370
|
+
color: #3c67ff;
|
|
371
|
+
background: #fff;
|
|
372
|
+
border: solid 1px #3c67ff;
|
|
373
|
+
}
|
|
374
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent]:hover {
|
|
375
|
+
background: #c5d2ff;
|
|
376
|
+
}
|
|
377
|
+
/* hidden icon with hover state*/
|
|
378
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-icon-parent],
|
|
379
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-duplicate],
|
|
380
|
+
[data-toolbar-wrap] [data-toolbar] [data-toolbar-delete] {
|
|
381
|
+
display: none;
|
|
382
|
+
}
|
|
383
|
+
/* State Toolbar */
|
|
384
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-hover],
|
|
385
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-force-hover] {
|
|
386
|
+
opacity: 1;
|
|
387
|
+
visibility: visible;
|
|
388
|
+
z-index: 30;
|
|
389
|
+
}
|
|
390
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-hover]:hover, [data-toolbar-wrap] [data-toolbar][data-toolbar-force-hover]:hover {
|
|
391
|
+
background: #c5d2ff;
|
|
392
|
+
}
|
|
393
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-hover][data-toolbar-hover-focus] {
|
|
394
|
+
background: #d8e1ff;
|
|
395
|
+
}
|
|
396
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-hover][data-toolbar-hover-focus]:hover {
|
|
397
|
+
background: #c5d2ff;
|
|
398
|
+
}
|
|
399
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] {
|
|
400
|
+
opacity: 1;
|
|
401
|
+
visibility: visible;
|
|
402
|
+
z-index: 20;
|
|
403
|
+
height: 32px;
|
|
404
|
+
top: -31px;
|
|
405
|
+
background: #3c67ff;
|
|
406
|
+
color: #fff;
|
|
407
|
+
}
|
|
408
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active][data-toolbar-hover-focus] {
|
|
409
|
+
background: #3c67ff;
|
|
410
|
+
}
|
|
411
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active][data-toolbar-hover-focus]:hover {
|
|
412
|
+
background: #3c67ff;
|
|
413
|
+
}
|
|
414
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] {
|
|
415
|
+
padding: 4px;
|
|
416
|
+
border-radius: 2px;
|
|
417
|
+
transition: background 200ms ease-in-out;
|
|
418
|
+
}
|
|
419
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] [data-toolbar-icon-parent] {
|
|
420
|
+
display: block;
|
|
421
|
+
transition: -webkit-transform 200ms ease-in-out;
|
|
422
|
+
transition: transform 200ms ease-in-out;
|
|
423
|
+
transition: transform 200ms ease-in-out, -webkit-transform 200ms ease-in-out;
|
|
424
|
+
}
|
|
425
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] [data-toolbar-icon-parent] svg {
|
|
426
|
+
display: block;
|
|
427
|
+
max-width: unset;
|
|
428
|
+
width: 16px;
|
|
429
|
+
height: 16px;
|
|
430
|
+
}
|
|
431
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] [data-toolbar-icon-parent][data-toolbar-icon-parent-open='true'] {
|
|
432
|
+
-webkit-transform: rotate(180deg);
|
|
433
|
+
transform: rotate(180deg);
|
|
434
|
+
}
|
|
435
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent]:hover {
|
|
436
|
+
background: #7190ff;
|
|
437
|
+
}
|
|
438
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-duplicate],
|
|
439
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-delete] {
|
|
440
|
+
display: block;
|
|
441
|
+
padding: 4px;
|
|
442
|
+
border-radius: 2px;
|
|
443
|
+
transition: background 200ms ease-in-out;
|
|
444
|
+
}
|
|
445
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-duplicate] svg, [data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-delete] svg {
|
|
446
|
+
display: block;
|
|
447
|
+
max-width: unset;
|
|
448
|
+
width: 16px;
|
|
449
|
+
height: 16px;
|
|
450
|
+
}
|
|
451
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-duplicate]:hover, [data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-delete]:hover {
|
|
452
|
+
background: #7190ff;
|
|
453
|
+
}
|
|
454
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-section='true'] {
|
|
455
|
+
left: unset;
|
|
456
|
+
right: 0;
|
|
457
|
+
border-color: #d6d6d6;
|
|
458
|
+
}
|
|
459
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-section='true'][data-toolbar-hover-focus],
|
|
460
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-section='true'][data-toolbar-active] {
|
|
461
|
+
border-color: #3c67ff;
|
|
462
|
+
}
|
|
463
|
+
[data-toolbar-wrap] [data-toolbar][data-toolbar-editor-inline-focus] {
|
|
464
|
+
display: none;
|
|
465
|
+
}
|
|
466
|
+
/* Outline style default */
|
|
467
|
+
[data-toolbar-wrap] [data-outline] {
|
|
468
|
+
position: absolute;
|
|
469
|
+
z-index: 10;
|
|
470
|
+
top: 0;
|
|
471
|
+
left: 0;
|
|
472
|
+
width: 100%;
|
|
473
|
+
height: 100%;
|
|
474
|
+
border: solid 1px #3c67ff;
|
|
475
|
+
pointer-events: none;
|
|
476
|
+
opacity: 0;
|
|
477
|
+
visibility: hidden;
|
|
478
|
+
}
|
|
479
|
+
/* State Outline */
|
|
480
|
+
[data-toolbar-wrap] [data-outline][data-outline-hover],
|
|
481
|
+
[data-toolbar-wrap] [data-outline][data-outline-force-hover] {
|
|
482
|
+
opacity: 1;
|
|
483
|
+
visibility: visible;
|
|
484
|
+
z-index: 12;
|
|
485
|
+
}
|
|
486
|
+
[data-toolbar-wrap] [data-outline][data-outline-active] {
|
|
487
|
+
opacity: 1;
|
|
488
|
+
visibility: visible;
|
|
489
|
+
z-index: 15;
|
|
490
|
+
}
|
|
491
|
+
[data-toolbar-wrap] [data-outline][data-outline-overlay],
|
|
492
|
+
[data-toolbar-wrap] [data-outline][data-outline-force-overlay] {
|
|
493
|
+
background: rgba(60, 103, 255, 0.1);
|
|
494
|
+
}
|
|
495
|
+
[data-toolbar-wrap] [data-outline][data-outline-section='true'] {
|
|
496
|
+
border-color: #d6d6d6;
|
|
497
|
+
z-index: 10;
|
|
498
|
+
}
|
|
499
|
+
[data-toolbar-wrap] [data-outline][data-outline-section='true'][data-outline-hover-focus],
|
|
500
|
+
[data-toolbar-wrap] [data-outline][data-outline-section='true'][data-outline-active] {
|
|
501
|
+
border-color: #3c67ff;
|
|
502
|
+
z-index: 15;
|
|
503
|
+
}
|
|
504
|
+
[data-toolbar-wrap] [data-outline][data-outline-editor-inline-focus] {
|
|
505
|
+
border-color: #3c67ff;
|
|
506
|
+
outline: 4px solid rgba(60, 103, 255, 0.24);
|
|
507
|
+
top: -2px;
|
|
508
|
+
left: -2px;
|
|
509
|
+
width: calc(100% + 4px);
|
|
510
|
+
height: calc(100% + 4px);
|
|
511
|
+
z-index: 15;
|
|
512
|
+
}
|
|
513
|
+
/* Action add style default */
|
|
514
|
+
[data-toolbar-wrap] [data-toolbar-add-top],
|
|
515
|
+
[data-toolbar-wrap] [data-toolbar-add-bottom] {
|
|
516
|
+
width: 32px;
|
|
517
|
+
height: 32px;
|
|
518
|
+
display: flex;
|
|
519
|
+
justify-content: center;
|
|
520
|
+
align-items: center;
|
|
521
|
+
background: #fff;
|
|
522
|
+
color: #3c67ff;
|
|
523
|
+
border: solid 1px #d6d6d6;
|
|
524
|
+
border-radius: 3px;
|
|
525
|
+
cursor: pointer;
|
|
526
|
+
position: absolute;
|
|
527
|
+
z-index: 50;
|
|
528
|
+
left: calc(50% - 16px);
|
|
529
|
+
top: -16px;
|
|
530
|
+
display: none;
|
|
531
|
+
-webkit-user-select: none;
|
|
532
|
+
user-select: none;
|
|
533
|
+
transition: border-color 200ms ease-in-out;
|
|
534
|
+
}
|
|
535
|
+
[data-toolbar-wrap] [data-toolbar-add-top] svg, [data-toolbar-wrap] [data-toolbar-add-bottom] svg {
|
|
536
|
+
width: 16px;
|
|
537
|
+
height: 16px;
|
|
538
|
+
transition: -webkit-transform 200ms ease-in-out;
|
|
539
|
+
transition: transform 200ms ease-in-out;
|
|
540
|
+
transition: transform 200ms ease-in-out, -webkit-transform 200ms ease-in-out;
|
|
541
|
+
}
|
|
542
|
+
[data-toolbar-wrap] [data-toolbar-add-top]:hover, [data-toolbar-wrap] [data-toolbar-add-bottom]:hover {
|
|
543
|
+
border-color: #3c67ff;
|
|
544
|
+
}
|
|
545
|
+
[data-toolbar-wrap] [data-toolbar-add-bottom] {
|
|
546
|
+
top: unset;
|
|
547
|
+
bottom: -16px;
|
|
548
|
+
}
|
|
549
|
+
/* Active add state */
|
|
550
|
+
[data-toolbar-wrap] [data-toolbar-add-top][data-toolbar-add-open='true'] svg, [data-toolbar-wrap] [data-toolbar-add-bottom][data-toolbar-add-open='true'] svg {
|
|
551
|
+
-webkit-transform: rotate(45deg);
|
|
552
|
+
transform: rotate(45deg);
|
|
553
|
+
}
|
|
554
|
+
[data-toolbar-wrap] [data-toolbar-add-top][data-toolbar-add-hover],
|
|
555
|
+
[data-toolbar-wrap] [data-toolbar-add-bottom][data-toolbar-add-hover] {
|
|
556
|
+
display: flex;
|
|
557
|
+
}
|
|
558
|
+
[data-toolbar-wrap] [data-toolbar-add-top][data-toolbar-add-active],
|
|
559
|
+
[data-toolbar-wrap] [data-toolbar-add-bottom][data-toolbar-add-active] {
|
|
560
|
+
display: flex;
|
|
561
|
+
}
|
|
562
|
+
/* Resize spacing */
|
|
563
|
+
[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] {
|
|
564
|
+
position: absolute;
|
|
565
|
+
z-index: 20;
|
|
566
|
+
bottom: 0;
|
|
567
|
+
left: 0;
|
|
568
|
+
width: 100%;
|
|
569
|
+
display: flex;
|
|
570
|
+
justify-content: center;
|
|
571
|
+
|
|
572
|
+
display: none;
|
|
573
|
+
}
|
|
574
|
+
[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-bg] {
|
|
575
|
+
position: absolute;
|
|
576
|
+
top: 0;
|
|
577
|
+
left: 0;
|
|
578
|
+
width: 100%;
|
|
579
|
+
background-color: #3c67ff33;
|
|
580
|
+
|
|
581
|
+
display: flex;
|
|
582
|
+
justify-content: center;
|
|
583
|
+
align-items: center;
|
|
584
|
+
}
|
|
585
|
+
[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-bg] [data-spacing-margin-bottom-value] {
|
|
586
|
+
background-color: #3c67ff;
|
|
587
|
+
padding: 2px;
|
|
588
|
+
position: absolute;
|
|
589
|
+
font-size: 8px;
|
|
590
|
+
color: #fff;
|
|
591
|
+
border-radius: 4px;
|
|
592
|
+
font-weight: bold;
|
|
593
|
+
|
|
594
|
+
display: none;
|
|
595
|
+
}
|
|
596
|
+
[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-drag] {
|
|
597
|
+
position: absolute;
|
|
598
|
+
bottom: 0;
|
|
599
|
+
height: 4px;
|
|
600
|
+
width: 40px;
|
|
601
|
+
border-top-left-radius: 4px;
|
|
602
|
+
border-top-right-radius: 4px;
|
|
603
|
+
cursor: ns-resize;
|
|
604
|
+
background-color: #3c67ff;
|
|
605
|
+
transition: height 0.2s;
|
|
606
|
+
-webkit-transform: translateY(-100%);
|
|
607
|
+
transform: translateY(-100%);
|
|
608
|
+
}
|
|
609
|
+
[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-drag]:hover {
|
|
610
|
+
height: 6px;
|
|
611
|
+
}
|
|
612
|
+
[data-toolbar-wrap] [data-spacing-margin-bottom][data-spacing-margin-bottom-active] {
|
|
613
|
+
display: flex;
|
|
614
|
+
}
|
|
308
615
|
@media (max-width: 768px) {
|
|
309
616
|
.gps-suggestion-item:hover .item-link {
|
|
310
617
|
width: 196px;
|
package/dist/builder.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.builder{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.builder [disabled]{pointer-events:auto}.builder [data-slot=children]{visibility:visible}.builder [data-slot=children]:after{color:#aaa;visibility:visible}.builder [data-slot=children] .drag-placeholder{height:100%}.builder .generate-image-to-layout-btn{background-image:linear-gradient(270.07deg,#874cfd .03%,#3c38e1 99.92%);position:relative;z-index:1}.builder .generate-image-to-layout-btn:before{background-image:linear-gradient(270.07deg,#3633cc .03%,#6d3dcc 99.92%);border-radius:3px;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:opacity .3s ease-out;z-index:-1}.builder .btn-disable{background-color:#f4f4f4;background-image:none;color:#9e9e9e;cursor:not-allowed}.builder .generate-image-to-layout-btn:hover:before{opacity:1}.builder .image-to-layout-input-border{border:1px solid #3c38e1;border-radius:3px}.builder .image-to-layout-input-wrapper-modal{position:relative}.builder .image-to-layout-input-wrapper,.builder .image-to-layout-input-wrapper-add-section{background:#fff;background-clip:padding-box;box-sizing:border-box;position:relative}.image-to-layout-input-wrapper-add-section{border:1px solid #3c67ff}.gps-image-to-layout-progress-bar{background:linear-gradient(270.07deg,#874cfd .03%,#3c38e1 99.92%)}.drag-placeholder{display:none;width:100%}#storefront{position:relative;z-index:20}#visual-content{display:none;font-family:Inter,sans-serif,ui-sans-serif,system-ui!important;height:100%;left:0;min-height:100vh;position:absolute;top:0;width:100%;z-index:50}#visual-content .fake-placeholder{background:transparent;background-image:url(//d1um8515vdn9kb.cloudfront.net/images/background-pattern.png);left:0;position:absolute;top:0;visibility:hidden;z-index:10}#visual-content .fake-placeholder.fake-placeholder-slot{background:transparent}#visual-content .fake-placeholder.has-section{background-color:#3c67ff!important;background-image:none;border:none!important;height:6px;margin:0!important;visibility:visible}#visual-content .fake-placeholder.visual-placeholder-error{background-color:#fee4e3!important}#visual-content .fake-placeholder.visual-placeholder-error .limitation-error-content{display:none}#visual-content .fake-placeholder.visual-placeholder-error{border:1px dashed #f44336!important;color:#f44336!important;font-family:Inter,sans-serif,ui-sans-serif,system-ui;font-size:14px;font-weight:500;line-height:150%;position:relative;text-align:center;visibility:visible}#visual-content .fake-placeholder.visual-placeholder-error.children-error{background-color:#f44336!important;border:none!important}#visual-content .fake-placeholder.visual-placeholder-error.limitation-error .limitation-error-content{align-items:center;background-color:#fee4e3!important;border-radius:3px;display:flex;height:29px;padding:4px 8px}#visual-content .fake-placeholder.visual-placeholder-error.limitation-error .limitation-error-content span{font-size:14px;font-weight:500;line-height:150%;margin-left:8px}#visual-content .fake-placeholder.visual-placeholder{align-items:center;background-color:#8aa4ff66;color:#3c67ff;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:150%;visibility:visible;z-index:20}#visual-content .fake-placeholder.visual-placeholder-child-on-sections{margin:16px!important}#visual-content .fake-placeholder.visual-placeholder-between-sections{background-color:#3c67ff;background-image:none;border:none;height:6px;margin:0!important;visibility:visible}#visual-content .fake-placeholder.not-show{display:none}#visual-content .fake-placeholder[is-blank-page=true]{background-color:#d8e1ff!important}#visual-content .fake-placeholder[is-component-dragging=true]{background-color:#8aa4ff66!important}[contenteditable=true]:active,[contenteditable=true]:focus,[contenteditable=true]:focus-visible{outline:none;overflow:hidden}[data-component-is-third-party=true]{background-color:#f4f4f4}[data-component-tag=ProductDescription],[data-component-tag=ProductPrice],[data-component-tag=ProductTag],[data-component-tag=ProductTitle]{cursor:default}:root{--selection-bg:#accef7}.builder ::selection{background:var(--selection-bg);color:currentColor}.builder ::-moz-selection{background:var(--selection-bg);color:currentColor}.gps-drag-element-here{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' stroke='%233C67FFFF' stroke-dasharray='12,12' stroke-dashoffset='72' stroke-linecap='square' stroke-width='2'/%3E%3C/svg%3E")}.gps-drag-element-here,.gps-page-suggestion{font-family:Inter,sans-serif,ui-sans-serif,system-ui!important}.gps-page-suggestion{background:#fff;border-radius:3px;box-shadow:0 4px 16px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.12)}.gps-suggestion-item .gps-suggestion-item-btn{display:flex}.gps-suggestion-item .item-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:360px}.gps-suggestion-item:hover .item-link{width:360px}.gps-base-font-family{font-family:Inter,sans-serif,ui-sans-serif,system-ui!important}.btn-disable:before{background:none!important;background-color:#f4f4f4!important;color:#9e9e9e}.gps-image-detection-section:hover .gps-generating-actions{display:flex}.gps-generating-section-text{-webkit-text-fill-color:transparent;background:-webkit-linear-gradient(#874cfd,#3c38e1);-webkit-background-clip:text}.ck-blurred{cursor:pointer}.ck-focused{cursor:text}.button-text{position:relative}.button-text.ck-focused,.child-item-text.ck-focused{border-color:transparent!important;box-shadow:0 0 0 2px hsla(0,0%,100%,0),0 0 0 1px #3c67ff,0 0 0 5px #3c67ff3d}.button-text.ck p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gp-text.ck p{word-break:break-word}.button-text:hover:after{border:1px solid #3c67ff;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.button-text.ck-focused:hover:after{border:0!important}.sticky-overlay{align-items:center;background-color:#3c67ff26;border:2px solid #3c67ff;color:#3c67ff;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:1}.sticky-overlay.highlight-top{border-top-width:6px}.sticky-overlay.highlight-bottom{border-bottom-width:6px}.sticky-overlay.is-blank-page{background-color:#d8e1ff!important}@media (max-width:768px){.gps-suggestion-item .item-link,.gps-suggestion-item:hover .item-link{width:196px}}
|
|
1
|
+
.builder{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.builder [disabled]{pointer-events:auto}.builder [data-slot=children]{visibility:visible}.builder [data-slot=children]:after{color:#aaa;visibility:visible}.builder [data-slot=children] .drag-placeholder{height:100%}.builder .generate-image-to-layout-btn{background-image:linear-gradient(270.07deg,#874cfd .03%,#3c38e1 99.92%);position:relative;z-index:1}.builder .generate-image-to-layout-btn:before{background-image:linear-gradient(270.07deg,#3633cc .03%,#6d3dcc 99.92%);border-radius:3px;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:opacity .3s ease-out;z-index:-1}.builder .btn-disable{background-color:#f4f4f4;background-image:none;color:#9e9e9e;cursor:not-allowed}.builder .generate-image-to-layout-btn:hover:before{opacity:1}.builder .image-to-layout-input-border{border:1px solid #3c38e1;border-radius:3px}.builder .image-to-layout-input-wrapper-modal{position:relative}.builder .image-to-layout-input-wrapper,.builder .image-to-layout-input-wrapper-add-section{background:#fff;background-clip:padding-box;box-sizing:border-box;position:relative}.image-to-layout-input-wrapper-add-section{border:1px solid #3c67ff}.gps-image-to-layout-progress-bar{background:linear-gradient(270.07deg,#874cfd .03%,#3c38e1 99.92%)}.drag-placeholder{display:none;width:100%}#storefront{position:relative;z-index:20}#visual-content{display:none;font-family:Inter,sans-serif,ui-sans-serif,system-ui!important;height:100%;left:0;min-height:100vh;position:absolute;top:0;width:100%;z-index:50}#visual-content .fake-placeholder{background:transparent;background-image:url(//d1um8515vdn9kb.cloudfront.net/images/background-pattern.png);left:0;position:absolute;top:0;visibility:hidden;z-index:10}#visual-content .fake-placeholder.fake-placeholder-slot{background:transparent}#visual-content .fake-placeholder.has-section{background-color:#3c67ff!important;background-image:none;border:none!important;height:6px;margin:0!important;visibility:visible}#visual-content .fake-placeholder.visual-placeholder-error{background-color:#fee4e3!important}#visual-content .fake-placeholder.visual-placeholder-error .limitation-error-content{display:none}#visual-content .fake-placeholder.visual-placeholder-error{border:1px dashed #f44336!important;color:#f44336!important;font-family:Inter,sans-serif,ui-sans-serif,system-ui;font-size:14px;font-weight:500;line-height:150%;position:relative;text-align:center;visibility:visible}#visual-content .fake-placeholder.visual-placeholder-error.children-error{background-color:#f44336!important;border:none!important}#visual-content .fake-placeholder.visual-placeholder-error.limitation-error .limitation-error-content{align-items:center;background-color:#fee4e3!important;border-radius:3px;display:flex;height:29px;padding:4px 8px}#visual-content .fake-placeholder.visual-placeholder-error.limitation-error .limitation-error-content span{font-size:14px;font-weight:500;line-height:150%;margin-left:8px}#visual-content .fake-placeholder.visual-placeholder{align-items:center;background-color:#8aa4ff66;color:#3c67ff;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:150%;visibility:visible;z-index:20}#visual-content .fake-placeholder.visual-placeholder-child-on-sections{margin:16px!important}#visual-content .fake-placeholder.visual-placeholder-between-sections{background-color:#3c67ff;background-image:none;border:none;height:6px;margin:0!important;visibility:visible}#visual-content .fake-placeholder.not-show{display:none}#visual-content .fake-placeholder[is-blank-page=true]{background-color:#d8e1ff!important}#visual-content .fake-placeholder[is-component-dragging=true]{background-color:#8aa4ff66!important}[contenteditable=true]:active,[contenteditable=true]:focus,[contenteditable=true]:focus-visible{outline:none;overflow:hidden}[data-component-is-third-party=true]{background-color:#f4f4f4}[data-component-tag=ProductDescription],[data-component-tag=ProductPrice],[data-component-tag=ProductTag],[data-component-tag=ProductTitle]{cursor:default}:root{--selection-bg:#accef7}.builder ::selection{background:var(--selection-bg);color:currentColor}.builder ::-moz-selection{background:var(--selection-bg);color:currentColor}.gps-drag-element-here{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' stroke='%233C67FFFF' stroke-dasharray='12,12' stroke-dashoffset='72' stroke-linecap='square' stroke-width='2'/%3E%3C/svg%3E")}.gps-drag-element-here,.gps-page-suggestion{font-family:Inter,sans-serif,ui-sans-serif,system-ui!important}.gps-page-suggestion{background:#fff;border-radius:3px;box-shadow:0 4px 16px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.12)}.gps-suggestion-item .gps-suggestion-item-btn{display:flex}.gps-suggestion-item .item-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:360px}.gps-suggestion-item:hover .item-link{width:360px}.gps-base-font-family{font-family:Inter,sans-serif,ui-sans-serif,system-ui!important}.btn-disable:before{background:none!important;background-color:#f4f4f4!important;color:#9e9e9e}.gps-image-detection-section:hover .gps-generating-actions{display:flex}.gps-generating-section-text{-webkit-text-fill-color:transparent;background:-webkit-linear-gradient(#874cfd,#3c38e1);-webkit-background-clip:text}.ck-blurred{cursor:pointer}.ck-focused{cursor:text}.button-text{position:relative}.button-text.ck-focused,.child-item-text.ck-focused{border-color:transparent!important;box-shadow:0 0 0 2px hsla(0,0%,100%,0),0 0 0 1px #3c67ff,0 0 0 5px #3c67ff3d}.button-text.ck p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gp-text.ck p{word-break:break-word}.button-text:hover:after{border:1px solid #3c67ff;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.button-text.ck-focused:hover:after{border:0!important}.sticky-overlay{align-items:center;background-color:#3c67ff26;border:2px solid #3c67ff;color:#3c67ff;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:1}.sticky-overlay.highlight-top{border-top-width:6px}.sticky-overlay.highlight-bottom{border-bottom-width:6px}.sticky-overlay.is-blank-page{background-color:#d8e1ff!important}.builder .gem-slider:not([data-keen-slider-disabled]){overflow:unset}[data-toolbar-wrap]{position:relative}[data-toolbar-wrap] [data-toolbar]{align-items:center;background:#fff;border:1px solid #3c67ff;color:#3c67ff;cursor:pointer;display:flex;font-family:Inter,sans-serif,ui-sans-serif,system-ui;height:24px;left:0;max-width:unset;opacity:0;padding:4px;pointer-events:unset;position:absolute;top:-23px;transition:background .2s ease-out;-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;z-index:20}[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent],[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent]{align-items:center;display:flex}[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] [data-toolbar-icon-drag],[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent] [data-toolbar-icon-drag]{display:block}[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] [data-toolbar-icon-drag] svg,[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent] [data-toolbar-icon-drag] svg{display:block;height:16px;max-width:unset;width:16px}[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent] [data-toolbar-name],[data-toolbar-wrap] [data-toolbar] [data-toolbar-show-parent] [data-toolbar-name]{display:block;font-size:12px;font-weight:500;padding-left:4px;padding-right:4px;white-space:nowrap}[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent]{background:#fff;border:1px solid #3c67ff;color:#3c67ff;height:24px;left:-1px;opacity:1;padding:4px;position:absolute;top:-24px;visibility:visible;z-index:30}[data-toolbar-wrap] [data-toolbar] [data-toolbar-parent]:hover{background:#c5d2ff}[data-toolbar-wrap] [data-toolbar] [data-toolbar-delete],[data-toolbar-wrap] [data-toolbar] [data-toolbar-duplicate],[data-toolbar-wrap] [data-toolbar] [data-toolbar-icon-parent]{display:none}[data-toolbar-wrap] [data-toolbar][data-toolbar-force-hover],[data-toolbar-wrap] [data-toolbar][data-toolbar-hover]{opacity:1;visibility:visible;z-index:30}[data-toolbar-wrap] [data-toolbar][data-toolbar-force-hover]:hover,[data-toolbar-wrap] [data-toolbar][data-toolbar-hover]:hover{background:#c5d2ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-hover][data-toolbar-hover-focus]{background:#d8e1ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-hover][data-toolbar-hover-focus]:hover{background:#c5d2ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-active]{background:#3c67ff;color:#fff;height:32px;opacity:1;top:-31px;visibility:visible;z-index:20}[data-toolbar-wrap] [data-toolbar][data-toolbar-active][data-toolbar-hover-focus],[data-toolbar-wrap] [data-toolbar][data-toolbar-active][data-toolbar-hover-focus]:hover{background:#3c67ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent]{border-radius:2px;padding:4px;transition:background .2s ease-in-out}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] [data-toolbar-icon-parent]{display:block;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] [data-toolbar-icon-parent] svg{display:block;height:16px;max-width:unset;width:16px}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent] [data-toolbar-icon-parent][data-toolbar-icon-parent-open=true]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-show-parent]:hover{background:#7190ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-delete],[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-duplicate]{border-radius:2px;display:block;padding:4px;transition:background .2s ease-in-out}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-delete] svg,[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-duplicate] svg{display:block;height:16px;max-width:unset;width:16px}[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-delete]:hover,[data-toolbar-wrap] [data-toolbar][data-toolbar-active] [data-toolbar-duplicate]:hover{background:#7190ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-section=true]{border-color:#d6d6d6;left:unset;right:0}[data-toolbar-wrap] [data-toolbar][data-toolbar-section=true][data-toolbar-active],[data-toolbar-wrap] [data-toolbar][data-toolbar-section=true][data-toolbar-hover-focus]{border-color:#3c67ff}[data-toolbar-wrap] [data-toolbar][data-toolbar-editor-inline-focus]{display:none}[data-toolbar-wrap] [data-outline]{border:1px solid #3c67ff;height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%;z-index:10}[data-toolbar-wrap] [data-outline][data-outline-force-hover],[data-toolbar-wrap] [data-outline][data-outline-hover]{opacity:1;visibility:visible;z-index:12}[data-toolbar-wrap] [data-outline][data-outline-active]{opacity:1;visibility:visible;z-index:15}[data-toolbar-wrap] [data-outline][data-outline-force-overlay],[data-toolbar-wrap] [data-outline][data-outline-overlay]{background:rgba(60,103,255,.1)}[data-toolbar-wrap] [data-outline][data-outline-section=true]{border-color:#d6d6d6;z-index:10}[data-toolbar-wrap] [data-outline][data-outline-section=true][data-outline-active],[data-toolbar-wrap] [data-outline][data-outline-section=true][data-outline-hover-focus]{border-color:#3c67ff;z-index:15}[data-toolbar-wrap] [data-outline][data-outline-editor-inline-focus]{border-color:#3c67ff;height:calc(100% + 4px);left:-2px;outline:4px solid rgba(60,103,255,.24);top:-2px;width:calc(100% + 4px);z-index:15}[data-toolbar-wrap] [data-toolbar-add-bottom],[data-toolbar-wrap] [data-toolbar-add-top]{align-items:center;background:#fff;border:1px solid #d6d6d6;border-radius:3px;color:#3c67ff;cursor:pointer;display:flex;display:none;height:32px;justify-content:center;left:calc(50% - 16px);position:absolute;top:-16px;transition:border-color .2s ease-in-out;-webkit-user-select:none;user-select:none;width:32px;z-index:50}[data-toolbar-wrap] [data-toolbar-add-bottom] svg,[data-toolbar-wrap] [data-toolbar-add-top] svg{height:16px;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;width:16px}[data-toolbar-wrap] [data-toolbar-add-bottom]:hover,[data-toolbar-wrap] [data-toolbar-add-top]:hover{border-color:#3c67ff}[data-toolbar-wrap] [data-toolbar-add-bottom]{bottom:-16px;top:unset}[data-toolbar-wrap] [data-toolbar-add-bottom][data-toolbar-add-open=true] svg,[data-toolbar-wrap] [data-toolbar-add-top][data-toolbar-add-open=true] svg{-webkit-transform:rotate(45deg);transform:rotate(45deg)}[data-toolbar-wrap] [data-toolbar-add-bottom][data-toolbar-add-active],[data-toolbar-wrap] [data-toolbar-add-bottom][data-toolbar-add-hover],[data-toolbar-wrap] [data-toolbar-add-top][data-toolbar-add-active],[data-toolbar-wrap] [data-toolbar-add-top][data-toolbar-add-hover]{display:flex}[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom]{bottom:0;display:flex;display:none;justify-content:center;left:0;position:absolute;width:100%;z-index:20}[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-bg]{align-items:center;background-color:#3c67ff33;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-bg] [data-spacing-margin-bottom-value]{background-color:#3c67ff;border-radius:4px;color:#fff;display:none;font-size:8px;font-weight:700;padding:2px;position:absolute}[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-drag]{background-color:#3c67ff;border-top-left-radius:4px;border-top-right-radius:4px;bottom:0;cursor:ns-resize;height:4px;position:absolute;-webkit-transform:translateY(-100%);transform:translateY(-100%);transition:height .2s;width:40px}[data-toolbar-wrap] [data-spacing] [data-spacing-margin-bottom] [data-spacing-margin-bottom-drag]:hover{height:6px}[data-toolbar-wrap] [data-spacing-margin-bottom][data-spacing-margin-bottom-active]{display:flex}@media (max-width:768px){.gps-suggestion-item .item-link,.gps-suggestion-item:hover .item-link{width:196px}}
|
package/package.json
CHANGED
|
@@ -358,3 +358,319 @@
|
|
|
358
358
|
background-color: #d8e1ff !important;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
+
|
|
362
|
+
/* Thêm code này sẽ làm lỗi tính năng fix height ở carousel, nhưng nếu k có thì toolbar sẽ bị ẩn nếu nằm trong carousel */
|
|
363
|
+
.builder .gem-slider:not([data-keen-slider-disabled]) {
|
|
364
|
+
overflow: unset;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
[data-toolbar-wrap] {
|
|
368
|
+
position: relative;
|
|
369
|
+
|
|
370
|
+
/* Toolbar style default */
|
|
371
|
+
[data-toolbar] {
|
|
372
|
+
position: absolute;
|
|
373
|
+
z-index: 20;
|
|
374
|
+
height: 24px;
|
|
375
|
+
top: -23px;
|
|
376
|
+
left: 0;
|
|
377
|
+
max-width: unset;
|
|
378
|
+
display: flex;
|
|
379
|
+
align-items: center;
|
|
380
|
+
padding: 4px;
|
|
381
|
+
color: #3c67ff;
|
|
382
|
+
background: #fff;
|
|
383
|
+
border: solid 1px #3c67ff;
|
|
384
|
+
white-space: nowrap;
|
|
385
|
+
pointer-events: unset;
|
|
386
|
+
font-family: Inter, sans-serif, ui-sans-serif, system-ui;
|
|
387
|
+
opacity: 0;
|
|
388
|
+
visibility: hidden;
|
|
389
|
+
cursor: pointer;
|
|
390
|
+
user-select: none;
|
|
391
|
+
transition: background 200ms ease-out;
|
|
392
|
+
|
|
393
|
+
[data-toolbar-show-parent],
|
|
394
|
+
[data-toolbar-parent] {
|
|
395
|
+
display: flex;
|
|
396
|
+
align-items: center;
|
|
397
|
+
[data-toolbar-icon-drag] {
|
|
398
|
+
display: block;
|
|
399
|
+
svg {
|
|
400
|
+
display: block;
|
|
401
|
+
max-width: unset;
|
|
402
|
+
width: 16px;
|
|
403
|
+
height: 16px;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
[data-toolbar-name] {
|
|
407
|
+
display: block;
|
|
408
|
+
white-space: nowrap;
|
|
409
|
+
font-size: 12px;
|
|
410
|
+
padding-left: 4px;
|
|
411
|
+
padding-right: 4px;
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
[data-toolbar-parent] {
|
|
416
|
+
position: absolute;
|
|
417
|
+
top: -24px;
|
|
418
|
+
left: -1px;
|
|
419
|
+
height: 24px;
|
|
420
|
+
padding: 4px;
|
|
421
|
+
opacity: 1;
|
|
422
|
+
visibility: visible;
|
|
423
|
+
z-index: 30;
|
|
424
|
+
color: #3c67ff;
|
|
425
|
+
background: #fff;
|
|
426
|
+
border: solid 1px #3c67ff;
|
|
427
|
+
&:hover {
|
|
428
|
+
background: #c5d2ff;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/* hidden icon with hover state*/
|
|
433
|
+
[data-toolbar-icon-parent],
|
|
434
|
+
[data-toolbar-duplicate],
|
|
435
|
+
[data-toolbar-delete] {
|
|
436
|
+
display: none;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* State Toolbar */
|
|
441
|
+
[data-toolbar][data-toolbar-hover],
|
|
442
|
+
[data-toolbar][data-toolbar-force-hover] {
|
|
443
|
+
opacity: 1;
|
|
444
|
+
visibility: visible;
|
|
445
|
+
z-index: 30;
|
|
446
|
+
&:hover {
|
|
447
|
+
background: #c5d2ff;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
[data-toolbar][data-toolbar-hover][data-toolbar-hover-focus] {
|
|
451
|
+
background: #d8e1ff;
|
|
452
|
+
&:hover {
|
|
453
|
+
background: #c5d2ff;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
[data-toolbar][data-toolbar-active] {
|
|
457
|
+
opacity: 1;
|
|
458
|
+
visibility: visible;
|
|
459
|
+
z-index: 20;
|
|
460
|
+
height: 32px;
|
|
461
|
+
top: -31px;
|
|
462
|
+
background: #3c67ff;
|
|
463
|
+
color: #fff;
|
|
464
|
+
&[data-toolbar-hover-focus] {
|
|
465
|
+
background: #3c67ff;
|
|
466
|
+
&:hover {
|
|
467
|
+
background: #3c67ff;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
[data-toolbar-show-parent] {
|
|
472
|
+
padding: 4px;
|
|
473
|
+
border-radius: 2px;
|
|
474
|
+
transition: background 200ms ease-in-out;
|
|
475
|
+
[data-toolbar-icon-parent] {
|
|
476
|
+
display: block;
|
|
477
|
+
transition: transform 200ms ease-in-out;
|
|
478
|
+
svg {
|
|
479
|
+
display: block;
|
|
480
|
+
max-width: unset;
|
|
481
|
+
width: 16px;
|
|
482
|
+
height: 16px;
|
|
483
|
+
}
|
|
484
|
+
&[data-toolbar-icon-parent-open='true'] {
|
|
485
|
+
transform: rotate(180deg);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
&:hover {
|
|
489
|
+
background: #7190ff;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
[data-toolbar-duplicate],
|
|
493
|
+
[data-toolbar-delete] {
|
|
494
|
+
display: block;
|
|
495
|
+
padding: 4px;
|
|
496
|
+
border-radius: 2px;
|
|
497
|
+
transition: background 200ms ease-in-out;
|
|
498
|
+
svg {
|
|
499
|
+
display: block;
|
|
500
|
+
max-width: unset;
|
|
501
|
+
width: 16px;
|
|
502
|
+
height: 16px;
|
|
503
|
+
}
|
|
504
|
+
&:hover {
|
|
505
|
+
background: #7190ff;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
[data-toolbar][data-toolbar-section='true'] {
|
|
510
|
+
left: unset;
|
|
511
|
+
right: 0;
|
|
512
|
+
border-color: #d6d6d6;
|
|
513
|
+
}
|
|
514
|
+
[data-toolbar][data-toolbar-section='true'][data-toolbar-hover-focus],
|
|
515
|
+
[data-toolbar][data-toolbar-section='true'][data-toolbar-active] {
|
|
516
|
+
border-color: #3c67ff;
|
|
517
|
+
}
|
|
518
|
+
[data-toolbar][data-toolbar-editor-inline-focus] {
|
|
519
|
+
display: none;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/* Outline style default */
|
|
523
|
+
[data-outline] {
|
|
524
|
+
position: absolute;
|
|
525
|
+
z-index: 10;
|
|
526
|
+
top: 0;
|
|
527
|
+
left: 0;
|
|
528
|
+
width: 100%;
|
|
529
|
+
height: 100%;
|
|
530
|
+
border: solid 1px #3c67ff;
|
|
531
|
+
pointer-events: none;
|
|
532
|
+
opacity: 0;
|
|
533
|
+
visibility: hidden;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* State Outline */
|
|
537
|
+
[data-outline][data-outline-hover],
|
|
538
|
+
[data-outline][data-outline-force-hover] {
|
|
539
|
+
opacity: 1;
|
|
540
|
+
visibility: visible;
|
|
541
|
+
z-index: 12;
|
|
542
|
+
}
|
|
543
|
+
[data-outline][data-outline-active] {
|
|
544
|
+
opacity: 1;
|
|
545
|
+
visibility: visible;
|
|
546
|
+
z-index: 15;
|
|
547
|
+
}
|
|
548
|
+
[data-outline][data-outline-overlay],
|
|
549
|
+
[data-outline][data-outline-force-overlay] {
|
|
550
|
+
background: rgba(60, 103, 255, 0.1);
|
|
551
|
+
}
|
|
552
|
+
[data-outline][data-outline-section='true'] {
|
|
553
|
+
border-color: #d6d6d6;
|
|
554
|
+
z-index: 10;
|
|
555
|
+
}
|
|
556
|
+
[data-outline][data-outline-section='true'][data-outline-hover-focus],
|
|
557
|
+
[data-outline][data-outline-section='true'][data-outline-active] {
|
|
558
|
+
border-color: #3c67ff;
|
|
559
|
+
z-index: 15;
|
|
560
|
+
}
|
|
561
|
+
[data-outline][data-outline-editor-inline-focus] {
|
|
562
|
+
border-color: #3c67ff;
|
|
563
|
+
outline: 4px solid rgba(60, 103, 255, 0.24);
|
|
564
|
+
top: -2px;
|
|
565
|
+
left: -2px;
|
|
566
|
+
width: calc(100% + 4px);
|
|
567
|
+
height: calc(100% + 4px);
|
|
568
|
+
z-index: 15;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* Action add style default */
|
|
572
|
+
[data-toolbar-add-top],
|
|
573
|
+
[data-toolbar-add-bottom] {
|
|
574
|
+
width: 32px;
|
|
575
|
+
height: 32px;
|
|
576
|
+
display: flex;
|
|
577
|
+
justify-content: center;
|
|
578
|
+
align-items: center;
|
|
579
|
+
background: #fff;
|
|
580
|
+
color: #3c67ff;
|
|
581
|
+
border: solid 1px #d6d6d6;
|
|
582
|
+
border-radius: 3px;
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
position: absolute;
|
|
585
|
+
z-index: 50;
|
|
586
|
+
left: calc(50% - 16px);
|
|
587
|
+
top: -16px;
|
|
588
|
+
display: none;
|
|
589
|
+
user-select: none;
|
|
590
|
+
transition: border-color 200ms ease-in-out;
|
|
591
|
+
|
|
592
|
+
svg {
|
|
593
|
+
width: 16px;
|
|
594
|
+
height: 16px;
|
|
595
|
+
transition: transform 200ms ease-in-out;
|
|
596
|
+
}
|
|
597
|
+
&:hover {
|
|
598
|
+
border-color: #3c67ff;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
[data-toolbar-add-bottom] {
|
|
602
|
+
top: unset;
|
|
603
|
+
bottom: -16px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* Active add state */
|
|
607
|
+
[data-toolbar-add-top][data-toolbar-add-open='true'],
|
|
608
|
+
[data-toolbar-add-bottom][data-toolbar-add-open='true'] {
|
|
609
|
+
svg {
|
|
610
|
+
transform: rotate(45deg);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
[data-toolbar-add-top][data-toolbar-add-hover],
|
|
614
|
+
[data-toolbar-add-bottom][data-toolbar-add-hover] {
|
|
615
|
+
display: flex;
|
|
616
|
+
}
|
|
617
|
+
[data-toolbar-add-top][data-toolbar-add-active],
|
|
618
|
+
[data-toolbar-add-bottom][data-toolbar-add-active] {
|
|
619
|
+
display: flex;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* Resize spacing */
|
|
623
|
+
[data-spacing] {
|
|
624
|
+
[data-spacing-margin-bottom] {
|
|
625
|
+
position: absolute;
|
|
626
|
+
z-index: 20;
|
|
627
|
+
bottom: 0;
|
|
628
|
+
left: 0;
|
|
629
|
+
width: 100%;
|
|
630
|
+
display: flex;
|
|
631
|
+
justify-content: center;
|
|
632
|
+
|
|
633
|
+
display: none;
|
|
634
|
+
[data-spacing-margin-bottom-bg] {
|
|
635
|
+
position: absolute;
|
|
636
|
+
top: 0;
|
|
637
|
+
left: 0;
|
|
638
|
+
width: 100%;
|
|
639
|
+
background-color: #3c67ff33;
|
|
640
|
+
|
|
641
|
+
display: flex;
|
|
642
|
+
justify-content: center;
|
|
643
|
+
align-items: center;
|
|
644
|
+
[data-spacing-margin-bottom-value] {
|
|
645
|
+
background-color: #3c67ff;
|
|
646
|
+
padding: 2px;
|
|
647
|
+
position: absolute;
|
|
648
|
+
font-size: 8px;
|
|
649
|
+
color: #fff;
|
|
650
|
+
border-radius: 4px;
|
|
651
|
+
font-weight: bold;
|
|
652
|
+
|
|
653
|
+
display: none;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
[data-spacing-margin-bottom-drag] {
|
|
657
|
+
position: absolute;
|
|
658
|
+
bottom: 0;
|
|
659
|
+
height: 4px;
|
|
660
|
+
width: 40px;
|
|
661
|
+
border-top-left-radius: 4px;
|
|
662
|
+
border-top-right-radius: 4px;
|
|
663
|
+
cursor: ns-resize;
|
|
664
|
+
background-color: #3c67ff;
|
|
665
|
+
transition: height 0.2s;
|
|
666
|
+
transform: translateY(-100%);
|
|
667
|
+
&:hover {
|
|
668
|
+
height: 6px;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
[data-spacing-margin-bottom][data-spacing-margin-bottom-active] {
|
|
674
|
+
display: flex;
|
|
675
|
+
}
|
|
676
|
+
}
|