@seed-design/css 1.1.26 → 1.1.28
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 +39 -16
- 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 -2
- package/recipes/app-bar.css +5 -5
- package/recipes/app-screen.css +5 -1
- package/recipes/bottom-sheet.css +4 -0
- package/recipes/dialog.css +7 -0
- package/recipes/menu-sheet.css +6 -0
- package/recipes/snackbar-region.css +3 -3
- package/vars/component/bottom-sheet.d.ts +3 -0
- package/vars/component/bottom-sheet.mjs +1 -0
- package/vars/component/dialog.d.ts +2 -0
- package/vars/component/menu-sheet.d.ts +3 -0
- package/vars/component/menu-sheet.mjs +1 -0
- package/vars/component/snackbar.d.ts +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
|
|
|
@@ -1393,9 +1399,9 @@
|
|
|
1393
1399
|
}
|
|
1394
1400
|
|
|
1395
1401
|
.seed-app-bar__root--theme_cupertino {
|
|
1396
|
-
height: calc(
|
|
1397
|
-
padding-left: var(--seed-dimension-x4);
|
|
1398
|
-
padding-right: var(--seed-dimension-x4);
|
|
1402
|
+
height: calc(56px + var(--seed-safe-area-top));
|
|
1403
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
1404
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
1399
1405
|
padding-top: var(--seed-safe-area-top);
|
|
1400
1406
|
}
|
|
1401
1407
|
|
|
@@ -1419,8 +1425,8 @@
|
|
|
1419
1425
|
|
|
1420
1426
|
.seed-app-bar__root--theme_android {
|
|
1421
1427
|
height: calc(56px + var(--seed-safe-area-top));
|
|
1422
|
-
padding-left: var(--seed-dimension-x4);
|
|
1423
|
-
padding-right: var(--seed-dimension-x4);
|
|
1428
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
1429
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
1424
1430
|
padding-top: var(--seed-safe-area-top);
|
|
1425
1431
|
}
|
|
1426
1432
|
|
|
@@ -1497,8 +1503,8 @@
|
|
|
1497
1503
|
.seed-app-bar-main__root--theme_cupertino {
|
|
1498
1504
|
text-align: center;
|
|
1499
1505
|
top: var(--seed-safe-area-top);
|
|
1500
|
-
padding-left: var(--centered-title-padding-x,
|
|
1501
|
-
padding-right: var(--centered-title-padding-x,
|
|
1506
|
+
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));
|
|
1507
|
+
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));
|
|
1502
1508
|
pointer-events: none;
|
|
1503
1509
|
justify-content: center;
|
|
1504
1510
|
align-items: center;
|
|
@@ -1552,9 +1558,11 @@
|
|
|
1552
1558
|
.seed-app-screen__layer {
|
|
1553
1559
|
z-index: var(--z-index-layer);
|
|
1554
1560
|
box-sizing: border-box;
|
|
1555
|
-
-webkit-overflow-scrolling: touch;
|
|
1556
1561
|
width: 100%;
|
|
1557
1562
|
height: 100%;
|
|
1563
|
+
padding-left: var(--seed-safe-area-left);
|
|
1564
|
+
padding-right: var(--seed-safe-area-right);
|
|
1565
|
+
-webkit-overflow-scrolling: touch;
|
|
1558
1566
|
position: absolute;
|
|
1559
1567
|
left: 0;
|
|
1560
1568
|
right: 0;
|
|
@@ -1578,11 +1586,7 @@
|
|
|
1578
1586
|
right: 0;
|
|
1579
1587
|
}
|
|
1580
1588
|
|
|
1581
|
-
.seed-app-screen__root--theme_cupertino {
|
|
1582
|
-
--app-bar-height: 44px;
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
.seed-app-screen__root--theme_android {
|
|
1589
|
+
.seed-app-screen__root--theme_cupertino, .seed-app-screen__root--theme_android {
|
|
1586
1590
|
--app-bar-height: 56px;
|
|
1587
1591
|
}
|
|
1588
1592
|
|
|
@@ -1648,6 +1652,8 @@
|
|
|
1648
1652
|
.seed-app-screen__layer--tone_transparent-gradient_true:before {
|
|
1649
1653
|
content: "";
|
|
1650
1654
|
margin-bottom: calc(-1 * (66px + 400px + var(--seed-safe-area-top)));
|
|
1655
|
+
margin-left: calc(-1 * var(--seed-safe-area-left));
|
|
1656
|
+
margin-right: calc(-1 * var(--seed-safe-area-right));
|
|
1651
1657
|
height: calc(66px + 400px + var(--seed-safe-area-top));
|
|
1652
1658
|
pointer-events: none;
|
|
1653
1659
|
z-index: 1;
|
|
@@ -2137,6 +2143,8 @@
|
|
|
2137
2143
|
|
|
2138
2144
|
.seed-bottom-sheet__positioner {
|
|
2139
2145
|
overscroll-behavior-y: none;
|
|
2146
|
+
padding-left: var(--seed-safe-area-left);
|
|
2147
|
+
padding-right: var(--seed-safe-area-right);
|
|
2140
2148
|
--sheet-z-index: 2;
|
|
2141
2149
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
2142
2150
|
justify-content: center;
|
|
@@ -2166,6 +2174,7 @@
|
|
|
2166
2174
|
word-break: break-all;
|
|
2167
2175
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
2168
2176
|
background: var(--seed-color-bg-layer-floating);
|
|
2177
|
+
max-height: min(.9 * 100%, 100% - var(--seed-safe-area-top));
|
|
2169
2178
|
border-top-left-radius: var(--seed-radius-r6);
|
|
2170
2179
|
border-top-right-radius: var(--seed-radius-r6);
|
|
2171
2180
|
touch-action: none;
|
|
@@ -2237,6 +2246,7 @@
|
|
|
2237
2246
|
align-items: var(--seed-box-align-items);
|
|
2238
2247
|
flex-direction: column;
|
|
2239
2248
|
display: flex;
|
|
2249
|
+
overflow-y: auto;
|
|
2240
2250
|
}
|
|
2241
2251
|
|
|
2242
2252
|
.seed-bottom-sheet__footer {
|
|
@@ -3331,6 +3341,10 @@
|
|
|
3331
3341
|
|
|
3332
3342
|
.seed-dialog__positioner {
|
|
3333
3343
|
overscroll-behavior-y: none;
|
|
3344
|
+
padding-top: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
|
|
3345
|
+
padding-right: var(--seed-safe-area-right);
|
|
3346
|
+
padding-bottom: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
|
|
3347
|
+
padding-left: var(--seed-safe-area-left);
|
|
3334
3348
|
--dialog-z-index: 2;
|
|
3335
3349
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
3336
3350
|
justify-content: center;
|
|
@@ -3353,12 +3367,15 @@
|
|
|
3353
3367
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
3354
3368
|
background: var(--seed-color-bg-layer-floating);
|
|
3355
3369
|
max-width: 272px;
|
|
3370
|
+
max-height: 100%;
|
|
3356
3371
|
margin: auto var(--seed-dimension-x8);
|
|
3357
3372
|
border-radius: var(--seed-radius-r5);
|
|
3373
|
+
outline: none;
|
|
3358
3374
|
flex-direction: column;
|
|
3359
3375
|
flex: 1;
|
|
3360
3376
|
display: flex;
|
|
3361
3377
|
position: relative;
|
|
3378
|
+
overflow-y: auto;
|
|
3362
3379
|
}
|
|
3363
3380
|
|
|
3364
3381
|
.seed-dialog__header {
|
|
@@ -4651,6 +4668,8 @@
|
|
|
4651
4668
|
|
|
4652
4669
|
.seed-menu-sheet__positioner {
|
|
4653
4670
|
overscroll-behavior-y: none;
|
|
4671
|
+
padding-left: var(--seed-safe-area-left);
|
|
4672
|
+
padding-right: var(--seed-safe-area-right);
|
|
4654
4673
|
--sheet-z-index: 2;
|
|
4655
4674
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
4656
4675
|
justify-content: center;
|
|
@@ -4672,12 +4691,14 @@
|
|
|
4672
4691
|
word-break: break-all;
|
|
4673
4692
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
4674
4693
|
background: var(--seed-color-bg-layer-floating);
|
|
4694
|
+
max-height: min(.9 * 100%, 100% - var(--seed-safe-area-top));
|
|
4675
4695
|
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
4676
4696
|
padding-right: var(--seed-dimension-spacing-x-global-gutter);
|
|
4677
4697
|
padding-top: var(--seed-dimension-x4);
|
|
4678
4698
|
padding-bottom: var(--seed-dimension-x4);
|
|
4679
4699
|
border-top-left-radius: var(--seed-radius-r5);
|
|
4680
4700
|
border-top-right-radius: var(--seed-radius-r5);
|
|
4701
|
+
outline: none;
|
|
4681
4702
|
flex-direction: column;
|
|
4682
4703
|
flex: 1;
|
|
4683
4704
|
display: flex;
|
|
@@ -4706,11 +4727,13 @@
|
|
|
4706
4727
|
gap: var(--seed-dimension-x2_5);
|
|
4707
4728
|
flex-direction: column;
|
|
4708
4729
|
display: flex;
|
|
4730
|
+
overflow-y: auto;
|
|
4709
4731
|
}
|
|
4710
4732
|
|
|
4711
4733
|
.seed-menu-sheet__group {
|
|
4712
4734
|
border-radius: var(--seed-radius-r4);
|
|
4713
4735
|
flex-direction: column;
|
|
4736
|
+
flex-shrink: 0;
|
|
4714
4737
|
align-items: stretch;
|
|
4715
4738
|
display: flex;
|
|
4716
4739
|
overflow: hidden;
|
|
@@ -6079,9 +6102,9 @@
|
|
|
6079
6102
|
|
|
6080
6103
|
.seed-snackbar-region {
|
|
6081
6104
|
z-index: 2147483647;
|
|
6082
|
-
left:
|
|
6083
|
-
right:
|
|
6084
|
-
bottom: calc(
|
|
6105
|
+
left: var(--seed-safe-area-left);
|
|
6106
|
+
right: var(--seed-safe-area-right);
|
|
6107
|
+
bottom: calc(var(--seed-safe-area-bottom) + var(--snackbar-region-offset, 0px));
|
|
6085
6108
|
padding-left: var(--seed-dimension-x2);
|
|
6086
6109
|
padding-right: var(--seed-dimension-x2);
|
|
6087
6110
|
padding-top: var(--seed-dimension-x2);
|