beercss 4.0.16 → 4.0.18
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/README.md +1 -1
- package/dist/cdn/beer.css +112 -116
- package/dist/cdn/beer.js +15 -8
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +112 -116
- package/dist/cdn/beer.scoped.min.css +2 -2
- package/package.json +1 -1
- package/src/cdn/beer.ts +1 -1
- package/src/cdn/elements/badges.css +0 -1
- package/src/cdn/elements/buttons.css +2 -1
- package/src/cdn/elements/chips.css +1 -1
- package/src/cdn/elements/fields.css +7 -7
- package/src/cdn/elements/fields.ts +1 -0
- package/src/cdn/elements/mainLayouts.css +1 -1
- package/src/cdn/elements/menus.css +1 -1
- package/src/cdn/elements/pages.css +3 -15
- package/src/cdn/elements/progress.css +6 -54
- package/src/cdn/elements/shapes.css +6 -15
- package/src/cdn/elements/sliders.css +2 -1
- package/src/cdn/helpers/opacities.css +6 -6
- package/src/cdn/helpers/ripples.css +9 -7
- package/src/cdn/helpers/ripples.ts +14 -7
- package/src/cdn/helpers/waves.css +3 -3
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/settings/globals.css +62 -0
- package/src/cdn/settings/theme.ts +2 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="https://github.com/beercss/beercss/blob/main/LICENSE"><img src="https://img.shields.io/github/license/beercss/beercss" alt="license"></a>
|
|
6
6
|
<a href="https://github.com/beercss/beercss"><img src="https://img.shields.io/jsdelivr/npm/hy/beercss" alt="downloads"></a>
|
|
7
|
-
<a><img src="https://img.shields.io/badge/brotli_size-14.
|
|
7
|
+
<a><img src="https://img.shields.io/badge/brotli_size-14.6kb-green" alt="brotli size"></a>
|
|
8
8
|
<a href="https://www.npmjs.com/package/beercss"><img src="https://img.shields.io/npm/v/beercss" alt="version"></a>
|
|
9
9
|
<a href="https://github.com/beercss/beercss/pulls"><img src="https://img.shields.io/github/issues-pr/beercss/beercss" alt="pull Request"></a>
|
|
10
10
|
<a href="https://github.com/beercss/beercss/issues"><img src="https://img.shields.io/github/issues/beercss/beercss" alt="issues"></a>
|
package/dist/cdn/beer.css
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
--bottom: env(safe-area-inset-bottom);
|
|
16
16
|
--left: env(safe-area-inset-left);
|
|
17
17
|
--right: env(safe-area-inset-right);
|
|
18
|
+
--image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWJiYGAQBgAAAP//ZyYa+wAAAAZJREFUAwAAIgAWeX9MsQAAAABJRU5ErkJggg==);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body.dark {
|
|
22
|
+
--image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWL6//+/FAAAAP//qSv5QwAAAAZJREFUAwAJIAMaJWjIvQAAAABJRU5ErkJggg==);
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
html {
|
|
@@ -54,6 +59,63 @@ body {
|
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
|
|
62
|
+
@keyframes to-page {
|
|
63
|
+
from {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: var(--_transform);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
to {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transform: translate(0, 0);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes to-linear-progress {
|
|
75
|
+
0% {
|
|
76
|
+
margin: 0 0 0 -100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
50% {
|
|
80
|
+
margin: 0 0 0 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
100% {
|
|
84
|
+
margin: 0 0 0 100%;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes to-indeterminate-progress {
|
|
89
|
+
0% {
|
|
90
|
+
padding: 0 100% 0 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
50% {
|
|
94
|
+
padding: 0 0 0 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
100% {
|
|
98
|
+
padding: 0 0 0 100%;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes to-rotate {
|
|
103
|
+
from {
|
|
104
|
+
transform: rotate(0deg);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
to {
|
|
108
|
+
transform: rotate(360deg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes to-ripple {
|
|
113
|
+
to {
|
|
114
|
+
transform: scale(4);
|
|
115
|
+
opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
57
119
|
:root,
|
|
58
120
|
body.light {
|
|
59
121
|
--primary: #6750a4;
|
|
@@ -140,7 +202,7 @@ body.dark {
|
|
|
140
202
|
font-style: normal;
|
|
141
203
|
font-weight: 400;
|
|
142
204
|
font-display: swap;
|
|
143
|
-
src: url(material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
205
|
+
src: url(material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.18/dist/cdn/material-symbols-outlined.woff2) format("woff2");
|
|
144
206
|
}
|
|
145
207
|
|
|
146
208
|
/* rounded icons */
|
|
@@ -150,7 +212,7 @@ body.dark {
|
|
|
150
212
|
font-style: normal;
|
|
151
213
|
font-weight: 400;
|
|
152
214
|
font-display: swap;
|
|
153
|
-
src: url(material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
215
|
+
src: url(material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.18/dist/cdn/material-symbols-rounded.woff2) format("woff2");
|
|
154
216
|
}
|
|
155
217
|
|
|
156
218
|
/* sharp icons */
|
|
@@ -160,7 +222,7 @@ body.dark {
|
|
|
160
222
|
font-style: normal;
|
|
161
223
|
font-weight: 400;
|
|
162
224
|
font-display: swap;
|
|
163
|
-
src: url(material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
225
|
+
src: url(material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.18/dist/cdn/material-symbols-sharp.woff2) format("woff2");
|
|
164
226
|
}
|
|
165
227
|
|
|
166
228
|
/* subset of only required icons */
|
|
@@ -170,7 +232,7 @@ body.dark {
|
|
|
170
232
|
font-style: normal;
|
|
171
233
|
font-weight: 400;
|
|
172
234
|
font-display: swap;
|
|
173
|
-
src: url(material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
235
|
+
src: url(material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.18/dist/cdn/material-symbols-subset.woff2) format("woff2");
|
|
174
236
|
}
|
|
175
237
|
|
|
176
238
|
/* begin scoped */
|
|
@@ -474,15 +536,11 @@ div:is(:not([class]), [class=active]):has(> :not(.responsive) ~ :is(menu, .toolt
|
|
|
474
536
|
}
|
|
475
537
|
|
|
476
538
|
.no-opacity {
|
|
477
|
-
opacity: 1 !important;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.opacity {
|
|
481
539
|
opacity: 0 !important;
|
|
482
540
|
}
|
|
483
541
|
|
|
484
542
|
.small-opacity {
|
|
485
|
-
opacity: 0.
|
|
543
|
+
opacity: 0.25 !important;
|
|
486
544
|
}
|
|
487
545
|
|
|
488
546
|
.medium-opacity {
|
|
@@ -490,7 +548,11 @@ div:is(:not([class]), [class=active]):has(> :not(.responsive) ~ :is(menu, .toolt
|
|
|
490
548
|
}
|
|
491
549
|
|
|
492
550
|
.large-opacity {
|
|
493
|
-
opacity: 0.
|
|
551
|
+
opacity: 0.75 !important;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.opacity {
|
|
555
|
+
opacity: 1 !important;
|
|
494
556
|
}
|
|
495
557
|
|
|
496
558
|
.padding,
|
|
@@ -585,6 +647,15 @@ div:is(:not([class]), [class=active]):has(> :not(.responsive) ~ :is(menu, .toolt
|
|
|
585
647
|
transform: translate(50%, -50%);
|
|
586
648
|
}
|
|
587
649
|
|
|
650
|
+
[class*=ripple]:is(:hover, :focus-visible)::after {
|
|
651
|
+
content: '';
|
|
652
|
+
position: absolute;
|
|
653
|
+
inset: 0;
|
|
654
|
+
background: currentColor;
|
|
655
|
+
opacity: 0.1;
|
|
656
|
+
border-radius: inherit;
|
|
657
|
+
}
|
|
658
|
+
|
|
588
659
|
.ripple {
|
|
589
660
|
--_duration: 600ms;
|
|
590
661
|
}
|
|
@@ -613,13 +684,6 @@ div:is(:not([class]), [class=active]):has(> :not(.responsive) ~ :is(menu, .toolt
|
|
|
613
684
|
animation: to-ripple var(--_duration) linear;
|
|
614
685
|
}
|
|
615
686
|
|
|
616
|
-
@keyframes to-ripple {
|
|
617
|
-
to {
|
|
618
|
-
transform: scale(4);
|
|
619
|
-
opacity: 0;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
|
|
623
687
|
.scroll {
|
|
624
688
|
overflow: auto;
|
|
625
689
|
}
|
|
@@ -969,7 +1033,7 @@ sup {
|
|
|
969
1033
|
vertical-align: super;
|
|
970
1034
|
}
|
|
971
1035
|
|
|
972
|
-
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a):not(
|
|
1036
|
+
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a):not([class*=ripple])::after,
|
|
973
1037
|
nav:is(.left, .right, .bottom, .top).max > a::after,
|
|
974
1038
|
nav:is(.left, .right, .bottom, .top).max > :is(ol, ul) > li > a::after,
|
|
975
1039
|
nav:is(.left, .right, .bottom, .top):not(.max) > a > i::after,
|
|
@@ -988,7 +1052,7 @@ nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul) > li > a > i::after
|
|
|
988
1052
|
pointer-events: none;
|
|
989
1053
|
}
|
|
990
1054
|
|
|
991
|
-
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a):not(
|
|
1055
|
+
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a):not([class*=ripple]):is(:focus-visible, :hover)::after,
|
|
992
1056
|
nav:is(.left, .right, .bottom, .top).max > a:not(.button, .chip):is(:focus-visible, :hover)::after,
|
|
993
1057
|
nav:is(.left, .right, .bottom, .top).max > :is(ol, ul) > li > a:not(.button, .chip):is(:focus-visible, :hover)::after,
|
|
994
1058
|
nav:is(.left, .right, .bottom, .top):not(.max) > a:not(.button, .chip):is(:focus-visible, :hover) > i::after,
|
|
@@ -998,7 +1062,7 @@ nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul) > li > a:not(.butto
|
|
|
998
1062
|
transition: background-size var(--speed2) linear;
|
|
999
1063
|
}
|
|
1000
1064
|
|
|
1001
|
-
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a, nav.max > a):not(
|
|
1065
|
+
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a, nav.max > a):not([class*=ripple]):active::after,
|
|
1002
1066
|
nav:is(.left, .right, .bottom, .top).max > a:active::after,
|
|
1003
1067
|
nav:is(.left, .right, .bottom, .top).max > :is(ol, ul) > li > a:active::after,
|
|
1004
1068
|
nav:is(.left, .right, .bottom, .top):not(.max) > a:active > i::after,
|
|
@@ -1042,7 +1106,6 @@ nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul) > li > a:active > i
|
|
|
1042
1106
|
justify-content: center;
|
|
1043
1107
|
position: absolute;
|
|
1044
1108
|
font-size: 0.6875rem;
|
|
1045
|
-
text-transform: none;
|
|
1046
1109
|
z-index: 2;
|
|
1047
1110
|
padding: 0 0.25rem;
|
|
1048
1111
|
min-block-size: 1rem;
|
|
@@ -1206,6 +1269,7 @@ nav.bottom ~ footer.fixed {
|
|
|
1206
1269
|
button {
|
|
1207
1270
|
--_padding: 1rem;
|
|
1208
1271
|
--_size: 2.5rem;
|
|
1272
|
+
--_round: calc(var(--_size) / 2) !important;
|
|
1209
1273
|
box-sizing: content-box;
|
|
1210
1274
|
display: inline-flex;
|
|
1211
1275
|
align-items: center;
|
|
@@ -1216,7 +1280,7 @@ button {
|
|
|
1216
1280
|
color: var(--on-primary);
|
|
1217
1281
|
padding: 0 var(--_padding);
|
|
1218
1282
|
background-color: var(--primary);
|
|
1219
|
-
border-radius:
|
|
1283
|
+
border-radius: 1.25rem;
|
|
1220
1284
|
transition: transform var(--speed3), border-radius var(--speed2), padding var(--speed3);
|
|
1221
1285
|
user-select: none;
|
|
1222
1286
|
gap: 0.5rem;
|
|
@@ -1339,6 +1403,7 @@ article.border {
|
|
|
1339
1403
|
.chip {
|
|
1340
1404
|
--_padding: 0.75rem;
|
|
1341
1405
|
--_size: 2rem;
|
|
1406
|
+
--_round: calc(var(--_size) / 2) !important;
|
|
1342
1407
|
box-sizing: border-box;
|
|
1343
1408
|
display: inline-flex;
|
|
1344
1409
|
align-items: center;
|
|
@@ -1351,7 +1416,6 @@ article.border {
|
|
|
1351
1416
|
border: 0.0625rem solid var(--outline-variant);
|
|
1352
1417
|
color: var(--on-surface-variant);
|
|
1353
1418
|
padding: 0 var(--_padding);
|
|
1354
|
-
text-transform: none;
|
|
1355
1419
|
border-radius: 0.5rem;
|
|
1356
1420
|
transition: transform var(--speed3), border-radius var(--speed3), padding var(--speed3);
|
|
1357
1421
|
user-select: none;
|
|
@@ -1889,7 +1953,7 @@ input[type=number] {
|
|
|
1889
1953
|
.field.label > label {
|
|
1890
1954
|
--_start: 1rem;
|
|
1891
1955
|
position: absolute;
|
|
1892
|
-
inset: -0.5rem
|
|
1956
|
+
inset: -0.5rem 0.9375rem 0 var(--_start);
|
|
1893
1957
|
display: flex;
|
|
1894
1958
|
block-size: calc(var(--_input, 0) + 1rem);
|
|
1895
1959
|
line-height: calc(var(--_input, 0) + 1rem);
|
|
@@ -1901,15 +1965,15 @@ input[type=number] {
|
|
|
1901
1965
|
}
|
|
1902
1966
|
|
|
1903
1967
|
[dir=rtl] .field.label > label {
|
|
1904
|
-
inset: -0.5rem var(--_start) 0
|
|
1968
|
+
inset: -0.5rem calc(var(--_start) - 0.0625rem) 0 0.9375rem;
|
|
1905
1969
|
}
|
|
1906
1970
|
|
|
1907
1971
|
.field.label[class*=round] > label {
|
|
1908
|
-
inset: -0.5rem 1.
|
|
1972
|
+
inset: -0.5rem 1.9375rem 0 var(--_start);
|
|
1909
1973
|
}
|
|
1910
1974
|
|
|
1911
|
-
[dir=rtl] .field.
|
|
1912
|
-
inset: -0.5rem
|
|
1975
|
+
[dir=rtl] .field.label[class*=round] > label {
|
|
1976
|
+
inset: -0.5rem var(--_start) 0 1.9375rem;
|
|
1913
1977
|
}
|
|
1914
1978
|
|
|
1915
1979
|
.field.label.border.prefix:not(.fill) > :is(label.active, :focus + label, [placeholder]:not(:placeholder-shown) + label, select + label) {
|
|
@@ -1962,12 +2026,12 @@ input[type=number] {
|
|
|
1962
2026
|
|
|
1963
2027
|
.field.label.border[class*=round]:not(.fill) > :is(input, textarea):is(:focus, [placeholder]:not(:placeholder-shown), .active),
|
|
1964
2028
|
.field.label.border[class*=round]:not(.fill) > select {
|
|
1965
|
-
clip-path: polygon(-2% -2%, 1.25rem -2%, 1.25rem 0.5rem, calc(100% -
|
|
2029
|
+
clip-path: polygon(-2% -2%, 1.25rem -2%, 1.25rem 0.5rem, calc(100% - 2rem) 0.5rem, calc(100% - 2rem) -2%, 102% -2%, 102% 102%, -2% 102%);
|
|
1966
2030
|
}
|
|
1967
2031
|
|
|
1968
2032
|
[dir=rtl] .field.label.border[class*=round]:not(.fill) > :is(input, textarea):is(:focus, [placeholder]:not(:placeholder-shown), .active),
|
|
1969
2033
|
[dir=rtl] .field.label.border[class*=round]:not(.fill) > select {
|
|
1970
|
-
clip-path: polygon(-2% -2%,
|
|
2034
|
+
clip-path: polygon(-2% -2%, 2rem -2%, 2rem 0.5rem, calc(100% - 1.25rem) 0.5rem, calc(100% - 1.25rem) -2%, 102% -2%, 102% 102%, -2% 102%);
|
|
1971
2035
|
}
|
|
1972
2036
|
|
|
1973
2037
|
.field.label > :focus + label {
|
|
@@ -2447,7 +2511,7 @@ main {
|
|
|
2447
2511
|
--_padding: 0.5rem;
|
|
2448
2512
|
grid-area: main;
|
|
2449
2513
|
padding: var(--_padding);
|
|
2450
|
-
overflow:
|
|
2514
|
+
overflow: clip;
|
|
2451
2515
|
}
|
|
2452
2516
|
|
|
2453
2517
|
aside {
|
|
@@ -2581,7 +2645,7 @@ menu {
|
|
|
2581
2645
|
position: absolute;
|
|
2582
2646
|
box-shadow: var(--elevate2);
|
|
2583
2647
|
background-color: var(--surface-container);
|
|
2584
|
-
z-index:
|
|
2648
|
+
z-index: 13;
|
|
2585
2649
|
inset: auto auto 0 0;
|
|
2586
2650
|
inline-size: 100%;
|
|
2587
2651
|
max-block-size: 50vh;
|
|
@@ -3400,8 +3464,8 @@ dialog:popover-open::backdrop {
|
|
|
3400
3464
|
|
|
3401
3465
|
.page.active {
|
|
3402
3466
|
opacity: 1;
|
|
3403
|
-
position:
|
|
3404
|
-
display:
|
|
3467
|
+
position: relative;
|
|
3468
|
+
display: block;
|
|
3405
3469
|
animation: var(--speed4) to-page ease;
|
|
3406
3470
|
}
|
|
3407
3471
|
|
|
@@ -3421,27 +3485,13 @@ dialog:popover-open::backdrop {
|
|
|
3421
3485
|
--_transform: translate(4rem, 0);
|
|
3422
3486
|
}
|
|
3423
3487
|
|
|
3424
|
-
@keyframes to-page {
|
|
3425
|
-
from {
|
|
3426
|
-
opacity: 0;
|
|
3427
|
-
transform: var(--_transform);
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
to {
|
|
3431
|
-
opacity: 1;
|
|
3432
|
-
transform: translate(0, 0);
|
|
3433
|
-
}
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
3488
|
progress {
|
|
3437
|
-
--_light: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWJiYGAQBgAAAP//ZyYa+wAAAAZJREFUAwAAIgAWeX9MsQAAAABJRU5ErkJggg==);
|
|
3438
|
-
--_dark: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWL6//+/FAAAAP//qSv5QwAAAAZJREFUAwAJIAMaJWjIvQAAAABJRU5ErkJggg==);
|
|
3439
3489
|
--_size: 0.25rem;
|
|
3440
3490
|
position: relative;
|
|
3441
3491
|
inline-size: 100%;
|
|
3442
3492
|
block-size: var(--_size);
|
|
3443
3493
|
color: var(--primary);
|
|
3444
|
-
background: var(--
|
|
3494
|
+
background: var(--image);
|
|
3445
3495
|
border-radius: 1rem;
|
|
3446
3496
|
flex: none;
|
|
3447
3497
|
border: none;
|
|
@@ -3452,10 +3502,6 @@ progress {
|
|
|
3452
3502
|
appearance: none;
|
|
3453
3503
|
}
|
|
3454
3504
|
|
|
3455
|
-
.dark progress {
|
|
3456
|
-
background: var(--_dark);
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
3505
|
progress.small {
|
|
3460
3506
|
--_size: 0.25rem;
|
|
3461
3507
|
}
|
|
@@ -3470,7 +3516,7 @@ progress.large {
|
|
|
3470
3516
|
|
|
3471
3517
|
progress.indeterminate {
|
|
3472
3518
|
--_value: 100;
|
|
3473
|
-
animation: 3.2s to-indeterminate ease infinite;
|
|
3519
|
+
animation: 3.2s to-indeterminate-progress ease infinite;
|
|
3474
3520
|
}
|
|
3475
3521
|
|
|
3476
3522
|
progress:not(.circle, [value])::after {
|
|
@@ -3481,15 +3527,15 @@ progress:not(.circle, [value])::after {
|
|
|
3481
3527
|
block-size: 100%;
|
|
3482
3528
|
clip-path: none;
|
|
3483
3529
|
background: currentcolor;
|
|
3484
|
-
animation: 3.2s to-linear ease infinite;
|
|
3530
|
+
animation: 3.2s to-linear-progress ease infinite;
|
|
3485
3531
|
}
|
|
3486
3532
|
|
|
3487
3533
|
progress:not(.circle, [value])::-moz-progress-bar {
|
|
3488
|
-
animation: 3.2s to-linear ease infinite;
|
|
3534
|
+
animation: 3.2s to-linear-progress ease infinite;
|
|
3489
3535
|
}
|
|
3490
3536
|
|
|
3491
3537
|
progress:not(.circle, [value])::-webkit-progress-value {
|
|
3492
|
-
animation: 3.2s to-linear ease infinite;
|
|
3538
|
+
animation: 3.2s to-linear-progress ease infinite;
|
|
3493
3539
|
}
|
|
3494
3540
|
|
|
3495
3541
|
progress::-webkit-progress-bar {
|
|
@@ -3507,16 +3553,12 @@ progress::-moz-progress-bar {
|
|
|
3507
3553
|
progress.wavy {
|
|
3508
3554
|
block-size: calc(var(--_size, 0) * 2);
|
|
3509
3555
|
background: none;
|
|
3510
|
-
background-image: var(--
|
|
3556
|
+
background-image: var(--image);
|
|
3511
3557
|
background-repeat: repeat-x;
|
|
3512
3558
|
background-position: 0 50%;
|
|
3513
3559
|
background-size: auto calc(var(--_size, 0) / 2);
|
|
3514
3560
|
}
|
|
3515
3561
|
|
|
3516
|
-
.dark progress.wavy {
|
|
3517
|
-
background-image: var(--_dark);
|
|
3518
|
-
}
|
|
3519
|
-
|
|
3520
3562
|
progress.wavy::-webkit-progress-value,
|
|
3521
3563
|
progress.wavy:not(.circle, [value])::after {
|
|
3522
3564
|
mask-image: url(wavy.svg);
|
|
@@ -3604,44 +3646,6 @@ progress.max + * {
|
|
|
3604
3646
|
color: inherit;
|
|
3605
3647
|
}
|
|
3606
3648
|
|
|
3607
|
-
@keyframes to-linear {
|
|
3608
|
-
0% {
|
|
3609
|
-
margin: 0 0 0 -100%;
|
|
3610
|
-
}
|
|
3611
|
-
|
|
3612
|
-
50% {
|
|
3613
|
-
margin: 0 0 0 0;
|
|
3614
|
-
}
|
|
3615
|
-
|
|
3616
|
-
100% {
|
|
3617
|
-
margin: 0 0 0 100%;
|
|
3618
|
-
}
|
|
3619
|
-
}
|
|
3620
|
-
|
|
3621
|
-
@keyframes to-indeterminate {
|
|
3622
|
-
0% {
|
|
3623
|
-
padding: 0 100% 0 0;
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
|
-
50% {
|
|
3627
|
-
padding: 0 0 0 0;
|
|
3628
|
-
}
|
|
3629
|
-
|
|
3630
|
-
100% {
|
|
3631
|
-
padding: 0 0 0 100%;
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
|
|
3635
|
-
@keyframes to-rotate {
|
|
3636
|
-
from {
|
|
3637
|
-
transform: rotate(0deg);
|
|
3638
|
-
}
|
|
3639
|
-
|
|
3640
|
-
to {
|
|
3641
|
-
transform: rotate(360deg);
|
|
3642
|
-
}
|
|
3643
|
-
}
|
|
3644
|
-
|
|
3645
3649
|
.shape {
|
|
3646
3650
|
display: flex;
|
|
3647
3651
|
align-items: center;
|
|
@@ -3722,27 +3726,27 @@ progress.max + * {
|
|
|
3722
3726
|
}
|
|
3723
3727
|
|
|
3724
3728
|
.shape.rotate {
|
|
3725
|
-
animation: linear to-
|
|
3729
|
+
animation: linear to-rotate infinite 12s;
|
|
3726
3730
|
}
|
|
3727
3731
|
|
|
3728
3732
|
.shape.rotate > * {
|
|
3729
|
-
animation: linear to-
|
|
3733
|
+
animation: linear to-rotate infinite 12s reverse;
|
|
3730
3734
|
}
|
|
3731
3735
|
|
|
3732
3736
|
.shape.fast-rotate {
|
|
3733
|
-
animation: linear to-
|
|
3737
|
+
animation: linear to-rotate infinite 6s;
|
|
3734
3738
|
}
|
|
3735
3739
|
|
|
3736
3740
|
.shape.fast-rotate > * {
|
|
3737
|
-
animation: linear to-
|
|
3741
|
+
animation: linear to-rotate infinite 6s reverse;
|
|
3738
3742
|
}
|
|
3739
3743
|
|
|
3740
3744
|
.shape.slow-rotate {
|
|
3741
|
-
animation: linear to-
|
|
3745
|
+
animation: linear to-rotate infinite 24s;
|
|
3742
3746
|
}
|
|
3743
3747
|
|
|
3744
3748
|
.shape.slow-rotate > * {
|
|
3745
|
-
animation: linear to-
|
|
3749
|
+
animation: linear to-rotate infinite 24s reverse;
|
|
3746
3750
|
}
|
|
3747
3751
|
|
|
3748
3752
|
:is(button, .button, .chip):has(> .shape) > .responsive {
|
|
@@ -3893,15 +3897,6 @@ progress.max + * {
|
|
|
3893
3897
|
mask-image: url(very-sunny.svg);
|
|
3894
3898
|
}
|
|
3895
3899
|
|
|
3896
|
-
@keyframes to-shape-rotate {
|
|
3897
|
-
0% {
|
|
3898
|
-
transform: rotate(0deg);
|
|
3899
|
-
}
|
|
3900
|
-
100% {
|
|
3901
|
-
transform: rotate(360deg);
|
|
3902
|
-
}
|
|
3903
|
-
}
|
|
3904
|
-
|
|
3905
3900
|
/* checkbox, radio, switch */
|
|
3906
3901
|
|
|
3907
3902
|
.checkbox,
|
|
@@ -4223,6 +4218,7 @@ progress.max + * {
|
|
|
4223
4218
|
padding: 0;
|
|
4224
4219
|
margin: 0;
|
|
4225
4220
|
transform: rotate(0deg);
|
|
4221
|
+
touch-action: none;
|
|
4226
4222
|
}
|
|
4227
4223
|
|
|
4228
4224
|
.slider > input:only-of-type {
|
|
@@ -4338,7 +4334,7 @@ progress.max + * {
|
|
|
4338
4334
|
position: absolute;
|
|
4339
4335
|
block-size: auto;
|
|
4340
4336
|
inset: 0 auto 0 0.5rem;
|
|
4341
|
-
color:
|
|
4337
|
+
color: var(--inverse-primary);
|
|
4342
4338
|
z-index: 1;
|
|
4343
4339
|
}
|
|
4344
4340
|
|
package/dist/cdn/beer.js
CHANGED
|
@@ -205,6 +205,7 @@ function updateAllTextareas() {
|
|
|
205
205
|
for (let i = 0; i < textareas.length; i++) {
|
|
206
206
|
onWeak(textareas[i], "focus", onFocusInput);
|
|
207
207
|
onWeak(textareas[i], "blur", onBlurInput);
|
|
208
|
+
updatePlaceholder(textareas[i]);
|
|
208
209
|
if (isChrome && !isMac && !isIOS) continue;
|
|
209
210
|
onWeak(textareas[i], "input", onInputTextarea);
|
|
210
211
|
updateTextarea(textareas[i]);
|
|
@@ -355,11 +356,10 @@ async function updateTheme(source) {
|
|
|
355
356
|
const context = globalThis;
|
|
356
357
|
const body = document.body;
|
|
357
358
|
if (!source || !context.materialDynamicColors) return lastTheme();
|
|
358
|
-
const mode = getMode();
|
|
359
359
|
if (source.light && source.dark) {
|
|
360
360
|
_lastTheme.light = source.light;
|
|
361
361
|
_lastTheme.dark = source.dark;
|
|
362
|
-
body.setAttribute("style", source[
|
|
362
|
+
body.setAttribute("style", source[getMode()]);
|
|
363
363
|
return source;
|
|
364
364
|
}
|
|
365
365
|
return context.materialDynamicColors(source).then((theme) => {
|
|
@@ -375,7 +375,7 @@ async function updateTheme(source) {
|
|
|
375
375
|
};
|
|
376
376
|
_lastTheme.light = toCss(theme.light);
|
|
377
377
|
_lastTheme.dark = toCss(theme.dark);
|
|
378
|
-
body.setAttribute("style", _lastTheme[
|
|
378
|
+
body.setAttribute("style", _lastTheme[getMode()]);
|
|
379
379
|
return _lastTheme;
|
|
380
380
|
});
|
|
381
381
|
}
|
|
@@ -496,16 +496,20 @@ function updatePage(page) {
|
|
|
496
496
|
if (container) removeClass(queryAll(":scope > .page", container), "active");
|
|
497
497
|
addClass(page, "active");
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function onMousedownRipple(e) {
|
|
500
500
|
updateRipple(e);
|
|
501
501
|
}
|
|
502
|
+
function onKeydownRipple(e) {
|
|
503
|
+
if ((e == null ? void 0 : e.key) === " ") updateRipple(e);
|
|
504
|
+
}
|
|
502
505
|
function updateRipple(e) {
|
|
506
|
+
const isMouseEvent = e instanceof MouseEvent;
|
|
503
507
|
const element = e.currentTarget;
|
|
504
508
|
const rect = element.getBoundingClientRect();
|
|
505
509
|
const diameter = Math.max(rect.width, rect.height);
|
|
506
510
|
const radius = diameter / 2;
|
|
507
|
-
const x = e.clientX - rect.left - radius;
|
|
508
|
-
const y = e.clientY - rect.top - radius;
|
|
511
|
+
const x = isMouseEvent ? e.clientX - rect.left - radius : rect.width / 2 - radius;
|
|
512
|
+
const y = isMouseEvent ? e.clientY - rect.top - radius : rect.height / 2 - radius;
|
|
509
513
|
const rippleContainer = document.createElement("div");
|
|
510
514
|
rippleContainer.className = "ripple-js";
|
|
511
515
|
const ripple = document.createElement("div");
|
|
@@ -520,7 +524,10 @@ function updateRipple(e) {
|
|
|
520
524
|
}
|
|
521
525
|
function updateAllRipples() {
|
|
522
526
|
const ripples = queryAll(".slow-ripple, .ripple, .fast-ripple");
|
|
523
|
-
for (let i = 0; i < ripples.length; i++)
|
|
527
|
+
for (let i = 0; i < ripples.length; i++) {
|
|
528
|
+
onWeak(ripples[i], "mousedown", onMousedownRipple);
|
|
529
|
+
onWeak(ripples[i], "keydown", onKeydownRipple);
|
|
530
|
+
}
|
|
524
531
|
}
|
|
525
532
|
function onInputDocument(e) {
|
|
526
533
|
const progress = e.target;
|
|
@@ -624,8 +631,8 @@ function _ui(selector, options) {
|
|
|
624
631
|
}
|
|
625
632
|
updateAllDataUis();
|
|
626
633
|
updateAllFields();
|
|
627
|
-
updateAllSliders();
|
|
628
634
|
updateAllRipples();
|
|
635
|
+
updateAllSliders();
|
|
629
636
|
updateAllProgress();
|
|
630
637
|
}
|
|
631
638
|
function start() {
|