@seed-design/css 0.1.4 → 0.1.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/all.css CHANGED
@@ -61,6 +61,7 @@
61
61
  margin-left: var(--seed-suffix-icon-margin-left);
62
62
  margin-right: var(--seed-suffix-icon-margin-right);
63
63
  margin-top: var(--seed-suffix-icon-margin-top);
64
+ margin-bottom: var(--seed-suffix-icon-margin-bottom);
64
65
  color: var(--seed-suffix-icon-color, currentColor);
65
66
  }
66
67
 
@@ -451,6 +452,7 @@
451
452
  --seed-gradient-glow-magic-pressed: #fbf0f2 0%, #ffe8db 80%, #f5f2ef 100%;
452
453
  --seed-gradient-shimmer-neutral: #fff0 0%, #fff6 46%, #fff6 54%, #fff0 100%;
453
454
  --seed-gradient-highlight-magic: #f60 20%, #d25aca 100%;
455
+ --seed-gradient-highlight-magic-pressed: #e14f00 20%, #ae58bf 100%;
454
456
  }
455
457
 
456
458
  :root[data-seed-color-mode="system"][data-seed-user-color-scheme="dark"], :root[data-seed-color-mode="dark-only"], :root [data-seed-color-mode="dark-only"] {
@@ -625,6 +627,7 @@
625
627
  --seed-gradient-glow-magic-pressed: #3e333e 0%, #51453e 80%, #434242 100%;
626
628
  --seed-gradient-shimmer-neutral: #fff0 0%, #ffffff1a 46%, #ffffff1a 54%, #fff0 100%;
627
629
  --seed-gradient-highlight-magic: #f60 20%, #d25aca 100%;
630
+ --seed-gradient-highlight-magic-pressed: #ff9e65 20%, #e89bee 100%;
628
631
  }
629
632
 
630
633
  .seed-avatar__root {
@@ -1236,7 +1239,7 @@
1236
1239
  }
1237
1240
 
