beercss 3.10.8 → 3.11.1
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 +8 -8
- package/dist/cdn/beer.css +190 -75
- package/dist/cdn/beer.custom-element.js +4 -4
- package/dist/cdn/beer.custom-element.min.js +1 -1
- package/dist/cdn/beer.js +1 -1
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +190 -75
- package/dist/cdn/beer.scoped.min.css +1 -1
- package/package.json +1 -1
- package/src/cdn/beer.css +2 -2
- package/src/cdn/customElement.js +4 -4
- package/src/cdn/elements/buttons.css +24 -3
- package/src/cdn/elements/chips.css +0 -5
- package/src/cdn/elements/media.css +3 -11
- package/src/cdn/elements/menus.css +15 -3
- package/src/cdn/elements/navigations.css +88 -13
- package/src/cdn/helpers/forms.css +5 -1
- package/src/cdn/helpers/reset.css +4 -0
- package/src/cdn/helpers/theme.css +36 -0
- package/src/cdn/helpers/waves.css +3 -3
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/utils.ts +1 -1
|
@@ -20,6 +20,7 @@ menu {
|
|
|
20
20
|
border-radius: 0.25rem;
|
|
21
21
|
transform: scale(0.8) translateY(120%);
|
|
22
22
|
transition: all var(--speed2), 0s background-color;
|
|
23
|
+
justify-content: flex-start;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
[dir=rtl] menu {
|
|
@@ -32,7 +33,6 @@ menu.no-wrap {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
menu.active,
|
|
35
|
-
menu:not([data-ui]):active,
|
|
36
36
|
:not(menu, [data-ui]):focus-within > menu,
|
|
37
37
|
menu > li:hover > menu,
|
|
38
38
|
menu > li > menu:hover {
|
|
@@ -61,7 +61,7 @@ menu > li > a:only-child {
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
align-self: normal;
|
|
63
63
|
text-align: start;
|
|
64
|
-
justify-content:
|
|
64
|
+
justify-content: inherit;
|
|
65
65
|
white-space: nowrap;
|
|
66
66
|
gap: 1rem;
|
|
67
67
|
padding: 0.5rem 1rem;
|
|
@@ -98,7 +98,8 @@ menu.top.left {
|
|
|
98
98
|
|
|
99
99
|
[dir=rtl] menu.min.left,
|
|
100
100
|
menu.min.right,
|
|
101
|
-
menu.top
|
|
101
|
+
menu.top,
|
|
102
|
+
menu.top.right {
|
|
102
103
|
inset: 0 auto auto 0;
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -188,6 +189,17 @@ menu.border > li:not(:last-child)::before {
|
|
|
188
189
|
inline-size: auto;
|
|
189
190
|
}
|
|
190
191
|
|
|
192
|
+
menu.transparent {
|
|
193
|
+
margin: 0 -1rem !important;
|
|
194
|
+
padding: 0.5rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
menu.transparent > li {
|
|
198
|
+
background-color: inherit;
|
|
199
|
+
box-shadow: none;
|
|
200
|
+
padding: 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
191
203
|
menu > li:nth-last-child(2) {
|
|
192
204
|
--_child: 2;
|
|
193
205
|
}
|
|
@@ -35,23 +35,23 @@ nav > :is(ol, ul) > li > :only-child {
|
|
|
35
35
|
flex: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:is(nav, .row).
|
|
39
|
-
|
|
38
|
+
:is(nav, .row).min {
|
|
39
|
+
display: inline-flex;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
:is(nav, .row).no-space
|
|
43
|
-
|
|
42
|
+
:is(nav, .row, li).no-space {
|
|
43
|
+
gap: 0;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
:is(nav, .row).
|
|
47
|
-
|
|
46
|
+
:is(nav, .row, li).tiny-space {
|
|
47
|
+
gap: 0.5rem;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
:is(nav, .row).medium-space {
|
|
50
|
+
:is(nav, .row, li).medium-space {
|
|
51
51
|
gap: 1.5rem;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
:is(nav, .row).large-space {
|
|
54
|
+
:is(nav, .row, li).large-space {
|
|
55
55
|
gap: 2rem;
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -71,10 +71,6 @@ nav.drawer > :is(ol, ul) > li > :is(a, label) > .max {
|
|
|
71
71
|
min-block-size: inherit;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
:is(nav, .row) > .border.no-margin + .border.no-margin {
|
|
75
|
-
border-inline-start: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
74
|
nav:is(.left, .right, .top, .bottom) {
|
|
79
75
|
border: 0;
|
|
80
76
|
position: fixed;
|
|
@@ -129,7 +125,7 @@ nav.right,
|
|
|
129
125
|
}
|
|
130
126
|
|
|
131
127
|
nav.bottom {
|
|
132
|
-
block-size: calc(var(--bottom) + 5rem);
|
|
128
|
+
min-block-size: calc(var(--bottom) + 5rem);
|
|
133
129
|
inset: auto 0 0 0;
|
|
134
130
|
padding-block-start: 0.5rem;
|
|
135
131
|
}
|
|
@@ -291,6 +287,85 @@ nav.tabbed > a.active {
|
|
|
291
287
|
background-color: var(--primary-container);
|
|
292
288
|
}
|
|
293
289
|
|
|
290
|
+
nav.toolbar {
|
|
291
|
+
display: inline-flex;
|
|
292
|
+
justify-content: space-around;
|
|
293
|
+
border-radius: 2rem;
|
|
294
|
+
background-color: var(--surface-container);
|
|
295
|
+
color: var(--on-surface);
|
|
296
|
+
padding: 0 1rem;
|
|
297
|
+
gap: 0.5rem;
|
|
298
|
+
min-block-size: 4rem;
|
|
299
|
+
min-inline-size: 4rem;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
nav.toolbar > a {
|
|
303
|
+
display: inline-flex;
|
|
304
|
+
gap: 0.5rem;
|
|
305
|
+
min-inline-size: 2.5rem;
|
|
306
|
+
min-block-size: 2.5rem;
|
|
307
|
+
border-radius: 1.75rem;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
nav.toolbar > a:has(> :not(i)) {
|
|
311
|
+
padding: 0 1rem;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
nav.toolbar > a.active {
|
|
315
|
+
background-color: var(--secondary-container);
|
|
316
|
+
color: var(--on-secondary-container);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
nav.toolbar.fill {
|
|
320
|
+
background-color: var(--primary-container) !important;
|
|
321
|
+
color: var(--on-primary-container) !important;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
nav.toolbar.fill > a.active {
|
|
325
|
+
background-color: var(--surface-container) !important;
|
|
326
|
+
color: var(--on-surface) !important;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
nav.toolbar.vertical {
|
|
330
|
+
flex-direction: column !important;
|
|
331
|
+
min-inline-size: 4rem;
|
|
332
|
+
padding: 1rem 0;
|
|
333
|
+
align-self: center;
|
|
334
|
+
align-items: center !important;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
nav.toolbar.vertical > a {
|
|
338
|
+
inline-size: 2.5rem;
|
|
339
|
+
block-size: 2.5rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
nav.toolbar.vertical > a > :is(div, span):not(.badge, .tooltip) {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
nav.toolbar.max {
|
|
347
|
+
border-radius: 0;
|
|
348
|
+
display: flex;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
nav.group {
|
|
352
|
+
gap: 0.125rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
nav.group > :is(.button, button):not(.chip, .fill, .border).active {
|
|
356
|
+
background-color: var(--primary);
|
|
357
|
+
color: var(--on-primary);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
nav.group > :is(.button, button):not(.chip, .fill, .border) {
|
|
361
|
+
background-color: var(--surface-container);
|
|
362
|
+
color: var(--on-surface-container);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
nav.group > :is(.button, button):not(.chip).active {
|
|
366
|
+
border-radius: 2rem !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
294
369
|
:not(nav) > :is(ul, ol) {
|
|
295
370
|
all: revert;
|
|
296
371
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.bottom-round,
|
|
18
18
|
.left-round,
|
|
19
19
|
.right-round {
|
|
20
|
-
border-radius: 0 !important;
|
|
20
|
+
border-radius: 0.5rem !important;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.top-round {
|
|
@@ -68,3 +68,7 @@
|
|
|
68
68
|
.no-border {
|
|
69
69
|
border-color: transparent !important;
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
.border:not(.extend, .circle, .square, .badge) {
|
|
73
|
+
box-sizing: content-box;
|
|
74
|
+
}
|
|
@@ -184,3 +184,39 @@
|
|
|
184
184
|
background-color: var(--surface-variant) !important;
|
|
185
185
|
color: var(--on-surface-variant) !important;
|
|
186
186
|
}
|
|
187
|
+
|
|
188
|
+
.primary-container > .active,
|
|
189
|
+
.primary-container.active {
|
|
190
|
+
background-color: var(--primary) !important;
|
|
191
|
+
color: var(--on-primary) !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.secondary-container > .active,
|
|
195
|
+
.secondary-container.active {
|
|
196
|
+
background-color: var(--secondary) !important;
|
|
197
|
+
color: var(--on-secondary) !important;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.tertiary-container > .active,
|
|
201
|
+
.tertiary-container.active {
|
|
202
|
+
background-color: var(--tertiary) !important;
|
|
203
|
+
color: var(--on-tertiary) !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.primary > .active,
|
|
207
|
+
.primary.active {
|
|
208
|
+
background-color: var(--primary-container) !important;
|
|
209
|
+
color: var(--on-primary-container) !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.secondary > .active,
|
|
213
|
+
.secondary.active {
|
|
214
|
+
background-color: var(--secondary-container) !important;
|
|
215
|
+
color: var(--on-secondary-container) !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.tertiary > .active,
|
|
219
|
+
.tertiary.active {
|
|
220
|
+
background-color: var(--tertiary-container) !important;
|
|
221
|
+
color: var(--on-tertiary-container) !important;
|
|
222
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a):not(.slow-ripple, .ripple, .fast-ripple)::after {
|
|
1
|
+
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, .toolbar > a):not(.slow-ripple, .ripple, .fast-ripple)::after {
|
|
2
2
|
content: "";
|
|
3
3
|
position: absolute;
|
|
4
4
|
inset: 0;
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
transition: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a):not(.slow-ripple, .ripple, .fast-ripple):is(:focus-visible, :hover)::after {
|
|
15
|
+
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, .toolbar > a):not(.slow-ripple, .ripple, .fast-ripple):is(:focus-visible, :hover)::after {
|
|
16
16
|
background-size: 15000%;
|
|
17
17
|
opacity: 0.1;
|
|
18
18
|
transition: background-size var(--speed2) linear;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a):not(.slow-ripple, .ripple, .fast-ripple):active::after {
|
|
21
|
+
:is(.wave, .chip, .button, button, nav.tabbed > a, .tabs > a, .toolbar > a):not(.slow-ripple, .ripple, .fast-ripple):active::after {
|
|
22
22
|
background-size: 5000%;
|
|
23
23
|
opacity: 0;
|
|
24
24
|
transition: none;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
font-display: block;
|
|
7
7
|
src:
|
|
8
8
|
url("../material-symbols-outlined.woff2") format("woff2"),
|
|
9
|
-
url("https://cdn.jsdelivr.net/npm/beercss@3.
|
|
9
|
+
url("https://cdn.jsdelivr.net/npm/beercss@3.11.1/dist/cdn/material-symbols-outlined.woff2") format("woff2");
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/* rounded icons */
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-display: block;
|
|
18
18
|
src:
|
|
19
19
|
url("../material-symbols-rounded.woff2") format("woff2"),
|
|
20
|
-
url("https://cdn.jsdelivr.net/npm/beercss@3.
|
|
20
|
+
url("https://cdn.jsdelivr.net/npm/beercss@3.11.1/dist/cdn/material-symbols-rounded.woff2") format("woff2");
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/* sharp icons */
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
font-display: block;
|
|
29
29
|
src:
|
|
30
30
|
url("../material-symbols-sharp.woff2") format("woff2"),
|
|
31
|
-
url("https://cdn.jsdelivr.net/npm/beercss@3.
|
|
31
|
+
url("https://cdn.jsdelivr.net/npm/beercss@3.11.1/dist/cdn/material-symbols-sharp.woff2") format("woff2");
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* subset of only required icons */
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
font-display: block;
|
|
40
40
|
src:
|
|
41
41
|
url("../material-symbols-subset.woff2") format("woff2"),
|
|
42
|
-
url("https://cdn.jsdelivr.net/npm/beercss@3.
|
|
42
|
+
url("https://cdn.jsdelivr.net/npm/beercss@3.11.1/dist/cdn/material-symbols-subset.woff2") format("woff2");
|
|
43
43
|
}
|
package/src/cdn/utils.ts
CHANGED
|
@@ -116,6 +116,6 @@ export function updateAllClickable(element: Element) {
|
|
|
116
116
|
|
|
117
117
|
const as = queryAll("a", container);
|
|
118
118
|
for(let i=0; i<as.length; i++) removeClass(as[i], "active");
|
|
119
|
-
addClass(element, "active");
|
|
119
|
+
if (!hasTag(element, "button") && !hasClass(element, "button") && !hasClass(element, "chip")) addClass(element, "active");
|
|
120
120
|
}
|
|
121
121
|
|