@seed-design/css 1.0.7 → 1.0.10
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 +35 -9
- package/all.min.css +1 -1
- package/base.css +6 -0
- package/base.min.css +1 -1
- package/package.json +1 -1
- package/recipes/app-bar-main.css +2 -1
- package/recipes/app-bar.css +5 -3
- package/recipes/app-screen.css +3 -1
- package/recipes/bottom-sheet.css +4 -0
- package/recipes/dialog.css +6 -0
- package/recipes/menu-sheet.css +5 -0
- package/recipes/snackbar-region.css +3 -3
- package/vars/component/bottom-sheet.d.ts +1 -0
- package/vars/component/bottom-sheet.mjs +1 -0
- package/vars/component/menu-sheet.d.ts +1 -0
- package/vars/component/menu-sheet.mjs +1 -0
- package/vars/component/top-navigation.d.ts +1 -1
- package/vars/component/top-navigation.mjs +1 -1
package/all.css
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--seed-safe-area-top: 0px;
|
|
3
3
|
--seed-safe-area-bottom: 0px;
|
|
4
|
+
--seed-safe-area-left: 0px;
|
|
5
|
+
--seed-safe-area-right: 0px;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
@supports (left: constant(safe-area-inset-left)) {
|
|
7
9
|
:root {
|
|
8
10
|
--seed-safe-area-top: constant(safe-area-inset-top);
|
|
9
11
|
--seed-safe-area-bottom: constant(safe-area-inset-bottom);
|
|
12
|
+
--seed-safe-area-left: constant(safe-area-inset-left);
|
|
13
|
+
--seed-safe-area-right: constant(safe-area-inset-right);
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
|
|
@@ -14,6 +18,8 @@
|
|
|
14
18
|
:root {
|
|
15
19
|
--seed-safe-area-top: env(safe-area-inset-top);
|
|
16
20
|
--seed-safe-area-bottom: env(safe-area-inset-bottom);
|
|
21
|
+
--seed-safe-area-left: env(safe-area-inset-left);
|
|
22
|
+
--seed-safe-area-right: env(safe-area-inset-right);
|
|
17
23
|
}
|
|
18
24
|
}
|
|
19
25
|
|
|
@@ -1347,8 +1353,9 @@
|
|
|
1347
1353
|
}
|
|
1348
1354
|
|
|
1349
1355
|
.seed-app-bar__root--theme_cupertino {
|
|
1350
|
-
height: calc(
|
|
1351
|
-
padding-
|
|
1356
|
+
height: calc(56px + var(--seed-safe-area-top));
|
|
1357
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
1358
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
1352
1359
|
padding-top: var(--seed-safe-area-top);
|
|
1353
1360
|
}
|
|
1354
1361
|
|
|
@@ -1372,7 +1379,8 @@
|
|
|
1372
1379
|
|
|
1373
1380
|
.seed-app-bar__root--theme_android {
|
|
1374
1381
|
height: calc(56px + var(--seed-safe-area-top));
|
|
1375
|
-
padding-
|
|
1382
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
1383
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
1376
1384
|
padding-top: var(--seed-safe-area-top);
|
|
1377
1385
|
}
|
|
1378
1386
|
|
|
@@ -1603,7 +1611,8 @@
|
|
|
1603
1611
|
.seed-app-bar-main__root--theme_cupertino {
|
|
1604
1612
|
text-align: center;
|
|
1605
1613
|
top: var(--seed-safe-area-top);
|
|
1606
|
-
padding-
|
|
1614
|
+
padding-left: calc(var(--seed-safe-area-left) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-left) - var(--seed-dimension-x4)))), 0px));
|
|
1615
|
+
padding-right: calc(var(--seed-safe-area-right) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-right) - var(--seed-dimension-x4)))), 0px));
|
|
1607
1616
|
pointer-events: none;
|
|
1608
1617
|
justify-content: center;
|
|
1609
1618
|
align-items: center;
|
|
@@ -1756,9 +1765,11 @@
|
|
|
1756
1765
|
.seed-app-screen__layer {
|
|
1757
1766
|
z-index: var(--z-index-layer);
|
|
1758
1767
|
box-sizing: border-box;
|
|
1759
|
-
-webkit-overflow-scrolling: touch;
|
|
1760
1768
|
width: 100%;
|
|
1761
1769
|
height: 100%;
|
|
1770
|
+
padding-left: var(--seed-safe-area-left);
|
|
1771
|
+
padding-right: var(--seed-safe-area-right);
|
|
1772
|
+
-webkit-overflow-scrolling: touch;
|
|
1762
1773
|
position: absolute;
|
|
1763
1774
|
left: 0;
|
|
1764
1775
|
right: 0;
|
|
@@ -1783,7 +1794,7 @@
|
|
|
1783
1794
|
}
|
|
1784
1795
|
|
|
1785
1796
|
.seed-app-screen__root--theme_cupertino {
|
|
1786
|
-
--app-bar-height:
|
|
1797
|
+
--app-bar-height: 56px;
|
|
1787
1798
|
}
|
|
1788
1799
|
|
|
1789
1800
|
.seed-app-screen__dim--theme_cupertino {
|
|
@@ -2469,6 +2480,8 @@
|
|
|
2469
2480
|
|
|
2470
2481
|
.seed-bottom-sheet__positioner {
|
|
2471
2482
|
overscroll-behavior-y: none;
|
|
2483
|
+
padding-left: var(--seed-safe-area-left);
|
|
2484
|
+
padding-right: var(--seed-safe-area-right);
|
|
2472
2485
|
--sheet-z-index: 2;
|
|
2473
2486
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
2474
2487
|
justify-content: center;
|
|
@@ -2511,6 +2524,7 @@
|
|
|
2511
2524
|
word-break: break-all;
|
|
2512
2525
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
2513
2526
|
background: var(--seed-color-bg-layer-floating);
|
|
2527
|
+
max-height: min(.9 * 100%, 100% - var(--seed-safe-area-top));
|
|
2514
2528
|
border-top-left-radius: var(--seed-radius-r6);
|
|
2515
2529
|
border-top-right-radius: var(--seed-radius-r6);
|
|
2516
2530
|
flex-direction: column;
|
|
@@ -2580,6 +2594,7 @@
|
|
|
2580
2594
|
align-items: var(--seed-box-align-items);
|
|
2581
2595
|
flex-direction: column;
|
|
2582
2596
|
display: flex;
|
|
2597
|
+
overflow-y: auto;
|
|
2583
2598
|
}
|
|
2584
2599
|
|
|
2585
2600
|
.seed-bottom-sheet__footer {
|
|
@@ -3591,6 +3606,10 @@
|
|
|
3591
3606
|
|
|
3592
3607
|
.seed-dialog__positioner {
|
|
3593
3608
|
overscroll-behavior-y: none;
|
|
3609
|
+
padding-top: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
|
|
3610
|
+
padding-right: var(--seed-safe-area-right);
|
|
3611
|
+
padding-bottom: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
|
|
3612
|
+
padding-left: var(--seed-safe-area-left);
|
|
3594
3613
|
--dialog-z-index: 2;
|
|
3595
3614
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
3596
3615
|
justify-content: center;
|
|
@@ -3634,12 +3653,14 @@
|
|
|
3634
3653
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
3635
3654
|
background: var(--seed-color-bg-layer-floating);
|
|
3636
3655
|
max-width: 272px;
|
|
3656
|
+
max-height: 100%;
|
|
3637
3657
|
margin: auto var(--seed-dimension-x8);
|
|
3638
3658
|
border-radius: var(--seed-radius-r5);
|
|
3639
3659
|
flex-direction: column;
|
|
3640
3660
|
flex: 1;
|
|
3641
3661
|
display: flex;
|
|
3642
3662
|
position: relative;
|
|
3663
|
+
overflow-y: auto;
|
|
3643
3664
|
}
|
|
3644
3665
|
|
|
3645
3666
|
.seed-dialog__content:is([data-state="open"], [data-open]) {
|
|
@@ -4640,6 +4661,8 @@
|
|
|
4640
4661
|
|
|
4641
4662
|
.seed-menu-sheet__positioner {
|
|
4642
4663
|
overscroll-behavior-y: none;
|
|
4664
|
+
padding-left: var(--seed-safe-area-left);
|
|
4665
|
+
padding-right: var(--seed-safe-area-right);
|
|
4643
4666
|
--sheet-z-index: 2;
|
|
4644
4667
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
4645
4668
|
justify-content: center;
|
|
@@ -4682,6 +4705,7 @@
|
|
|
4682
4705
|
word-break: break-all;
|
|
4683
4706
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
4684
4707
|
background: var(--seed-color-bg-layer-floating);
|
|
4708
|
+
max-height: min(.9 * 100%, 100% - var(--seed-safe-area-top));
|
|
4685
4709
|
padding-inline: var(--seed-dimension-spacing-x-global-gutter);
|
|
4686
4710
|
padding-block: var(--seed-dimension-x4);
|
|
4687
4711
|
border-top-left-radius: var(--seed-radius-r5);
|
|
@@ -4733,11 +4757,13 @@
|
|
|
4733
4757
|
gap: var(--seed-dimension-x2_5);
|
|
4734
4758
|
flex-direction: column;
|
|
4735
4759
|
display: flex;
|
|
4760
|
+
overflow-y: auto;
|
|
4736
4761
|
}
|
|
4737
4762
|
|
|
4738
4763
|
.seed-menu-sheet__group {
|
|
4739
4764
|
border-radius: var(--seed-radius-r4);
|
|
4740
4765
|
flex-direction: column;
|
|
4766
|
+
flex-shrink: 0;
|
|
4741
4767
|
align-items: stretch;
|
|
4742
4768
|
display: flex;
|
|
4743
4769
|
overflow: hidden;
|
|
@@ -5707,9 +5733,9 @@
|
|
|
5707
5733
|
|
|
5708
5734
|
.seed-snackbar-region {
|
|
5709
5735
|
z-index: 2147483647;
|
|
5710
|
-
left:
|
|
5711
|
-
right:
|
|
5712
|
-
bottom: calc(
|
|
5736
|
+
left: var(--seed-safe-area-left);
|
|
5737
|
+
right: var(--seed-safe-area-right);
|
|
5738
|
+
bottom: calc(var(--seed-safe-area-bottom) + var(--snackbar-region-offset, 0px));
|
|
5713
5739
|
padding-inline: var(--seed-dimension-x2);
|
|
5714
5740
|
padding-block: var(--seed-dimension-x2);
|
|
5715
5741
|
transition-property: bottom;
|