1238
1241
  .seed-action-button--size_medium-layout_withText {
1239
- gap: var(--seed-dimension-x1);
1242
+ gap: var(--seed-dimension-x1_5);
1240
1243
  --seed-box-padding-left: var(--seed-dimension-x4);
1241
1244
  --seed-box-padding-right: var(--seed-dimension-x4);
1242
1245
  --seed-box-padding-top: var(--seed-dimension-x2_5);
@@ -2883,6 +2886,7 @@
2883
2886
  flex-shrink: 0;
2884
2887
  justify-content: center;
2885
2888
  align-items: center;
2889
+ font-family: inherit;
2886
2890
  line-height: 1;
2887
2891
  transition-property: background-color, color, border-color, box-shadow;
2888
2892
  display: inline-flex;
@@ -3213,14 +3217,17 @@
3213
3217
 
3214
3218
  .seed-callout__content {
3215
3219
  margin-inline-end: auto;
3216
- display: block;
3217
3220
  }
3218
3221
 
3219
3222
  .seed-callout__title {
3220
3223
  font-size: var(--seed-font-size-t4);
3221
3224
  line-height: var(--seed-line-height-t4);
3222
3225
  font-weight: var(--seed-font-weight-bold);
3223
- margin-inline-end: 1ch;
3226
+ }
3227
+
3228
+ .seed-callout__title:after {
3229
+ content: " ";
3230
+ white-space: pre;
3224
3231
  }
3225
3232
 
3226
3233
  .seed-callout__description {
@@ -3229,8 +3236,9 @@
3229
3236
  font-weight: var(--seed-font-weight-regular);
3230
3237
  }
3231
3238
 
3232
- .seed-callout__description:not(:last-child) {
3233
- margin-inline-end: 1ch;
3239
+ .seed-callout__description:not(:last-child):after {
3240
+ content: " ";
3241
+ white-space: pre;
3234
3242
  }
3235
3243
 
3236
3244
  .seed-callout__link {
@@ -3417,6 +3425,181 @@
3417
3425
  color: var(--seed-color-manner-temp-l6-text);
3418
3426
  }
3419
3427
 
3428
+ .seed-menu-sheet__positioner {
3429
+ overscroll-behavior-y: none;
3430
+ --sheet-z-index: 2;
3431
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
3432
+ justify-content: center;
3433
+ align-items: flex-end;
3434
+ display: flex;
3435
+ position: fixed;
3436
+ inset: 0;
3437
+ }
3438
+
3439
+ .seed-menu-sheet__backdrop {
3440
+ background: var(--seed-color-bg-overlay);
3441
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
3442
+ position: fixed;
3443
+ inset: 0;
3444
+ }
3445
+
3446
+ .seed-menu-sheet__backdrop:not(:is([data-state="open"], [data-open])) {
3447
+ animation: seed-exit;
3448
+ animation-timing-function: var(--seed-timing-function-exit);
3449
+ animation-duration: var(--seed-duration-d2);
3450
+ --seed-exit-translate-x: 0;
3451
+ --seed-exit-translate-y: 0;
3452
+ --seed-exit-opacity: 0;
3453
+ --seed-exit-scale: 1;
3454
+ animation-fill-mode: forwards;
3455
+ }
3456
+
3457
+ .seed-menu-sheet__backdrop:is([data-state="open"], [data-open]) {
3458
+ animation: seed-enter;
3459
+ animation-timing-function: var(--seed-timing-function-enter);
3460
+ animation-duration: var(--seed-duration-d2);
3461
+ --seed-enter-translate-x: 0;
3462
+ --seed-enter-translate-y: 0;
3463
+ --seed-enter-opacity: 0;
3464
+ --seed-enter-scale: 1;
3465
+ }
3466
+
3467
+ .seed-menu-sheet__content {
3468
+ box-sizing: border-box;
3469
+ word-break: break-all;
3470
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
3471
+ background: var(--seed-color-bg-layer-floating);
3472
+ padding-inline: var(--seed-dimension-spacing-x-global-gutter);
3473
+ padding-block: var(--seed-dimension-x4);
3474
+ border-top-left-radius: var(--seed-radius-r5);
3475
+ border-top-right-radius: var(--seed-radius-r5);
3476
+ flex-direction: column;
3477
+ flex: 1;
3478
+ display: flex;
3479
+ position: relative;
3480
+ }
3481
+
3482
+ .seed-menu-sheet__content:not(:is([data-state="open"], [data-open])) {
3483
+ animation: seed-exit;
3484
+ animation-timing-function: var(--seed-timing-function-exit);
3485
+ animation-duration: var(--seed-duration-d4);
3486
+ --seed-exit-translate-x: 0;
3487
+ --seed-exit-translate-y: 100%;
3488
+ --seed-exit-opacity: 1;
3489
+ --seed-exit-scale: 1;
3490
+ animation-fill-mode: forwards;
3491
+ }
3492
+
3493
+ .seed-menu-sheet__content:is([data-state="open"], [data-open]) {
3494
+ animation: seed-enter;
3495
+ animation-timing-function: var(--seed-timing-function-enter-expressive);
3496
+ animation-duration: var(--seed-duration-d6);
3497
+ --seed-enter-translate-x: 0;
3498
+ --seed-enter-translate-y: 100%;
3499
+ --seed-enter-opacity: 1;
3500
+ --seed-enter-scale: 1;
3501
+ }
3502
+
3503
+ .seed-menu-sheet__header {
3504
+ align-items: center;
3505
+ gap: var(--seed-dimension-x1);
3506
+ padding-bottom: var(--seed-dimension-x4);
3507
+ flex-direction: column;
3508
+ display: flex;
3509
+ }
3510
+
3511
+ .seed-menu-sheet__title {
3512
+ color: var(--seed-color-fg-neutral);
3513
+ font-size: var(--seed-font-size-t6);
3514
+ line-height: var(--seed-line-height-t6);
3515
+ font-weight: var(--seed-font-weight-bold);
3516
+ }
3517
+
3518
+ .seed-menu-sheet__list {
3519
+ align-items: stretch;
3520
+ gap: var(--seed-dimension-x2_5);
3521
+ flex-direction: column;
3522
+ display: flex;
3523
+ }
3524
+
3525
+ .seed-menu-sheet__group {
3526
+ border-radius: var(--seed-radius-r4);
3527
+ flex-direction: column;
3528
+ align-items: stretch;
3529
+ display: flex;
3530
+ overflow: hidden;
3531
+ }
3532
+
3533
+ .seed-menu-sheet__footer {
3534
+ padding-top: var(--seed-dimension-x2_5);
3535
+ flex-direction: column;
3536
+ align-items: stretch;
3537
+ display: flex;
3538
+ }
3539
+
3540
+ .seed-menu-sheet__closeButton {
3541
+ background-color: var(--seed-color-bg-neutral-weak);
3542
+ min-height: 52px;
3543
+ padding-inline: var(--seed-dimension-x5);
3544
+ padding-block: var(--seed-dimension-x3_5);
3545
+ border-radius: var(--seed-radius-r3);
3546
+ color: var(--seed-color-fg-neutral);
3547
+ font-size: var(--seed-font-size-t5);
3548
+ line-height: var(--seed-line-height-t5);
3549
+ font-weight: var(--seed-font-weight-medium);
3550
+ justify-content: center;
3551
+ align-items: center;
3552
+ display: flex;
3553
+ }
3554
+
3555
+ .seed-menu-sheet__closeButton:is(:active, [data-active]) {
3556
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
3557
+ }
3558
+
3559
+ .seed-menu-sheet-item {
3560
+ background-color: var(--seed-color-bg-neutral-weak);
3561
+ min-height: 52px;
3562
+ padding-inline: var(--seed-dimension-x4);
3563
+ padding-block: var(--seed-dimension-x3_5);
3564
+ align-items: center;
3565
+ gap: var(--seed-dimension-x3_5);
3566
+ box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral);
3567
+ font-size: var(--seed-font-size-t5);
3568
+ line-height: var(--seed-line-height-t5);
3569
+ font-weight: var(--seed-font-weight-regular);
3570
+ display: flex;
3571
+ }
3572
+
3573
+ .seed-menu-sheet-item:is(:active, [data-active]) {
3574
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
3575
+ }
3576
+
3577
+ .seed-menu-sheet-item:last-child {
3578
+ box-shadow: none;
3579
+ }
3580
+
3581
+ .seed-menu-sheet-item {
3582
+ --seed-prefix-icon-size: 22px;
3583
+ }
3584
+
3585
+ .seed-menu-sheet-item--tone_neutral {
3586
+ color: var(--seed-color-fg-neutral);
3587
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral);
3588
+ }
3589
+
3590
+ .seed-menu-sheet-item--tone_critical {
3591
+ color: var(--seed-color-fg-critical);
3592
+ --seed-prefix-icon-color: var(--seed-color-fg-critical);
3593
+ }
3594
+
3595
+ .seed-menu-sheet-item--labelAlign_left {
3596
+ justify-content: flex-start;
3597
+ }
3598
+
3599
+ .seed-menu-sheet-item--labelAlign_center {
3600
+ justify-content: center;
3601
+ }
3602
+
3420
3603
  .seed-segmented-control__root {
3421
3604
  box-sizing: border-box;
3422
3605
  min-width: fit-content;
@@ -3792,6 +3975,7 @@
3792
3975
  box-sizing: border-box;
3793
3976
  -webkit-font-smoothing: antialiased;
3794
3977
  -moz-osx-font-smoothing: grayscale;
3978
+ text-align: start;
3795
3979
  width: 100%;
3796
3980
  min-height: var(--seed-dimension-x10);
3797
3981
  padding-inline: var(--seed-dimension-x4);
@@ -3801,7 +3985,8 @@
3801
3985
  --seed-prefix-icon-margin-top: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * .5 - var(--seed-dimension-x2_5));
