@seed-design/css 0.1.4 → 0.1.5

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