beercss 4.0.15 → 4.0.17

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 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.5kb-green" alt="brotli size"></a>
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>
@@ -84,8 +84,8 @@ This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebo
84
84
  ### DEFAULT VERSION
85
85
 
86
86
  ```html
87
- <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.css" rel="stylesheet" />
88
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.js"></script>
87
+ <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.css" rel="stylesheet" />
88
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.js"></script>
89
89
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
90
90
  ```
91
91
 
@@ -103,8 +103,8 @@ import "material-dynamic-colors";
103
103
  Applied on child elements of `<* class="beer">...</*>`.
104
104
 
105
105
  ```html
106
- <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.scoped.min.css" rel="stylesheet" />
107
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.js"></script>
106
+ <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.scoped.min.css" rel="stylesheet" />
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.js"></script>
108
108
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
109
109
  ```
110
110
 
@@ -122,7 +122,7 @@ import "material-dynamic-colors";
122
122
  Applied on child elements of `<beer-css>...</beer-css>`.
123
123
 
124
124
  ```html
125
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.custom-element.min.js"></script>
125
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.custom-element.min.js"></script>
126
126
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
127
127
  ```
128
128
 
@@ -138,7 +138,7 @@ import "material-dynamic-colors";
138
138
 
139
139
  ### LOCAL CDN VERSION
140
140
 
141
- Download all files from CDN https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/ and https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/. Now put the files inside a new folder in your project (like `/beercss` for example):
141
+ Download all files from CDN https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/ and https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/. Now put the files inside a new folder in your project (like `/beercss` for example):
142
142
 