3802
3986
  --seed-suffix-icon-size: var(--seed-dimension-x4);
3803
3987
  --seed-suffix-icon-margin-left: var(--seed-dimension-x4);
3804
- --seed-suffix-icon-margin-top: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * .5 - var(--seed-dimension-x2_5));
3988
+ --seed-suffix-icon-margin-top: auto;
3989
+ --seed-suffix-icon-margin-bottom: auto;
3805
3990
  border: none;
3806
3991
  align-items: flex-start;
3807
3992
  font-family: inherit;
@@ -3813,10 +3998,7 @@
3813
3998
  }
3814
3999
 
3815
4000
  .seed-inline-banner__content {
3816
- box-sizing: border-box;
3817
- text-align: start;
3818
4001
  margin-inline-end: auto;
3819
- display: inline-flex;
3820
4002
  }
3821
4003
 
3822
4004
  .seed-inline-banner__title {
@@ -3824,7 +4006,11 @@
3824
4006
  line-height: var(--seed-line-height-t4);
3825
4007
  font-weight: var(--seed-font-weight-bold);
3826
4008
  flex-shrink: 0;
3827
- margin-inline-end: 1ch;
4009
+ }
4010
+
4011
+ .seed-inline-banner__title:after {
4012
+ content: " ";
4013
+ white-space: pre;
3828
4014
  }
3829
4015
 
3830
4016
  .seed-inline-banner__description {
@@ -3835,6 +4021,7 @@
3835
4021
 
3836
4022
  .seed-inline-banner__link {
3837
4023
  cursor: pointer;
4024
+ margin-block: auto;
3838
4025
  margin-left: var(--seed-dimension-x4);
3839
4026
  font-family: inherit;
3840
4027
  font-size: var(--seed-font-size-t2);
@@ -3854,9 +4041,7 @@
3854
4041
  width: var(--seed-dimension-x10);
3855
4042
  height: var(--seed-dimension-x10);
3856
4043
  margin: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -.5);
3857
- margin-top: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -.5 + (var(--seed-dimension-x10) - var(--seed-dimension-x4)) * .5 - var(--seed-dimension-x2_5));
3858
4044
  margin-left: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -.5 + var(--seed-dimension-x4));
3859
- --seed-suffix-icon-margin-top: initial;
3860
4045
  --seed-suffix-icon-margin-left: initial;
3861
4046
  cursor: pointer;
3862
4047
  background-color: #0000;
@@ -3864,6 +4049,7 @@
3864
4049
  flex-grow: 0;
3865
4050
  flex-shrink: 0;
3866
4051
  justify-content: center;
4052
+ align-self: center;
3867
4053
  align-items: center;
3868
4054
  padding: 0;
3869
4055
  display: flex;