beercss 4.0.19 → 4.0.21
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 +9 -9
- package/dist/cdn/beer.css +25 -21
- package/dist/cdn/beer.custom-element.js +2 -2
- package/dist/cdn/beer.custom-element.min.js +1 -1
- package/dist/cdn/beer.js +571 -498
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +25 -21
- package/dist/cdn/beer.scoped.min.css +2 -2
- package/index.d.ts +23 -5
- package/package.json +16 -32
- package/src/cdn/beer.ts +15 -13
- package/src/cdn/customElement.d.ts +12 -0
- package/src/cdn/customElement.js +2 -2
- package/src/cdn/elements/badges.css +1 -1
- package/src/cdn/elements/fields.ts +12 -4
- package/src/cdn/elements/navigations.css +7 -7
- package/src/cdn/elements/pages.css +1 -1
- package/src/cdn/helpers/forms.css +5 -1
- package/src/cdn/helpers/ripples.ts +22 -14
- package/src/cdn/helpers/waves.css +6 -6
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/settings/reset.css +1 -1
- package/src/cdn/settings/theme.ts +13 -9
- package/src/cdn/utils.ts +27 -6
package/dist/cdn/beer.scoped.css
CHANGED
|
@@ -202,7 +202,7 @@ body.dark {
|
|
|
202
202
|
font-style: normal;
|
|
203
203
|
font-weight: 400;
|
|
204
204
|
font-display: swap;
|
|
205
|
-
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.21/dist/cdn/material-symbols-outlined.woff2) format("woff2");
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/* rounded icons */
|
|
@@ -212,7 +212,7 @@ body.dark {
|
|
|
212
212
|
font-style: normal;
|
|
213
213
|
font-weight: 400;
|
|
214
214
|
font-display: swap;
|
|
215
|
-
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.21/dist/cdn/material-symbols-rounded.woff2) format("woff2");
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/* sharp icons */
|
|
@@ -222,7 +222,7 @@ body.dark {
|
|
|
222
222
|
font-style: normal;
|
|
223
223
|
font-weight: 400;
|
|
224
224
|
font-display: swap;
|
|
225
|
-
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.21/dist/cdn/material-symbols-sharp.woff2) format("woff2");
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/* subset of only required icons */
|
|
@@ -232,7 +232,7 @@ body.dark {
|
|
|
232
232
|
font-style: normal;
|
|
233
233
|
font-weight: 400;
|
|
234
234
|
font-display: swap;
|
|
235
|
-
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.21/dist/cdn/material-symbols-subset.woff2) format("woff2");
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/* begin scoped */
|
|
@@ -314,7 +314,7 @@ label {
|
|
|
314
314
|
pointer-events: none;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
:is(div:not([class]), div[class=active]):has(> :not(.responsive) ~ :is(menu, .tooltip, input)) {
|
|
318
318
|
display: inline-flex;
|
|
319
319
|
}
|
|
320
320
|
|
|
@@ -459,10 +459,14 @@ div:is(:not([class]), [class=active]):has(> :not(.responsive) ~ :is(menu, .toolt
|
|
|
459
459
|
border-end-end-radius: var(--_round) !important;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
.circle
|
|
462
|
+
.circle {
|
|
463
463
|
border-radius: 50%;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
+
.circle:is(button, .button, .chip) {
|
|
467
|
+
border-radius: var(--_size);
|
|
468
|
+
}
|
|
469
|
+
|
|
466
470
|
:is(.circle, .square):is(button, .button, .chip) {
|
|
467
471
|
padding: 0;
|
|
468
472
|
block-size: var(--_size);
|
|
@@ -1038,9 +1042,9 @@ sup {
|
|
|
1038
1042
|
|
|
1039
1043
|
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a):not([class*=ripple])::after,
|
|
1040
1044
|
nav:is(.left, .right, .bottom, .top).max > a::after,
|
|
1041
|
-
nav:is(.left, .right, .bottom, .top).max > :is(ol, ul
|
|
1045
|
+
nav:is(.left, .right, .bottom, .top).max > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a::after,
|
|
1042
1046
|
nav:is(.left, .right, .bottom, .top):not(.max) > a > i::after,
|
|
1043
|
-
nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul
|
|
1047
|
+
nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol > li, ul > li, div:not([class]), div[class=active]) a > i::after {
|
|
1044
1048
|
content: "";
|
|
1045
1049
|
position: absolute;
|
|
1046
1050
|
inset: 0;
|
|
@@ -1057,9 +1061,9 @@ nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul) > li > a > i::after
|
|
|
1057
1061
|
|
|
1058
1062
|
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a):not([class*=ripple]):is(:focus-visible, :hover)::after,
|
|
1059
1063
|
nav:is(.left, .right, .bottom, .top).max > a:not(.button, .chip):is(:focus-visible, :hover)::after,
|
|
1060
|
-
nav:is(.left, .right, .bottom, .top).max > :is(ol, ul
|
|
1064
|
+
nav:is(.left, .right, .bottom, .top).max > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:not(.button, .chip):is(:focus-visible, :hover)::after,
|
|
1061
1065
|
nav:is(.left, .right, .bottom, .top):not(.max) > a:not(.button, .chip):is(:focus-visible, :hover) > i::after,
|
|
1062
|
-
nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul
|
|
1066
|
+
nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:not(.button, .chip):is(:focus-visible, :hover) > i::after {
|
|
1063
1067
|
background-size: 22500%;
|
|
1064
1068
|
opacity: 0.1;
|
|
1065
1069
|
transition: background-size var(--speed2) linear;
|
|
@@ -1067,9 +1071,9 @@ nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul) > li > a:not(.butto
|
|
|
1067
1071
|
|
|
1068
1072
|
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, nav.toolbar > a, nav.max > a):not([class*=ripple]):active::after,
|
|
1069
1073
|
nav:is(.left, .right, .bottom, .top).max > a:active::after,
|
|
1070
|
-
nav:is(.left, .right, .bottom, .top).max > :is(ol, ul
|
|
1074
|
+
nav:is(.left, .right, .bottom, .top).max > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:active::after,
|
|
1071
1075
|
nav:is(.left, .right, .bottom, .top):not(.max) > a:active > i::after,
|
|
1072
|
-
nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul
|
|
1076
|
+
nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:active > i::after {
|
|
1073
1077
|
background-size: 0%;
|
|
1074
1078
|
opacity: 0;
|
|
1075
1079
|
transition: none;
|
|
@@ -1165,7 +1169,7 @@ nav:is(.left, .right, .bottom, .top):not(.max) > :is(ol, ul) > li > a:active > i
|
|
|
1165
1169
|
}
|
|
1166
1170
|
|
|
1167
1171
|
nav:is(.left, .right, .top, .bottom) > a > .badge,
|
|
1168
|
-
nav:is(.left, .right, .top, .bottom) > :is(ol, ul
|
|
1172
|
+
nav:is(.left, .right, .top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a > .badge {
|
|
1169
1173
|
inset: 1rem auto auto 50%;
|
|
1170
1174
|
}
|
|
1171
1175
|
|
|
@@ -3193,7 +3197,7 @@ nav.max:is(.top, .bottom) {
|
|
|
3193
3197
|
}
|
|
3194
3198
|
|
|
3195
3199
|
nav:is(.left, .right, .top, .bottom) > a:not(.button, .chip),
|
|
3196
|
-
nav:is(.left, .right, .top, .bottom) > :is(ol, ul
|
|
3200
|
+
nav:is(.left, .right, .top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:not(.button, .chip) {
|
|
3197
3201
|
display: flex;
|
|
3198
3202
|
flex-direction: column;
|
|
3199
3203
|
gap: 0.25rem;
|
|
@@ -3203,14 +3207,14 @@ nav:is(.left, .right, .top, .bottom) > :is(ol, ul) > li > a:not(.button, .chip)
|
|
|
3203
3207
|
}
|
|
3204
3208
|
|
|
3205
3209
|
nav:not(.max):is(.left, .right, .top, .bottom) > a:not(.button, .chip) > i,
|
|
3206
|
-
nav:not(.max):is(.left, .right, .top, .bottom) > :is(ol, ul
|
|
3210
|
+
nav:not(.max):is(.left, .right, .top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:not(.button, .chip) > i {
|
|
3207
3211
|
padding: 0.25rem 1rem;
|
|
3208
3212
|
border-radius: 2rem;
|
|
3209
3213
|
margin: 0 auto;
|
|
3210
3214
|
}
|
|
3211
3215
|
|
|
3212
3216
|
nav.max:is(.left, .right, .top, .bottom) > a:not(.button, .chip),
|
|
3213
|
-
nav.max:is(.left, .right, .top, .bottom) > :is(ol, ul
|
|
3217
|
+
nav.max:is(.left, .right, .top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:not(.button, .chip) {
|
|
3214
3218
|
flex-direction: row;
|
|
3215
3219
|
gap: 0.5rem;
|
|
3216
3220
|
inline-size: auto;
|
|
@@ -3221,21 +3225,21 @@ nav.max:is(.left, .right, .top, .bottom) > :is(ol, ul) > li > a:not(.button, .ch
|
|
|
3221
3225
|
}
|
|
3222
3226
|
|
|
3223
3227
|
nav:is(.left, .right, .top, .bottom) > a.active:not(.button, .chip),
|
|
3224
|
-
nav:is(.left, .right, .top, .bottom) > :is(ol, ul
|
|
3228
|
+
nav:is(.left, .right, .top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a.active:not(.button, .chip) {
|
|
3225
3229
|
transition: padding var(--speed1) linear;
|
|
3226
3230
|
}
|
|
3227
3231
|
|
|
3228
3232
|
nav.max:is(.top, .bottom) > a:not(.button, .chip),
|
|
3229
|
-
nav.max:is(.top, .bottom) > :is(ol, ul
|
|
3233
|
+
nav.max:is(.top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a:not(.button, .chip) {
|
|
3230
3234
|
gap: 0.25rem;
|
|
3231
3235
|
block-size: 2.5rem;
|
|
3232
3236
|
font-size: 0.8rem;
|
|
3233
3237
|
}
|
|
3234
3238
|
|
|
3235
3239
|
nav.max:is(.left, .right, .top, .bottom) > a.active:not(.button, .chip),
|
|
3236
|
-
nav.max:is(.left, .right, .top, .bottom) > :is(ol, ul
|
|
3240
|
+
nav.max:is(.left, .right, .top, .bottom) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a.active:not(.button, .chip),
|
|
3237
3241
|
nav:is(.left, .right, .top, .bottom):not(.max) > a.active:not(.button, .chip) > i,
|
|
3238
|
-
nav:is(.left, .right, .top, .bottom):not(.max) > :is(ol, ul
|
|
3242
|
+
nav:is(.left, .right, .top, .bottom):not(.max) > :is(ol > li, ul > li, div:not([class]), div[class=active]) > a.active:not(.button, .chip) > i {
|
|
3239
3243
|
background-color: var(--secondary-container);
|
|
3240
3244
|
color: var(--on-secondary-container);
|
|
3241
3245
|
}
|
|
@@ -3468,7 +3472,7 @@ dialog:popover-open::backdrop {
|
|
|
3468
3472
|
.page.active {
|
|
3469
3473
|
opacity: 1;
|
|
3470
3474
|
position: relative;
|
|
3471
|
-
display:
|
|
3475
|
+
display: inherit;
|
|
3472
3476
|
animation: var(--speed4) to-page ease;
|
|
3473
3477
|
}
|
|
3474
3478
|
|