143
143
  ```html
144
144
  <link href="/beercss/beer.min.css" rel="stylesheet" />
@@ -159,8 +159,8 @@ You can use this html to setup your project. See on [Codepen](https://codepen.io
159
159
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
160
160
  <meta name="google" content="notranslate">
161
161
  <title>Hello world</title>
162
- <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.css" rel="stylesheet">
163
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.js"></script>
162
+ <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.css" rel="stylesheet">
163
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.js"></script>
164
164
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
165
165
  </head>
166
166
  <body class="dark">
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.15/dist/cdn/material-symbols-outlined.woff2) format("woff2");
205
+ src: url(material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.17/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.15/dist/cdn/material-symbols-rounded.woff2) format("woff2");
215
+ src: url(material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.17/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.15/dist/cdn/material-symbols-sharp.woff2) format("woff2");
225
+ src: url(material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.17/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.15/dist/cdn/material-symbols-subset.woff2) format("woff2");
235
+ src: url(material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.17/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.75 !important;
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.25 !important;
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(.slow-ripple, .ripple, .fast-ripple)::after,
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(.slow-ripple, .ripple, .fast-ripple):is(:focus-visible, :hover)::after,
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(.slow-ripple, .ripple, .fast-ripple):active::after,
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: var(--_size);
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;
@@ -2447,7 +2511,7 @@ main {
2447
2511
  --_padding: 0.5rem;
2448
2512
  grid-area: main;
2449
2513
  padding: var(--_padding);
2450
- overflow: hidden;
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: 11;
2648
+ z-index: 13;
2585
2649
  inset: auto auto 0 0;
2586
2650
  inline-size: 100%;
2587
2651
  max-block-size: 50vh;
@@ -2604,6 +2668,26 @@ menu {
2604
2668
  gap: 0.125rem;
2605
2669
  }
2606
2670
 
2671
+ menu.no-space {
2672
+ gap: 0;
2673
+ }
2674
+
2675
+ menu.small-space {
2676
+ gap: 0.25rem;
2677
+ }
2678
+
2679
+ menu.medium-space {
2680
+ gap: 0.375rem;
2681
+ }
2682
+
2683
+ menu.large-space {
2684
+ gap: 0.5rem;
2685
+ }
2686
+
2687
+ menu.extra-space {
2688
+ gap: 0.625rem;
2689
+ }
2690
+
2607
2691
  [dir=rtl] menu {
2608
2692
  inset: auto 0 0 auto;
2609
2693
  }
@@ -2776,20 +2860,8 @@ menu > li > menu.top.left {
2776
2860
  inset: calc(3rem * (var(--_child, 0) - var(--_type, 0))) 100% auto auto;
2777
2861
  }
2778
2862
 
2779
- menu.no-space > li {
2780
- min-block-size: 2.5rem;
2781
- }
2782
-
2783
- menu.medium-space > li {
2784
- min-block-size: 3.5rem;
2785
- }
2786
-
2787
- menu.large-space > li {
2788
- min-block-size: 4rem;
2789
- }
2790
-
2791
2863
  menu.group {
2792
- padding: 0;
2864
+ padding: 0.5rem 0;
2793
2865
  inline-size: 100%;
2794
2866
  min-inline-size: auto;
2795
2867
  max-block-size: none;
@@ -2801,6 +2873,7 @@ menu.group {
2801
2873
  menu.group > li {
2802
2874
  box-shadow: none;
2803
2875
  padding: 0;
2876
+ min-block-size: auto;
2804
2877
  }
2805
2878
 
2806
2879
  menu.group > li:hover {
@@ -2817,6 +2890,8 @@ menu.group > li > menu:hover {
2817
2890
  transform: none;
2818
2891
  transition: none;
2819
2892
  border-radius: 1rem 1rem 0.5rem 0.5rem;
2893
+ z-index: auto;
2894
+ flex: 1;
2820
2895
  }
2821
2896
 
2822
2897
  menu.group > li:last-child > menu {
@@ -3389,8 +3464,8 @@ dialog:popover-open::backdrop {
3389
3464
 
3390
3465
  .page.active {
3391
3466
  opacity: 1;
3392
- position: inherit;
3393
- display: inherit;
3467
+ position: relative;
3468
+ display: block;
3394
3469
  animation: var(--speed4) to-page ease;
3395
3470
  }
3396
3471
 
@@ -3410,27 +3485,13 @@ dialog:popover-open::backdrop {
3410
3485
  --_transform: translate(4rem, 0);
3411
3486
  }
3412
3487
 
3413
- @keyframes to-page {
3414
- from {
3415
- opacity: 0;
3416
- transform: var(--_transform);
3417
- }
3418
-
3419
- to {
3420
- opacity: 1;
3421
- transform: translate(0, 0);
3422
- }
3423
- }
3424
-
3425
3488
  progress {
3426
- --_light: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWJiYGAQBgAAAP//ZyYa+wAAAAZJREFUAwAAIgAWeX9MsQAAAABJRU5ErkJggg==);
3427
- --_dark: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWL6//+/FAAAAP//qSv5QwAAAAZJREFUAwAJIAMaJWjIvQAAAABJRU5ErkJggg==);
3428
3489
  --_size: 0.25rem;
3429
3490
  position: relative;
3430
3491
  inline-size: 100%;
3431
3492
  block-size: var(--_size);
3432
3493
  color: var(--primary);
3433
- background: var(--_light);
3494
+ background: var(--image);
3434
3495
  border-radius: 1rem;
3435
3496
  flex: none;
3436
3497
  border: none;
@@ -3441,10 +3502,6 @@ progress {
3441
3502
  appearance: none;
3442
3503
  }
3443
3504
 
3444
- .dark progress {
3445
- background: var(--_dark);
3446
- }
3447
-
3448
3505
  progress.small {
3449
3506
  --_size: 0.25rem;
3450
3507
  }
@@ -3459,7 +3516,7 @@ progress.large {
3459
3516
 
3460
3517
  progress.indeterminate {
3461
3518
  --_value: 100;
3462
- animation: 3.2s to-indeterminate ease infinite;
3519
+ animation: 3.2s to-indeterminate-progress ease infinite;
3463
3520
  }
3464
3521
 
3465
3522
  progress:not(.circle, [value])::after {
@@ -3470,15 +3527,15 @@ progress:not(.circle, [value])::after {
3470
3527
  block-size: 100%;
3471
3528
  clip-path: none;
3472
3529
  background: currentcolor;
3473
- animation: 3.2s to-linear ease infinite;
3530
+ animation: 3.2s to-linear-progress ease infinite;
3474
3531
  }
3475
3532
 
3476
3533
  progress:not(.circle, [value])::-moz-progress-bar {
3477
- animation: 3.2s to-linear ease infinite;
3534
+ animation: 3.2s to-linear-progress ease infinite;
3478
3535
  }
3479
3536
 
3480
3537
  progress:not(.circle, [value])::-webkit-progress-value {
3481
- animation: 3.2s to-linear ease infinite;
3538
+ animation: 3.2s to-linear-progress ease infinite;
3482
3539
  }
3483
3540
 
3484
3541
  progress::-webkit-progress-bar {
@@ -3496,16 +3553,12 @@ progress::-moz-progress-bar {
3496
3553
  progress.wavy {
3497
3554
  block-size: calc(var(--_size, 0) * 2);
3498
3555
  background: none;
3499
- background-image: var(--_light);
3556
+ background-image: var(--image);
3500
3557
  background-repeat: repeat-x;
3501
3558
  background-position: 0 50%;
3502
3559
  background-size: auto calc(var(--_size, 0) / 2);
3503
3560
  }
3504
3561
 
3505
- .dark progress.wavy {
3506
- background-image: var(--_dark);
3507
- }
3508
-
3509
3562
  progress.wavy::-webkit-progress-value,
3510
3563
  progress.wavy:not(.circle, [value])::after {
3511
3564
  mask-image: url(wavy.svg);
@@ -3593,44 +3646,6 @@ progress.max + * {
3593
3646
  color: inherit;
3594
3647
  }
3595
3648
 
3596
- @keyframes to-linear {
3597
- 0% {
3598
- margin: 0 0 0 -100%;
3599
- }
3600
-
3601
- 50% {
3602
- margin: 0 0 0 0;
3603
- }
3604
-
3605
- 100% {
3606
- margin: 0 0 0 100%;
3607
- }
3608
- }
3609
-
3610
- @keyframes to-indeterminate {
3611
- 0% {
3612
- padding: 0 100% 0 0;
3613
- }
3614
-
3615
- 50% {
3616
- padding: 0 0 0 0;
3617
- }
3618
-
3619
- 100% {
3620
- padding: 0 0 0 100%;
3621
- }
3622
- }
3623
-
3624
- @keyframes to-rotate {
3625
- from {
3626
- transform: rotate(0deg);
3627
- }
3628
-
3629
- to {
3630
- transform: rotate(360deg);
3631
- }
3632
- }
3633
-
3634
3649
  .shape {
3635
3650
  display: flex;
3636
3651
  align-items: center;
@@ -3711,27 +3726,27 @@ progress.max + * {
3711
3726
  }
3712
3727
 
3713
3728
  .shape.rotate {
3714
- animation: linear to-shape-rotate infinite 12s;
3729
+ animation: linear to-rotate infinite 12s;
3715
3730
  }
3716
3731
 
3717
3732
  .shape.rotate > * {
3718
- animation: linear to-shape-rotate infinite 12s reverse;
3733
+ animation: linear to-rotate infinite 12s reverse;
3719
3734
  }
3720
3735
 
3721
3736
  .shape.fast-rotate {
3722
- animation: linear to-shape-rotate infinite 6s;
3737
+ animation: linear to-rotate infinite 6s;
3723
3738
  }
3724
3739
 
3725
3740
  .shape.fast-rotate > * {
3726
- animation: linear to-shape-rotate infinite 6s reverse;
3741
+ animation: linear to-rotate infinite 6s reverse;
3727
3742
  }
3728
3743
 
3729
3744
  .shape.slow-rotate {
3730
- animation: linear to-shape-rotate infinite 24s;
3745
+ animation: linear to-rotate infinite 24s;
3731
3746
  }
3732
3747
 
3733
3748
  .shape.slow-rotate > * {
3734
- animation: linear to-shape-rotate infinite 24s reverse;
3749
+ animation: linear to-rotate infinite 24s reverse;
3735
3750
  }
3736
3751
 
3737
3752
  :is(button, .button, .chip):has(> .shape) > .responsive {
@@ -3882,15 +3897,6 @@ progress.max + * {
3882
3897
  mask-image: url(very-sunny.svg);
3883
3898
  }
3884
3899
 
3885
- @keyframes to-shape-rotate {
3886
- 0% {
3887
- transform: rotate(0deg);
3888
- }
3889
- 100% {
3890
- transform: rotate(360deg);
3891
- }
3892
- }
3893
-
3894
3900
  /* checkbox, radio, switch */
3895
3901
 
3896
3902
  .checkbox,
@@ -4164,6 +4170,7 @@ progress.max + * {
4164
4170
  flex: none;
4165
4171
  direction: ltr;
4166
4172
  margin: 0 1.25rem;
4173
+ color: var(--primary);
4167
4174
  }
4168
4175
 
4169
4176
  [dir=rtl] .slider {
@@ -4211,6 +4218,7 @@ progress.max + * {
4211
4218
  padding: 0;
4212
4219
  margin: 0;
4213
4220
  transform: rotate(0deg);
4221
+ touch-action: none;
4214
4222
  }
4215
4223
 
4216
4224
  .slider > input:only-of-type {
@@ -4230,7 +4238,7 @@ progress.max + * {
4230
4238
  block-size: var(--_thumb);
4231
4239
  inline-size: 0.25rem;
4232
4240
  border-radius: 0.25rem;
4233
- background: var(--primary);
4241
+ background: currentColor;
4234
4242
  cursor: grab;
4235
4243
  margin: 0;
4236
4244
  z-index: 1;
@@ -4289,14 +4297,15 @@ progress.max + * {
4289
4297
  position: absolute;
4290
4298
  block-size: var(--_track);
4291
4299
  border-radius: 1rem 0 0 1rem;
4292
- background: var(--primary);
4293
- color: var(--on-primary);
4300
+ background: currentColor;
4301
+ color: currentColor;
4294
4302
  z-index: 0;
4295
- inset: calc(50% - (var(--_track, 0) / 2)) calc(var(--_end) + 0.5rem) auto calc(var(--_start) + 0.5rem);
4303
+ inset: calc(50% - (var(--_track, 0) / 2)) calc(var(--_end) + 0.5rem) auto var(--_start);
4296
4304
  }
4297
4305
 
4298
4306
  .slider > input[type=range] + input[type=range] ~ span:not([class]) {
4299
4307
  border-radius: 0;
4308
+ inset: calc(50% - (var(--_track, 0) / 2)) calc(var(--_end) + 0.5rem) auto calc(var(--_start) + 0.5rem);
4300
4309
  }
4301
4310
 
4302
4311
  .field > .slider {
@@ -4309,12 +4318,12 @@ progress.max + * {
4309
4318
  inline-size: 100%;
4310
4319
  block-size: var(--_track);
4311
4320
  border-radius: 1rem;
4312
- background: var(--secondary-container);
4321
+ background: var(--active);
4313
4322
  clip-path: polygon(calc(var(--_start, 0) - 0.5rem) 0, 0 0, 0 100%, calc(var(--_start, 0) - 0.5rem) 100%, calc(var(--_start, 0) - 0.5rem) 0, calc(100% - var(--_end, 0) + 0.5rem) 0, 100% 0, 100% 100%, calc(100% - var(--_end, 0) + 0.5rem) 100%, calc(100% - var(--_end, 0) + 0.5rem) 0);
4314
4323
  }
4315
4324
 
4316
4325
  .slider:has(> [disabled])::before {
4317
- background: var(--outline-variant);
4326
+ background: var(--active);
4318
4327
  }
4319
4328
 
4320
4329
  .slider:has([disabled]) {
@@ -4325,7 +4334,7 @@ progress.max + * {
4325
4334
  position: absolute;
4326
4335
  block-size: auto;
4327
4336
  inset: 0 auto 0 0.5rem;
4328
- color: currentColor;
4337
+ color: var(--inverse-primary);
4329
4338
  z-index: 1;
4330
4339
  }
4331
4340
 
@@ -12,7 +12,7 @@ class BeerCssCustomElement extends HTMLElement {
12
12
  BeerCssCustomElement.isJsLoaded = true;
13
13
 
14
14
  if (window.ui) return;
15
- return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.js");
15
+ return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.js");
16
16
  }
17
17
 
18
18
  async addCss() {
@@ -23,7 +23,7 @@ class BeerCssCustomElement extends HTMLElement {
23
23
 
24
24
  const head = document.querySelector("head");
25
25
  const element = document.createElement("link");
26
- element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.scoped.min.css");
26
+ element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.scoped.min.css");
27
27
  element.setAttribute("rel", "stylesheet");
28
28
  head.appendChild(element);
29
29
  }
@@ -1 +1 @@
1
- class BeerCssCustomElement extends HTMLElement {static isCssLoaded = false;static isJsLoaded = false;constructor() {super();this.run();}async addJs() {if (BeerCssCustomElement.isJsLoaded) return;BeerCssCustomElement.isJsLoaded = true;if (window.ui) return;return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.min.js");}async addCss() {if (BeerCssCustomElement.isCssLoaded) return;BeerCssCustomElement.isCssLoaded = true;const isScoped = !!getComputedStyle(document.documentElement).getPropertyValue("--scoped");if (isScoped) return;const head = document.querySelector("head");const element = document.createElement("link");element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.15/dist/cdn/beer.scoped.min.css");element.setAttribute("rel", "stylesheet");head.appendChild(element);}async run() {await Promise.all([this.addJs(), this.addCss()]);ui();}}customElements.define("beer-css", BeerCssCustomElement);export default BeerCssCustomElement;
1
+ class BeerCssCustomElement extends HTMLElement {static isCssLoaded = false;static isJsLoaded = false;constructor() {super();this.run();}async addJs() {if (BeerCssCustomElement.isJsLoaded) return;BeerCssCustomElement.isJsLoaded = true;if (window.ui) return;return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.min.js");}async addCss() {if (BeerCssCustomElement.isCssLoaded) return;BeerCssCustomElement.isCssLoaded = true;const isScoped = !!getComputedStyle(document.documentElement).getPropertyValue("--scoped");if (isScoped) return;const head = document.querySelector("head");const element = document.createElement("link");element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.16/dist/cdn/beer.scoped.min.css");element.setAttribute("rel", "stylesheet");head.appendChild(element);}async run() {await Promise.all([this.addJs(), this.addCss()]);ui();}}customElements.define("beer-css", BeerCssCustomElement);export default BeerCssCustomElement;