@rogieking/figui3 1.0.24 → 1.0.26
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/fig.css +231 -162
- package/package.json +2 -2
package/fig.css
CHANGED
|
@@ -350,43 +350,81 @@
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
|
|
354
353
|
:root {
|
|
355
354
|
--font-size: 16px;
|
|
356
355
|
--figma-color-bordertranslucent: rgba(0, 0, 0, 0.1);
|
|
357
|
-
--checkerboard: repeating-conic-gradient(
|
|
358
|
-
|
|
356
|
+
--checkerboard: repeating-conic-gradient(
|
|
357
|
+
rgba(0, 0, 0, 0.1) 0% 25%,
|
|
358
|
+
rgba(255, 255, 255, 0.1) 0% 50%
|
|
359
|
+
)
|
|
360
|
+
0 0 / 0.66666rem 0.66666rem;
|
|
361
|
+
--bg-hue: linear-gradient(
|
|
362
|
+
90deg,
|
|
363
|
+
rgba(255, 0, 0, 1),
|
|
364
|
+
rgba(255, 48, 0, 1),
|
|
365
|
+
rgba(255, 96, 0, 1),
|
|
366
|
+
rgba(255, 143, 0, 1),
|
|
367
|
+
rgba(255, 191, 0, 1),
|
|
368
|
+
rgba(255, 239, 0, 1),
|
|
369
|
+
rgba(223, 255, 0, 1),
|
|
370
|
+
rgba(175, 255, 0, 1),
|
|
371
|
+
rgba(128, 255, 0, 1),
|
|
372
|
+
rgba(80, 255, 0, 1),
|
|
373
|
+
rgba(32, 255, 0, 1),
|
|
374
|
+
rgba(0, 255, 16, 1),
|
|
375
|
+
rgba(0, 255, 64, 1),
|
|
376
|
+
rgba(0, 255, 112, 1),
|
|
377
|
+
rgba(0, 255, 159, 1),
|
|
378
|
+
rgba(0, 255, 207, 1),
|
|
379
|
+
rgba(0, 255, 255, 1),
|
|
380
|
+
rgba(0, 207, 255, 1),
|
|
381
|
+
rgba(0, 159, 255, 1),
|
|
382
|
+
rgba(0, 112, 255, 1),
|
|
383
|
+
rgba(0, 64, 255, 1),
|
|
384
|
+
rgba(0, 16, 255, 1),
|
|
385
|
+
rgba(32, 0, 255, 1),
|
|
386
|
+
rgba(80, 0, 255, 1),
|
|
387
|
+
rgba(127, 0, 255, 1),
|
|
388
|
+
rgba(175, 0, 255, 1),
|
|
389
|
+
rgba(223, 0, 255, 1),
|
|
390
|
+
rgba(255, 0, 239, 1),
|
|
391
|
+
rgba(255, 0, 191, 1),
|
|
392
|
+
rgba(255, 0, 143, 1),
|
|
393
|
+
rgba(255, 0, 96, 1),
|
|
394
|
+
rgba(255, 0, 48, 1)
|
|
395
|
+
);
|
|
359
396
|
--input-transition: all 0.08s ease-out;
|
|
360
|
-
--bg-selected: #
|
|
361
|
-
--bg-selected-active: #
|
|
362
|
-
--bg-tooltip: #
|
|
397
|
+
--bg-selected: #f5f5f5;
|
|
398
|
+
--bg-selected-active: #e5f4ff;
|
|
399
|
+
--bg-tooltip: #1e1e1e;
|
|
363
400
|
--body-medium-fontSize: 0.6875rem;
|
|
364
|
-
--figma-color-border-selected: #
|
|
365
|
-
--spacer-1: .25rem;
|
|
366
|
-
--spacer-2: .5rem;
|
|
401
|
+
--figma-color-border-selected: #0d99ff;
|
|
402
|
+
--spacer-1: 0.25rem;
|
|
403
|
+
--spacer-2: 0.5rem;
|
|
367
404
|
--spacer-3: 1rem;
|
|
368
405
|
--spacer-4: 1.5rem;
|
|
369
406
|
--spacer-5: 2rem;
|
|
370
407
|
--spacer-6: 2.5rem;
|
|
371
|
-
--color-tooltip: #
|
|
408
|
+
--color-tooltip: #ffffff;
|
|
372
409
|
--radius-medium: 0.3125rem;
|
|
373
410
|
--radius-large: 0.8125rem;
|
|
374
411
|
--body-medium-strong-fontWeight: 550;
|
|
375
412
|
--handle-shadow: 0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
376
|
-
0px 1px 3px 0px rgba(0, 0, 0, 0.05),
|
|
377
|
-
0px 3px 8px 0px rgba(0, 0, 0, 0.05),
|
|
413
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.05), 0px 3px 8px 0px rgba(0, 0, 0, 0.05),
|
|
378
414
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.1);
|
|
379
415
|
|
|
380
416
|
--popover-min-width: 15rem;
|
|
381
417
|
--figma-color-bg-ghost-hover: rgba(0, 0, 0, 0.05);
|
|
382
|
-
--elevation-500-modal-window: 0px 0px .5px rgba(0, 0, 0, .08),
|
|
418
|
+
--elevation-500-modal-window: 0px 0px 0.5px rgba(0, 0, 0, 0.08),
|
|
419
|
+
0px 10px 24px rgba(0, 0, 0, 0.18), 0px 2px 5px rgba(0, 0, 0, 0.15);
|
|
383
420
|
|
|
384
421
|
color-scheme: light dark;
|
|
385
422
|
/* Icons */
|
|
386
423
|
--icon-chevron: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.87868 7.12132L8 9.24264L10.1213 7.12132' stroke='rgb(0 0 0 / 50%)' stroke-linecap='round'/%3E%3C/svg%3E%0A");
|
|
387
424
|
|
|
388
425
|
/* Elevations */
|
|
389
|
-
--figma-elevation-100: 0px 0px 0.5px 0px rgba(0, 0, 0, 0.
|
|
426
|
+
--figma-elevation-100: 0px 0px 0.5px 0px rgba(0, 0, 0, 0.3),
|
|
427
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.15);
|
|
390
428
|
}
|
|
391
429
|
|
|
392
430
|
@media (prefers-color-scheme: dark) {
|
|
@@ -396,8 +434,12 @@
|
|
|
396
434
|
0px 0px 0.5px 0px rgba(255, 255, 255, 0.1);
|
|
397
435
|
--figma-color-bg-ghost-hover: rgba(255, 255, 255, 0.05);
|
|
398
436
|
--figma-color-bordertranslucent: rgba(255, 255, 255, 0.1);
|
|
399
|
-
--elevation-500-modal-window: 0px 10px 24px rgba(0, 0, 0, .45),
|
|
400
|
-
|
|
437
|
+
--elevation-500-modal-window: 0px 10px 24px rgba(0, 0, 0, 0.45),
|
|
438
|
+
0px 3px 5px rgba(0, 0, 0, 0.35),
|
|
439
|
+
inset 0px 0.75px 0px rgba(255, 255, 255, 0.1);
|
|
440
|
+
--figma-elevation-100: 0px 0px 0.5px 0px rgba(0, 0, 0, 0.5),
|
|
441
|
+
0px 0.75px 0px 0px rgba(255, 255, 255, 0.1) inset,
|
|
442
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.4);
|
|
401
443
|
}
|
|
402
444
|
}
|
|
403
445
|
|
|
@@ -409,7 +451,9 @@ html {
|
|
|
409
451
|
color: var(--figma-color-text);
|
|
410
452
|
-webkit-font-smoothing: antialiased;
|
|
411
453
|
-moz-osx-font-smoothing: grayscale;
|
|
412
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, avenir next, avenir,
|
|
454
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, avenir next, avenir,
|
|
455
|
+
segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial,
|
|
456
|
+
sans-serif;
|
|
413
457
|
font-size: 16px;
|
|
414
458
|
font-weight: 500;
|
|
415
459
|
background-color: var(--figma-color-bg);
|
|
@@ -435,7 +479,7 @@ body {
|
|
|
435
479
|
|
|
436
480
|
::-webkit-scrollbar-thumb {
|
|
437
481
|
background-color: var(--figma-color-bg-tertiary);
|
|
438
|
-
border-radius: calc(var(--spacer-1)/2);
|
|
482
|
+
border-radius: calc(var(--spacer-1) / 2);
|
|
439
483
|
}
|
|
440
484
|
|
|
441
485
|
::-webkit-scrollbar-thumb:hover {
|
|
@@ -445,7 +489,8 @@ body {
|
|
|
445
489
|
/* For Firefox */
|
|
446
490
|
* {
|
|
447
491
|
scrollbar-width: thin;
|
|
448
|
-
scrollbar-color: var(--figma-color-bg-tertiary)
|
|
492
|
+
scrollbar-color: var(--figma-color-bg-tertiary)
|
|
493
|
+
var(--figma-color-bg-secondary);
|
|
449
494
|
}
|
|
450
495
|
|
|
451
496
|
.subtle {
|
|
@@ -468,7 +513,6 @@ h2 {
|
|
|
468
513
|
margin: var(--spacer-2) 0;
|
|
469
514
|
}
|
|
470
515
|
|
|
471
|
-
|
|
472
516
|
button,
|
|
473
517
|
select,
|
|
474
518
|
input,
|
|
@@ -482,8 +526,8 @@ fieldset {
|
|
|
482
526
|
}
|
|
483
527
|
|
|
484
528
|
textarea,
|
|
485
|
-
input[type=text],
|
|
486
|
-
input[type=number],
|
|
529
|
+
input[type="text"],
|
|
530
|
+
input[type="number"],
|
|
487
531
|
.input {
|
|
488
532
|
background-color: var(--figma-color-bg-secondary);
|
|
489
533
|
border: 0;
|
|
@@ -519,8 +563,8 @@ fig-segmented-control {
|
|
|
519
563
|
display: inline-flex;
|
|
520
564
|
align-items: stretch;
|
|
521
565
|
|
|
522
|
-
|
|
523
|
-
|
|
566
|
+
& > fig-segment,
|
|
567
|
+
& > label {
|
|
524
568
|
flex: 1;
|
|
525
569
|
display: flex;
|
|
526
570
|
align-items: center;
|
|
@@ -529,8 +573,8 @@ fig-segmented-control {
|
|
|
529
573
|
appearance: none;
|
|
530
574
|
padding: 0 var(--spacer-2);
|
|
531
575
|
|
|
532
|
-
&[selected]:not([selected=false]),
|
|
533
|
-
&[selected=true] {
|
|
576
|
+
&[selected]:not([selected="false"]),
|
|
577
|
+
&[selected="true"] {
|
|
534
578
|
background-color: var(--figma-color-bg);
|
|
535
579
|
border-radius: calc(var(--radius-medium) - 1px);
|
|
536
580
|
box-shadow: var(--handle-shadow);
|
|
@@ -548,7 +592,7 @@ textarea {
|
|
|
548
592
|
|
|
549
593
|
/* Dropdown */
|
|
550
594
|
select,
|
|
551
|
-
input[type=text][list] {
|
|
595
|
+
input[type="text"][list] {
|
|
552
596
|
height: var(--spacer-4);
|
|
553
597
|
padding: 0 var(--spacer-2);
|
|
554
598
|
appearance: none;
|
|
@@ -572,16 +616,16 @@ input[type=text][list] {
|
|
|
572
616
|
}
|
|
573
617
|
}
|
|
574
618
|
|
|
575
|
-
input[type=text][list]:hover,
|
|
576
|
-
input[type=text][list]:active,
|
|
577
|
-
input[type=text][list]:focus,
|
|
619
|
+
input[type="text"][list]:hover,
|
|
620
|
+
input[type="text"][list]:active,
|
|
621
|
+
input[type="text"][list]:focus,
|
|
578
622
|
select {
|
|
579
623
|
background-image: var(--icon-chevron);
|
|
580
624
|
background-position: calc(100% - 0.25rem) center;
|
|
581
625
|
background-repeat: no-repeat;
|
|
582
626
|
}
|
|
583
627
|
|
|
584
|
-
input[type=text][list],
|
|
628
|
+
input[type="text"][list],
|
|
585
629
|
select {
|
|
586
630
|
padding-right: 1.5rem;
|
|
587
631
|
}
|
|
@@ -594,8 +638,8 @@ fig-dropdown:has([trigger]) {
|
|
|
594
638
|
}
|
|
595
639
|
}
|
|
596
640
|
|
|
597
|
-
fig-dialog
|
|
598
|
-
fig-dropdown>option {
|
|
641
|
+
fig-dialog > *:not(dialog),
|
|
642
|
+
fig-dropdown > option {
|
|
599
643
|
display: none !important;
|
|
600
644
|
}
|
|
601
645
|
|
|
@@ -617,7 +661,7 @@ fig-button {
|
|
|
617
661
|
background-color: var(--figma-color-bg-brand);
|
|
618
662
|
font-weight: 500;
|
|
619
663
|
|
|
620
|
-
|
|
664
|
+
& > button {
|
|
621
665
|
background: transparent;
|
|
622
666
|
box-shadow: none;
|
|
623
667
|
border: 0;
|
|
@@ -632,7 +676,7 @@ fig-button {
|
|
|
632
676
|
color: currentColor;
|
|
633
677
|
}
|
|
634
678
|
|
|
635
|
-
&:has(>button) {
|
|
679
|
+
&:has(> button) {
|
|
636
680
|
padding: 0;
|
|
637
681
|
}
|
|
638
682
|
|
|
@@ -656,11 +700,10 @@ fig-button {
|
|
|
656
700
|
}
|
|
657
701
|
}
|
|
658
702
|
|
|
659
|
-
&[variant="ghost"][disabled=true] {
|
|
703
|
+
&[variant="ghost"][disabled="true"] {
|
|
660
704
|
background-color: transparent;
|
|
661
705
|
}
|
|
662
706
|
|
|
663
|
-
|
|
664
707
|
/* Variant: Secondary */
|
|
665
708
|
&[variant="secondary"] {
|
|
666
709
|
box-shadow: inset 0 0 0 1px var(--figma-color-border);
|
|
@@ -674,7 +717,7 @@ fig-button {
|
|
|
674
717
|
|
|
675
718
|
/* Icon only */
|
|
676
719
|
&[icon],
|
|
677
|
-
&[icon]>button {
|
|
720
|
+
&[icon] > button {
|
|
678
721
|
width: var(--spacer-4);
|
|
679
722
|
padding: 0;
|
|
680
723
|
|
|
@@ -685,10 +728,10 @@ fig-button {
|
|
|
685
728
|
|
|
686
729
|
/* Upload */
|
|
687
730
|
&[upload],
|
|
688
|
-
&[upload]>button {
|
|
731
|
+
&[upload] > button {
|
|
689
732
|
position: relative;
|
|
690
733
|
|
|
691
|
-
& input[type=file] {
|
|
734
|
+
& input[type="file"] {
|
|
692
735
|
opacity: 0;
|
|
693
736
|
position: absolute;
|
|
694
737
|
inset: 0;
|
|
@@ -697,8 +740,8 @@ fig-button {
|
|
|
697
740
|
}
|
|
698
741
|
|
|
699
742
|
/* Disabled */
|
|
700
|
-
&[disabled=true],
|
|
701
|
-
&[disabled=true]>button {
|
|
743
|
+
&[disabled="true"],
|
|
744
|
+
&[disabled="true"] > button {
|
|
702
745
|
background-color: var(--figma-color-bg-disabled);
|
|
703
746
|
color: var(--figma-color-text-disabled);
|
|
704
747
|
pointer-events: none;
|
|
@@ -706,12 +749,12 @@ fig-button {
|
|
|
706
749
|
|
|
707
750
|
/* Size */
|
|
708
751
|
&[size="large"],
|
|
709
|
-
&[size="large"]>button {
|
|
752
|
+
&[size="large"] > button {
|
|
710
753
|
height: var(--spacer-5);
|
|
711
754
|
}
|
|
712
755
|
|
|
713
756
|
&[size="large"][icon],
|
|
714
|
-
&[size="large"][icon]>button {
|
|
757
|
+
&[size="large"][icon] > button {
|
|
715
758
|
width: var(--spacer-5);
|
|
716
759
|
}
|
|
717
760
|
|
|
@@ -721,8 +764,8 @@ fig-button {
|
|
|
721
764
|
}
|
|
722
765
|
|
|
723
766
|
/* Block button */
|
|
724
|
-
&[inline=false],
|
|
725
|
-
&[inline=false]>button {
|
|
767
|
+
&[inline="false"],
|
|
768
|
+
&[inline="false"] > button {
|
|
726
769
|
display: flex;
|
|
727
770
|
width: 100%;
|
|
728
771
|
justify-content: left;
|
|
@@ -732,12 +775,11 @@ fig-button {
|
|
|
732
775
|
padding: var(--spacer-1) var(--spacer-2);
|
|
733
776
|
}
|
|
734
777
|
|
|
735
|
-
&[inline=false] {
|
|
778
|
+
&[inline="false"] {
|
|
736
779
|
padding: 0;
|
|
737
780
|
}
|
|
738
781
|
|
|
739
|
-
&[selected]:not([selected=false]) {
|
|
740
|
-
|
|
782
|
+
&[selected]:not([selected="false"]) {
|
|
741
783
|
&,
|
|
742
784
|
&:hover {
|
|
743
785
|
color: var(--figma-color-icon-brand);
|
|
@@ -750,15 +792,12 @@ fig-button {
|
|
|
750
792
|
outline: 0;
|
|
751
793
|
box-shadow: inset 0 0 0 1px var(--figma-color-border-selected);
|
|
752
794
|
}
|
|
753
|
-
|
|
754
795
|
}
|
|
755
796
|
|
|
756
|
-
fig-button>button {
|
|
797
|
+
fig-button > button {
|
|
757
798
|
width: 100%;
|
|
758
799
|
}
|
|
759
800
|
|
|
760
|
-
|
|
761
|
-
|
|
762
801
|
/* Tabs */
|
|
763
802
|
fig-tab,
|
|
764
803
|
.tab {
|
|
@@ -803,7 +842,7 @@ fig-tab,
|
|
|
803
842
|
background-color: var(--figma-color-bg-secondary);
|
|
804
843
|
}
|
|
805
844
|
|
|
806
|
-
& [type=radio] {
|
|
845
|
+
& [type="radio"] {
|
|
807
846
|
position: absolute;
|
|
808
847
|
inset: 0;
|
|
809
848
|
border-radius: 0;
|
|
@@ -852,7 +891,7 @@ fig-tabs,
|
|
|
852
891
|
}
|
|
853
892
|
|
|
854
893
|
/* Color input */
|
|
855
|
-
input[type=color] {
|
|
894
|
+
input[type="color"] {
|
|
856
895
|
width: 14px;
|
|
857
896
|
height: 14px;
|
|
858
897
|
-webkit-appearance: none;
|
|
@@ -873,7 +912,7 @@ input[type=color] {
|
|
|
873
912
|
}
|
|
874
913
|
}
|
|
875
914
|
|
|
876
|
-
input[type=color]::-webkit-color-swatch-wrapper {
|
|
915
|
+
input[type="color"]::-webkit-color-swatch-wrapper {
|
|
877
916
|
padding: 0;
|
|
878
917
|
border: 0;
|
|
879
918
|
border-radius: 0.125rem;
|
|
@@ -882,17 +921,27 @@ input[type=color]::-webkit-color-swatch-wrapper {
|
|
|
882
921
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
883
922
|
}
|
|
884
923
|
|
|
885
|
-
input[type=color]::-moz-color-swatch {
|
|
924
|
+
input[type="color"]::-moz-color-swatch {
|
|
886
925
|
border-radius: 0.125rem;
|
|
887
926
|
padding: 0;
|
|
888
927
|
border: 0;
|
|
889
|
-
mask-image: linear-gradient(
|
|
928
|
+
mask-image: linear-gradient(
|
|
929
|
+
to right,
|
|
930
|
+
black 0%,
|
|
931
|
+
black 50%,
|
|
932
|
+
rgba(0, 0, 0, var(--alpha)) 50%
|
|
933
|
+
);
|
|
890
934
|
}
|
|
891
935
|
|
|
892
|
-
input[type=color]::-webkit-color-swatch {
|
|
936
|
+
input[type="color"]::-webkit-color-swatch {
|
|
893
937
|
padding: 0;
|
|
894
938
|
border: 0;
|
|
895
|
-
mask-image: linear-gradient(
|
|
939
|
+
mask-image: linear-gradient(
|
|
940
|
+
to right,
|
|
941
|
+
black 0%,
|
|
942
|
+
black 50%,
|
|
943
|
+
rgba(0, 0, 0, var(--alpha)) 50%
|
|
944
|
+
);
|
|
896
945
|
}
|
|
897
946
|
|
|
898
947
|
/* Combo input */
|
|
@@ -902,29 +951,28 @@ input[type=color]::-webkit-color-swatch {
|
|
|
902
951
|
align-items: center;
|
|
903
952
|
gap: 1px;
|
|
904
953
|
|
|
905
|
-
|
|
906
|
-
|
|
954
|
+
& > * {
|
|
907
955
|
&:first-child,
|
|
908
|
-
&:first-child
|
|
956
|
+
&:first-child > * {
|
|
909
957
|
border-top-right-radius: 0;
|
|
910
958
|
border-bottom-right-radius: 0;
|
|
911
959
|
}
|
|
912
960
|
|
|
913
961
|
&:last-child,
|
|
914
|
-
&:last-child
|
|
962
|
+
&:last-child > * {
|
|
915
963
|
border-top-left-radius: 0;
|
|
916
964
|
border-bottom-left-radius: 0;
|
|
917
965
|
}
|
|
918
966
|
|
|
919
967
|
&:not(:last-child):not(:first-child),
|
|
920
|
-
&:not(:last-child):not(:first-child)
|
|
968
|
+
&:not(:last-child):not(:first-child) > * {
|
|
921
969
|
border-radius: 0;
|
|
922
970
|
}
|
|
923
971
|
}
|
|
924
972
|
}
|
|
925
973
|
|
|
926
974
|
/* Switch */
|
|
927
|
-
input[type=checkbox].switch {
|
|
975
|
+
input[type="checkbox"].switch {
|
|
928
976
|
display: inline-flex;
|
|
929
977
|
margin: 0;
|
|
930
978
|
vertical-align: middle;
|
|
@@ -949,8 +997,8 @@ input[type=checkbox].switch {
|
|
|
949
997
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
950
998
|
}
|
|
951
999
|
|
|
952
|
-
input[type=checkbox].switch:after {
|
|
953
|
-
content:
|
|
1000
|
+
input[type="checkbox"].switch:after {
|
|
1001
|
+
content: "";
|
|
954
1002
|
background-color: var(--figma-color-icon-onbrand);
|
|
955
1003
|
width: calc(1rem - 2px);
|
|
956
1004
|
height: calc(1rem - 2px);
|
|
@@ -961,36 +1009,36 @@ input[type=checkbox].switch:after {
|
|
|
961
1009
|
box-shadow: var(--handle-shadow);
|
|
962
1010
|
}
|
|
963
1011
|
|
|
964
|
-
input[type=checkbox].switch[indeterminate="true"]:after {
|
|
1012
|
+
input[type="checkbox"].switch[indeterminate="true"]:after {
|
|
965
1013
|
width: 0.5rem;
|
|
966
1014
|
height: 0.125rem;
|
|
967
1015
|
transform: none;
|
|
968
1016
|
}
|
|
969
1017
|
|
|
970
|
-
input[type=checkbox].switch[indeterminate="true"],
|
|
971
|
-
input[type=checkbox].switch:checked {
|
|
1018
|
+
input[type="checkbox"].switch[indeterminate="true"],
|
|
1019
|
+
input[type="checkbox"].switch:checked {
|
|
972
1020
|
background-color: var(--figma-color-bg-brand);
|
|
973
1021
|
}
|
|
974
1022
|
|
|
975
|
-
input[type=checkbox].switch:checked:after {
|
|
1023
|
+
input[type="checkbox"].switch:checked:after {
|
|
976
1024
|
transform: translate(0.5rem);
|
|
977
1025
|
}
|
|
978
1026
|
|
|
979
|
-
input[type=checkbox].switch:disabled {
|
|
1027
|
+
input[type="checkbox"].switch:disabled {
|
|
980
1028
|
background-color: var(--figma-color-bg-tertiary);
|
|
981
1029
|
cursor: not-allowed;
|
|
982
1030
|
}
|
|
983
1031
|
|
|
984
|
-
input[type=checkbox].switch:focus {
|
|
1032
|
+
input[type="checkbox"].switch:focus {
|
|
985
1033
|
outline: 0;
|
|
986
1034
|
}
|
|
987
1035
|
|
|
988
|
-
input[type=checkbox].switch:checked:focus {
|
|
1036
|
+
input[type="checkbox"].switch:checked:focus {
|
|
989
1037
|
outline: 0;
|
|
990
1038
|
}
|
|
991
1039
|
|
|
992
1040
|
/* Checkbox */
|
|
993
|
-
input[type=checkbox]:not(.switch) {
|
|
1041
|
+
input[type="checkbox"]:not(.switch) {
|
|
994
1042
|
appearance: none;
|
|
995
1043
|
border-radius: var(--radius-medium);
|
|
996
1044
|
width: 1rem;
|
|
@@ -1018,20 +1066,20 @@ input[type=checkbox]:not(.switch) {
|
|
|
1018
1066
|
}
|
|
1019
1067
|
}
|
|
1020
1068
|
|
|
1021
|
-
.figma-light input[type=checkbox]:not(.switch):hover {
|
|
1069
|
+
.figma-light input[type="checkbox"]:not(.switch):hover {
|
|
1022
1070
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.50012 7.5L7.50012 10.5L11.5001 4.5' stroke='black' opacity='0.25' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.125' /%3E%3C/svg%3E%0A");
|
|
1023
1071
|
}
|
|
1024
1072
|
|
|
1025
|
-
label.checkbox:has([type=checkbox]) {
|
|
1073
|
+
label.checkbox:has([type="checkbox"]) {
|
|
1026
1074
|
padding-left: 1.5rem;
|
|
1027
1075
|
|
|
1028
|
-
& [type=radio] {
|
|
1076
|
+
& [type="radio"] {
|
|
1029
1077
|
margin-left: -1.5rem;
|
|
1030
1078
|
}
|
|
1031
1079
|
}
|
|
1032
1080
|
|
|
1033
1081
|
/* Radio */
|
|
1034
|
-
input[type=radio] {
|
|
1082
|
+
input[type="radio"] {
|
|
1035
1083
|
appearance: none;
|
|
1036
1084
|
border-radius: 0.5rem;
|
|
1037
1085
|
width: 1rem;
|
|
@@ -1068,24 +1116,22 @@ input[type=radio] {
|
|
|
1068
1116
|
}
|
|
1069
1117
|
|
|
1070
1118
|
&::after {
|
|
1071
|
-
content:
|
|
1119
|
+
content: "";
|
|
1072
1120
|
width: 0.5rem;
|
|
1073
1121
|
height: 0.5rem;
|
|
1074
1122
|
border-radius: 0.25rem;
|
|
1075
1123
|
background-color: var(--figma-color-text-onbrand);
|
|
1076
1124
|
transform: scale(0);
|
|
1077
|
-
box-shadow:
|
|
1078
|
-
0px 0 0 0.
|
|
1079
|
-
0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
1080
|
-
0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
1125
|
+
box-shadow: 0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
1126
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
1081
1127
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.18);
|
|
1082
1128
|
}
|
|
1083
1129
|
}
|
|
1084
1130
|
|
|
1085
|
-
label.radio:has([type=radio]) {
|
|
1131
|
+
label.radio:has([type="radio"]) {
|
|
1086
1132
|
padding-left: 1.5rem;
|
|
1087
1133
|
|
|
1088
|
-
& [type=radio] {
|
|
1134
|
+
& [type="radio"] {
|
|
1089
1135
|
margin-left: -1.5rem;
|
|
1090
1136
|
}
|
|
1091
1137
|
}
|
|
@@ -1099,15 +1145,15 @@ fieldset {
|
|
|
1099
1145
|
align-items: start;
|
|
1100
1146
|
padding: var(--spacer-2) 0;
|
|
1101
1147
|
|
|
1102
|
-
|
|
1148
|
+
& > legend {
|
|
1103
1149
|
margin-top: 0.125rem;
|
|
1104
1150
|
font-weight: 500;
|
|
1105
|
-
font-size: .625rem;
|
|
1151
|
+
font-size: 0.625rem;
|
|
1106
1152
|
line-height: 0.875rem;
|
|
1107
1153
|
color: var(--figma-color-text-secondary);
|
|
1108
1154
|
}
|
|
1109
1155
|
|
|
1110
|
-
|
|
1156
|
+
& > label {
|
|
1111
1157
|
display: grid;
|
|
1112
1158
|
width: 100%;
|
|
1113
1159
|
grid-template-columns: 4rem 1fr;
|
|
@@ -1118,7 +1164,7 @@ fieldset {
|
|
|
1118
1164
|
|
|
1119
1165
|
/* Details */
|
|
1120
1166
|
details {
|
|
1121
|
-
|
|
1167
|
+
& > summary {
|
|
1122
1168
|
font-weight: var(--body-medium-strong-fontWeight);
|
|
1123
1169
|
cursor: default;
|
|
1124
1170
|
display: flex;
|
|
@@ -1135,7 +1181,8 @@ details {
|
|
|
1135
1181
|
justify-content: center;
|
|
1136
1182
|
width: 1rem;
|
|
1137
1183
|
transform: rotate(-90deg);
|
|
1138
|
-
transition: transform var(--transition-duration)
|
|
1184
|
+
transition: transform var(--transition-duration)
|
|
1185
|
+
var(--transition-timing-function);
|
|
1139
1186
|
}
|
|
1140
1187
|
|
|
1141
1188
|
&::marker {
|
|
@@ -1143,8 +1190,8 @@ details {
|
|
|
1143
1190
|
}
|
|
1144
1191
|
}
|
|
1145
1192
|
|
|
1146
|
-
|
|
1147
|
-
&[open]>summary {
|
|
1193
|
+
& > summary:hover,
|
|
1194
|
+
&[open] > summary {
|
|
1148
1195
|
color: inherit;
|
|
1149
1196
|
|
|
1150
1197
|
&::before {
|
|
@@ -1153,17 +1200,16 @@ details {
|
|
|
1153
1200
|
}
|
|
1154
1201
|
|
|
1155
1202
|
&[open] {
|
|
1156
|
-
|
|
1203
|
+
& > summary::before {
|
|
1157
1204
|
transform: rotate(0deg);
|
|
1158
1205
|
}
|
|
1159
1206
|
}
|
|
1160
1207
|
}
|
|
1161
1208
|
|
|
1162
|
-
.figma-light details>summary:before {
|
|
1209
|
+
.figma-light details > summary:before {
|
|
1163
1210
|
content: var(--icon-chevron);
|
|
1164
1211
|
}
|
|
1165
1212
|
|
|
1166
|
-
|
|
1167
1213
|
/* Details
|
|
1168
1214
|
|
|
1169
1215
|
details summary{
|
|
@@ -1202,24 +1248,19 @@ details {
|
|
|
1202
1248
|
}
|
|
1203
1249
|
*/
|
|
1204
1250
|
|
|
1205
|
-
|
|
1206
1251
|
.fig-slider,
|
|
1207
1252
|
fig-slider {
|
|
1208
1253
|
--slider-height: 1rem;
|
|
1209
1254
|
--slider-percent: calc(var(--slider-complete) * 100%);
|
|
1210
1255
|
--start-percent: calc(var(--default, 0) * 100%);
|
|
1211
|
-
--slider-tick-size: calc(var(--slider-height)/4);
|
|
1256
|
+
--slider-tick-size: calc(var(--slider-height) / 4);
|
|
1212
1257
|
--slider-handle-shadow: inset 0 0 0 4px var(--figma-color-icon-onbrand),
|
|
1213
|
-
inset 0 0 0 5px rgba(0, 0, 0, 0.1),
|
|
1214
|
-
0px 0 0 0.
|
|
1215
|
-
0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
1216
|
-
0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
1258
|
+
inset 0 0 0 5px rgba(0, 0, 0, 0.1), 0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
1259
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
1217
1260
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.18);
|
|
1218
1261
|
--slider-handle-shadow-focus: inset 0 0 0 4px var(--figma-color-icon-onbrand),
|
|
1219
|
-
inset 0 0 0 5px rgba(0, 0, 0, 0.1),
|
|
1220
|
-
0px 0 0 0.
|
|
1221
|
-
0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
1222
|
-
0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
1262
|
+
inset 0 0 0 5px rgba(0, 0, 0, 0.1), 0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
1263
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
1223
1264
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.18),
|
|
1224
1265
|
0 0 0 1px var(--figma-color-border-selected);
|
|
1225
1266
|
|
|
@@ -1235,7 +1276,7 @@ fig-slider {
|
|
|
1235
1276
|
|
|
1236
1277
|
/* Track */
|
|
1237
1278
|
&::before {
|
|
1238
|
-
content:
|
|
1279
|
+
content: "";
|
|
1239
1280
|
background: var(--figma-color-bg-brand);
|
|
1240
1281
|
position: absolute;
|
|
1241
1282
|
left: 0;
|
|
@@ -1244,42 +1285,48 @@ fig-slider {
|
|
|
1244
1285
|
border-radius: 0.5rem;
|
|
1245
1286
|
min-width: var(--slider-height);
|
|
1246
1287
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
1247
|
-
width: calc(
|
|
1288
|
+
width: calc(
|
|
1289
|
+
var(--slider-percent) + (1 - var(--slider-complete)) *
|
|
1290
|
+
var(--slider-height)
|
|
1291
|
+
);
|
|
1248
1292
|
max-width: 100%;
|
|
1249
1293
|
}
|
|
1250
1294
|
}
|
|
1251
1295
|
|
|
1252
1296
|
/* TODO: Delta sizing */
|
|
1253
|
-
&[type=delta] {
|
|
1297
|
+
&[type="delta"] {
|
|
1254
1298
|
.fig-slider-input-container {
|
|
1255
1299
|
&::before {
|
|
1256
|
-
--left-start: calc(var(--start-percent) - var(--slider-height)/2);
|
|
1300
|
+
--left-start: calc(var(--start-percent) - var(--slider-height) / 2);
|
|
1257
1301
|
left: min(var(--left-start), var(--slider-percent));
|
|
1258
1302
|
--width: calc(var(--slider-percent) - var(--start-percent));
|
|
1259
|
-
--abs-width: max(
|
|
1303
|
+
--abs-width: max(
|
|
1304
|
+
var(--width) + var(--slider-height) / 2,
|
|
1305
|
+
-1 * var(--width) + var(--slider-height) / 2
|
|
1306
|
+
);
|
|
1260
1307
|
width: var(--abs-width);
|
|
1261
1308
|
--delta: calc(var(--slider-complete) - var(--default));
|
|
1262
|
-
--abs-delta: max(var(--delta), -1*var(--delta));
|
|
1309
|
+
--abs-delta: max(var(--delta), -1 * var(--delta));
|
|
1263
1310
|
opacity: calc(var(--abs-delta) * 100);
|
|
1264
1311
|
}
|
|
1265
1312
|
|
|
1266
1313
|
&::after {
|
|
1267
|
-
content:
|
|
1314
|
+
content: "";
|
|
1268
1315
|
width: var(--slider-tick-size);
|
|
1269
1316
|
height: var(--slider-tick-size);
|
|
1270
1317
|
aspect-ratio: 1;
|
|
1271
1318
|
border-radius: 100%;
|
|
1272
1319
|
font-size: 0;
|
|
1273
1320
|
position: absolute;
|
|
1274
|
-
left: calc(var(--start-percent) - var(--slider-tick-size)/2);
|
|
1275
|
-
top: calc(50% - var(--slider-tick-size)/2);
|
|
1321
|
+
left: calc(var(--start-percent) - var(--slider-tick-size) / 2);
|
|
1322
|
+
top: calc(50% - var(--slider-tick-size) / 2);
|
|
1276
1323
|
background: var(--figma-color-icon-tertiary);
|
|
1277
1324
|
}
|
|
1278
1325
|
}
|
|
1279
1326
|
}
|
|
1280
1327
|
|
|
1281
|
-
&[type=hue],
|
|
1282
|
-
&[type=opacity] {
|
|
1328
|
+
&[type="hue"],
|
|
1329
|
+
&[type="opacity"] {
|
|
1283
1330
|
.fig-slider-input-container {
|
|
1284
1331
|
&::before {
|
|
1285
1332
|
display: none;
|
|
@@ -1288,11 +1335,11 @@ fig-slider {
|
|
|
1288
1335
|
}
|
|
1289
1336
|
|
|
1290
1337
|
/* Chromium */
|
|
1291
|
-
input[type=range] {
|
|
1338
|
+
input[type="range"] {
|
|
1292
1339
|
height: var(--slider-height);
|
|
1293
1340
|
appearance: none;
|
|
1294
1341
|
-webkit-appearance: none;
|
|
1295
|
-
border-radius: calc(var(--slider-height)/2);
|
|
1342
|
+
border-radius: calc(var(--slider-height) / 2);
|
|
1296
1343
|
display: block;
|
|
1297
1344
|
width: 100%;
|
|
1298
1345
|
cursor: grab;
|
|
@@ -1324,7 +1371,12 @@ fig-slider {
|
|
|
1324
1371
|
cursor: not-allowed;
|
|
1325
1372
|
|
|
1326
1373
|
&::-webkit-slider-runnable-track {
|
|
1327
|
-
background: linear-gradient(
|
|
1374
|
+
background: linear-gradient(
|
|
1375
|
+
to right,
|
|
1376
|
+
var(--figma-color-bg-secondary) 0%,
|
|
1377
|
+
var(--figma-color-bg-secondary) var(--slider-percent),
|
|
1378
|
+
var(--figma-color-bg) var(--slider-percent)
|
|
1379
|
+
);
|
|
1328
1380
|
}
|
|
1329
1381
|
|
|
1330
1382
|
&::-webkit-slider-thumb {
|
|
@@ -1335,7 +1387,7 @@ fig-slider {
|
|
|
1335
1387
|
&::-webkit-slider-runnable-track {
|
|
1336
1388
|
height: var(--slider-height);
|
|
1337
1389
|
background-color: transparent;
|
|
1338
|
-
border-radius: calc(var(--slider-height)/2);
|
|
1390
|
+
border-radius: calc(var(--slider-height) / 2);
|
|
1339
1391
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
1340
1392
|
background: var(--figma-color-bg-secondary);
|
|
1341
1393
|
}
|
|
@@ -1345,16 +1397,17 @@ fig-slider {
|
|
|
1345
1397
|
}
|
|
1346
1398
|
|
|
1347
1399
|
&.opacity::-webkit-slider-runnable-track {
|
|
1348
|
-
background: linear-gradient(to right, transparent, var(--color)),
|
|
1400
|
+
background: linear-gradient(to right, transparent, var(--color)),
|
|
1401
|
+
var(--checkerboard);
|
|
1349
1402
|
}
|
|
1350
1403
|
}
|
|
1351
1404
|
|
|
1352
1405
|
/* Firefox */
|
|
1353
|
-
input[type=range] {
|
|
1406
|
+
input[type="range"] {
|
|
1354
1407
|
height: var(--slider-height);
|
|
1355
1408
|
appearance: none;
|
|
1356
1409
|
-webkit-appearance: none;
|
|
1357
|
-
border-radius: calc(var(--slider-height)/2);
|
|
1410
|
+
border-radius: calc(var(--slider-height) / 2);
|
|
1358
1411
|
display: block;
|
|
1359
1412
|
width: 100%;
|
|
1360
1413
|
cursor: grab;
|
|
@@ -1385,7 +1438,12 @@ fig-slider {
|
|
|
1385
1438
|
cursor: not-allowed;
|
|
1386
1439
|
|
|
1387
1440
|
&::-moz-range-track {
|
|
1388
|
-
background: linear-gradient(
|
|
1441
|
+
background: linear-gradient(
|
|
1442
|
+
to right,
|
|
1443
|
+
var(--figma-color-bg-secondary) 0%,
|
|
1444
|
+
var(--figma-color-bg-secondary) var(--slider-percent),
|
|
1445
|
+
var(--figma-color-bg) var(--slider-percent)
|
|
1446
|
+
);
|
|
1389
1447
|
}
|
|
1390
1448
|
|
|
1391
1449
|
&::-moz-range-thumb {
|
|
@@ -1396,7 +1454,7 @@ fig-slider {
|
|
|
1396
1454
|
&::-moz-range-track {
|
|
1397
1455
|
height: var(--slider-height);
|
|
1398
1456
|
background-color: transparent;
|
|
1399
|
-
border-radius: calc(var(--slider-height)/2);
|
|
1457
|
+
border-radius: calc(var(--slider-height) / 2);
|
|
1400
1458
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
1401
1459
|
background: var(--figma-color-bg-secondary);
|
|
1402
1460
|
}
|
|
@@ -1406,7 +1464,8 @@ fig-slider {
|
|
|
1406
1464
|
}
|
|
1407
1465
|
|
|
1408
1466
|
&.opacity::-moz-range-track {
|
|
1409
|
-
background: linear-gradient(to right, transparent, var(--color)),
|
|
1467
|
+
background: linear-gradient(to right, transparent, var(--color)),
|
|
1468
|
+
var(--checkerboard);
|
|
1410
1469
|
}
|
|
1411
1470
|
}
|
|
1412
1471
|
|
|
@@ -1419,7 +1478,7 @@ fig-slider {
|
|
|
1419
1478
|
margin: 0;
|
|
1420
1479
|
border: 0;
|
|
1421
1480
|
appearance: none;
|
|
1422
|
-
padding: 0 calc((var(--slider-height)/2) - var(--slider-tick-size)/2);
|
|
1481
|
+
padding: 0 calc((var(--slider-height) / 2) - var(--slider-tick-size) / 2);
|
|
1423
1482
|
height: var(--slider-height);
|
|
1424
1483
|
pointer-events: none;
|
|
1425
1484
|
justify-content: space-between;
|
|
@@ -1474,7 +1533,7 @@ dialog,
|
|
|
1474
1533
|
font: inherit;
|
|
1475
1534
|
}
|
|
1476
1535
|
|
|
1477
|
-
|
|
1536
|
+
& > :first-child {
|
|
1478
1537
|
padding-left: var(--spacer-2);
|
|
1479
1538
|
}
|
|
1480
1539
|
}
|
|
@@ -1492,16 +1551,13 @@ dialog,
|
|
|
1492
1551
|
left: anchor(center);
|
|
1493
1552
|
/*transform: translate(-50%,-100%);*/
|
|
1494
1553
|
|
|
1495
|
-
|
|
1496
1554
|
white-space: nowrap;
|
|
1497
1555
|
overflow: hidden;
|
|
1498
1556
|
text-overflow: ellipsis;
|
|
1499
1557
|
|
|
1500
|
-
|
|
1501
1558
|
border-radius: var(--radius-medium, 0.3125rem);
|
|
1502
1559
|
box-shadow: 0px 0px 0.5px 0px rgba(0, 0, 0, 0.15),
|
|
1503
|
-
0px 5px 12px 0px rgba(0, 0, 0, 0.13),
|
|
1504
|
-
0px 1px 3px 0px rgba(0, 0, 0, 0.10);
|
|
1560
|
+
0px 5px 12px 0px rgba(0, 0, 0, 0.13), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
|
|
1505
1561
|
|
|
1506
1562
|
@supports (-webkit-line-clamp: 2) {
|
|
1507
1563
|
white-space: initial;
|
|
@@ -1550,9 +1606,11 @@ dialog {
|
|
|
1550
1606
|
font-weight: normal;
|
|
1551
1607
|
|
|
1552
1608
|
&:after {
|
|
1553
|
-
content:
|
|
1609
|
+
content: "";
|
|
1554
1610
|
background-color: var(--bg-tooltip);
|
|
1555
|
-
clip-path: path(
|
|
1611
|
+
clip-path: path(
|
|
1612
|
+
"M16 0H0L0 1H0.757359C1.55301 1 2.31607 1.31607 2.87868 1.87868L6.29587 5.29587C7.23704 6.23704 8.76296 6.23704 9.70413 5.29587L13.1213 1.87868C13.6839 1.31607 14.447 1 15.2426 1H16V0Z"
|
|
1613
|
+
);
|
|
1556
1614
|
width: 1rem;
|
|
1557
1615
|
height: 6px;
|
|
1558
1616
|
position: absolute;
|
|
@@ -1562,7 +1620,7 @@ dialog {
|
|
|
1562
1620
|
transform: translate(-50%);
|
|
1563
1621
|
}
|
|
1564
1622
|
|
|
1565
|
-
&[position=bottom] {
|
|
1623
|
+
&[position="bottom"] {
|
|
1566
1624
|
&:after {
|
|
1567
1625
|
top: 1px;
|
|
1568
1626
|
transform: translate(-50%, -100%) scaleY(-1);
|
|
@@ -1574,12 +1632,16 @@ dialog {
|
|
|
1574
1632
|
.fig-popover {
|
|
1575
1633
|
overflow: visible;
|
|
1576
1634
|
box-shadow: inset 0 0.5px 0 0 rgba(255, 255, 255, 0.1);
|
|
1577
|
-
filter: drop-shadow(0px 1px 1.5px rgba(0, 0, 0, 0.
|
|
1635
|
+
filter: drop-shadow(0px 1px 1.5px rgba(0, 0, 0, 0.1))
|
|
1636
|
+
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
1637
|
+
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
1578
1638
|
|
|
1579
1639
|
&:after {
|
|
1580
|
-
content:
|
|
1640
|
+
content: "";
|
|
1581
1641
|
background-color: inherit;
|
|
1582
|
-
clip-path: path(
|
|
1642
|
+
clip-path: path(
|
|
1643
|
+
"M16 0H0L0 1H0.757359C1.55301 1 2.31607 1.31607 2.87868 1.87868L6.29587 5.29587C7.23704 6.23704 8.76296 6.23704 9.70413 5.29587L13.1213 1.87868C13.6839 1.31607 14.447 1 15.2426 1H16V0Z"
|
|
1644
|
+
);
|
|
1583
1645
|
width: 1rem;
|
|
1584
1646
|
height: 6px;
|
|
1585
1647
|
position: absolute;
|
|
@@ -1589,7 +1651,7 @@ dialog {
|
|
|
1589
1651
|
transform: translate(-50%);
|
|
1590
1652
|
}
|
|
1591
1653
|
|
|
1592
|
-
&[position=bottom] {
|
|
1654
|
+
&[position="bottom"] {
|
|
1593
1655
|
&:after {
|
|
1594
1656
|
top: 1px;
|
|
1595
1657
|
transform: translate(-50%, -100%) scaleY(-1);
|
|
@@ -1606,7 +1668,9 @@ fig-icon.close {
|
|
|
1606
1668
|
width: 1rem;
|
|
1607
1669
|
height: 1rem;
|
|
1608
1670
|
background-color: var(--figma-color-text);
|
|
1609
|
-
clip-path: path(
|
|
1671
|
+
clip-path: path(
|
|
1672
|
+
"M11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645Z"
|
|
1673
|
+
);
|
|
1610
1674
|
}
|
|
1611
1675
|
|
|
1612
1676
|
/* Web Components */
|
|
@@ -1680,8 +1744,8 @@ fig-header {
|
|
|
1680
1744
|
font-weight: var(--body-medium-strong-fontWeight);
|
|
1681
1745
|
}
|
|
1682
1746
|
|
|
1683
|
-
|
|
1684
|
-
|
|
1747
|
+
& > *:not(fig-button) {
|
|
1748
|
+
margin-right: auto;
|
|
1685
1749
|
}
|
|
1686
1750
|
|
|
1687
1751
|
&[borderless] {
|
|
@@ -1690,7 +1754,7 @@ fig-header {
|
|
|
1690
1754
|
}
|
|
1691
1755
|
|
|
1692
1756
|
fig-content {
|
|
1693
|
-
padding: var(--spacer-2);
|
|
1757
|
+
padding: var(--spacer-2) 0;
|
|
1694
1758
|
display: block;
|
|
1695
1759
|
}
|
|
1696
1760
|
|
|
@@ -1728,17 +1792,17 @@ fig-input-text {
|
|
|
1728
1792
|
}
|
|
1729
1793
|
|
|
1730
1794
|
& [slot] {
|
|
1731
|
-
padding: .25rem 0.5rem;
|
|
1795
|
+
padding: 0.25rem 0.5rem;
|
|
1732
1796
|
flex: 0;
|
|
1733
1797
|
user-select: none;
|
|
1734
1798
|
color: var(--figma-color-text-secondary);
|
|
1735
1799
|
}
|
|
1736
1800
|
|
|
1737
|
-
& [slot=prepend] {
|
|
1801
|
+
& [slot="prepend"] {
|
|
1738
1802
|
padding-right: 0;
|
|
1739
1803
|
}
|
|
1740
1804
|
|
|
1741
|
-
& [slot=append] {
|
|
1805
|
+
& [slot="append"] {
|
|
1742
1806
|
padding-left: 0;
|
|
1743
1807
|
}
|
|
1744
1808
|
|
|
@@ -1759,20 +1823,19 @@ fig-input-text {
|
|
|
1759
1823
|
}
|
|
1760
1824
|
|
|
1761
1825
|
fig-input-color {
|
|
1762
|
-
|
|
1763
1826
|
& fig-input-text:not([type]),
|
|
1764
|
-
& fig-input-text[type=text] {
|
|
1827
|
+
& fig-input-text[type="text"] {
|
|
1765
1828
|
min-width: 6em;
|
|
1766
1829
|
display: inline-flex;
|
|
1767
1830
|
flex-direction: column;
|
|
1768
1831
|
align-items: stretch;
|
|
1769
1832
|
|
|
1770
|
-
& input[type=text] {
|
|
1833
|
+
& input[type="text"] {
|
|
1771
1834
|
width: 100%;
|
|
1772
1835
|
}
|
|
1773
1836
|
}
|
|
1774
1837
|
|
|
1775
|
-
& fig-input-text[type=number] {
|
|
1838
|
+
& fig-input-text[type="number"] {
|
|
1776
1839
|
width: 3.5rem;
|
|
1777
1840
|
display: inline-flex;
|
|
1778
1841
|
}
|
|
@@ -1785,7 +1848,7 @@ fig-slider {
|
|
|
1785
1848
|
flex-grow: 1;
|
|
1786
1849
|
}
|
|
1787
1850
|
|
|
1788
|
-
& fig-input-text[type=number] {
|
|
1851
|
+
& fig-input-text[type="number"] {
|
|
1789
1852
|
width: 3.5rem;
|
|
1790
1853
|
}
|
|
1791
1854
|
}
|
|
@@ -1793,26 +1856,31 @@ fig-slider {
|
|
|
1793
1856
|
fig-field,
|
|
1794
1857
|
.fig-field {
|
|
1795
1858
|
display: flex;
|
|
1796
|
-
|
|
1859
|
+
padding: var(--spacer-1) var(--spacer-3);
|
|
1860
|
+
margin: 0;
|
|
1797
1861
|
flex-direction: column;
|
|
1798
1862
|
gap: 0;
|
|
1799
1863
|
|
|
1800
|
-
|
|
1864
|
+
& > * {
|
|
1801
1865
|
flex: 1;
|
|
1802
1866
|
}
|
|
1803
1867
|
|
|
1804
|
-
|
|
1868
|
+
& > label {
|
|
1805
1869
|
flex: 0;
|
|
1806
1870
|
padding: var(--spacer-1) 0;
|
|
1807
1871
|
display: flex;
|
|
1808
|
-
min-height: calc(1rem + var(--spacer-1)*2);
|
|
1872
|
+
min-height: calc(1rem + var(--spacer-1) * 2);
|
|
1809
1873
|
align-items: center;
|
|
1810
1874
|
}
|
|
1811
1875
|
|
|
1812
|
-
&[direction=horizontal] {
|
|
1876
|
+
&[direction="horizontal"] {
|
|
1813
1877
|
gap: var(--spacer-2);
|
|
1814
1878
|
align-items: flex-start;
|
|
1815
1879
|
flex-direction: row;
|
|
1880
|
+
|
|
1881
|
+
& > label {
|
|
1882
|
+
min-width: 4rem;
|
|
1883
|
+
}
|
|
1816
1884
|
}
|
|
1817
1885
|
}
|
|
1818
1886
|
|
|
@@ -1821,13 +1889,14 @@ fig-spinner {
|
|
|
1821
1889
|
height: 1rem;
|
|
1822
1890
|
display: inline-flex;
|
|
1823
1891
|
background-color: var(--figma-color-icon-oncomponent-tertiary);
|
|
1824
|
-
clip-path: path(
|
|
1825
|
-
|
|
1892
|
+
clip-path: path(
|
|
1893
|
+
"M15.9995 7.86066C16.0271 9.44267 15.585 10.9973 14.729 12.3281C13.8731 13.6588 12.6417 14.7058 11.1907 15.3368C9.73968 15.9677 8.13415 16.1542 6.57716 15.8726C5.02016 15.591 3.58161 14.8541 2.44344 13.755C1.30526 12.6559 0.518574 11.2439 0.182856 9.69769C-0.152862 8.15147 -0.0225313 6.54042 0.557366 5.06826C1.13726 3.59611 2.14068 2.32898 3.44073 1.4271C4.74079 0.525221 6.27908 0.0291073 7.86109 0.00149397L7.87922 1.04037C6.50268 1.06439 5.16418 1.49607 4.03298 2.28081C2.90177 3.06556 2.02868 4.16812 1.5241 5.44907C1.01952 6.73002 0.906114 8.13183 1.19823 9.47724C1.49034 10.8226 2.17486 12.0512 3.16521 13.0076C4.15556 13.9639 5.40727 14.6052 6.76204 14.8502C8.11682 15.0951 9.51382 14.9329 10.7764 14.3839C12.0389 13.8349 13.1104 12.9239 13.8552 11.766C14.5999 10.6081 14.9846 9.25533 14.9606 7.87879L15.9995 7.86066Z"
|
|
1894
|
+
);
|
|
1895
|
+
animation: fig-spinner-spin 1s linear infinite;
|
|
1826
1896
|
}
|
|
1827
1897
|
|
|
1828
1898
|
/* Utilities */
|
|
1829
1899
|
|
|
1830
|
-
|
|
1831
1900
|
@keyframes fig-spinner-spin {
|
|
1832
1901
|
from {
|
|
1833
1902
|
transform: rotate(0deg);
|
|
@@ -1836,4 +1905,4 @@ fig-spinner {
|
|
|
1836
1905
|
to {
|
|
1837
1906
|
transform: rotate(360deg);
|
|
1838
1907
|
}
|
|
1839
|
-
}
|
|
1908
|
+
}
|
package/package.json
CHANGED