beercss 4.0.2 → 4.0.3
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 +293 -260
- package/dist/cdn/beer.custom-element.js +2 -2
- package/dist/cdn/beer.custom-element.min.js +1 -1
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.scoped.css +293 -260
- package/dist/cdn/beer.scoped.min.css +2 -2
- package/package.json +1 -1
- package/src/cdn/beer.css +1 -1
- package/src/cdn/customElement.js +2 -2
- package/src/cdn/elements/lists.css +2 -1
- package/src/cdn/elements/menus.css +51 -26
- package/src/cdn/elements/navigations.css +14 -43
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/settings/theme.css +36 -0
|
@@ -17,11 +17,14 @@ menu {
|
|
|
17
17
|
color: var(--on-surface);
|
|
18
18
|
line-height: normal;
|
|
19
19
|
text-align: start;
|
|
20
|
-
border-radius:
|
|
20
|
+
border-radius: 1rem;
|
|
21
21
|
transform: scale(0.8) translateY(120%);
|
|
22
|
-
transition: all var(--speed2),
|
|
22
|
+
transition: all var(--speed2) var(--speed2), background-color 0s;
|
|
23
23
|
justify-content: flex-start;
|
|
24
|
-
padding: 0.
|
|
24
|
+
padding: 0.125rem 0.25rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 0.125rem;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
[dir=rtl] menu {
|
|
@@ -34,21 +37,27 @@ menu.no-wrap {
|
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
menu.active,
|
|
37
|
-
:not(
|
|
40
|
+
:not([data-ui]):focus-within > menu,
|
|
38
41
|
menu > li:hover > menu,
|
|
39
42
|
menu > li > menu:hover {
|
|
40
43
|
opacity: 1;
|
|
41
44
|
visibility: visible;
|
|
42
45
|
transform: scale(1) translateY(100%);
|
|
46
|
+
transition: all var(--speed2), background-color 0s;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
menu.active
|
|
46
|
-
:not(
|
|
49
|
+
menu.top.active,
|
|
50
|
+
:not([data-ui]):focus-within > menu.top,
|
|
47
51
|
menu > li:hover > menu.top,
|
|
48
52
|
menu > li > menu.top:hover {
|
|
49
53
|
transform: scale(1) translateY(-100%);
|
|
50
54
|
}
|
|
51
55
|
|
|
56
|
+
menu:is(.min, .max).active,
|
|
57
|
+
:not([data-ui]):focus-within > menu:is(.min, .max) {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
}
|
|
60
|
+
|
|
52
61
|
menu * {
|
|
53
62
|
white-space: inherit !important;
|
|
54
63
|
}
|
|
@@ -66,14 +75,40 @@ menu > li > a:only-child {
|
|
|
66
75
|
white-space: nowrap;
|
|
67
76
|
gap: 1rem;
|
|
68
77
|
padding: 0.5rem 1rem;
|
|
69
|
-
min-block-size:
|
|
78
|
+
min-block-size: 2.75rem;
|
|
70
79
|
flex: 1;
|
|
71
80
|
margin: 0 !important;
|
|
72
81
|
cursor: pointer;
|
|
82
|
+
border-radius: 0.25rem;
|
|
83
|
+
transition: border-radius var(--speed2);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
menu > li:first-child {
|
|
87
|
+
border-top-left-radius: inherit;
|
|
88
|
+
border-top-right-radius: inherit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
menu > li:last-child {
|
|
92
|
+
border-bottom-left-radius: inherit;
|
|
93
|
+
border-bottom-right-radius: inherit;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
menu > li:not(.none):hover {
|
|
97
|
+
background-color: color-mix(in srgb, currentColor 10%, transparent);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
menu > li.active {
|
|
101
|
+
background-color: var(--tertiary-container);
|
|
102
|
+
color: var(--on-tertiary-container);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
menu > li:is(.active, :active) {
|
|
106
|
+
border-radius: inherit;
|
|
73
107
|
}
|
|
74
108
|
|
|
75
|
-
menu > li
|
|
76
|
-
background
|
|
109
|
+
menu > li.none {
|
|
110
|
+
background: none;
|
|
111
|
+
border-radius: 0;
|
|
77
112
|
}
|
|
78
113
|
|
|
79
114
|
menu > li > :is(.max, .field),
|
|
@@ -86,10 +121,7 @@ menu > li:has(.field, a:only-child) {
|
|
|
86
121
|
|
|
87
122
|
menu.min {
|
|
88
123
|
inset: 0 0 auto 0;
|
|
89
|
-
transform:
|
|
90
|
-
background-color: var(--surface-variant) !important;
|
|
91
|
-
color: var(--on-surface-variant) !important;
|
|
92
|
-
padding: 0;
|
|
124
|
+
transform: scale(0.8);
|
|
93
125
|
}
|
|
94
126
|
|
|
95
127
|
[dir=rtl] menu.min.right,
|
|
@@ -112,12 +144,14 @@ menu.max {
|
|
|
112
144
|
max-block-size: none;
|
|
113
145
|
min-block-size: auto;
|
|
114
146
|
z-index: 100;
|
|
115
|
-
transform:
|
|
116
|
-
background-color: var(--surface-variant) !important;
|
|
117
|
-
color: var(--on-surface-variant) !important;
|
|
147
|
+
transform: scale(0.8);
|
|
118
148
|
border-radius: 0;
|
|
119
149
|
}
|
|
120
150
|
|
|
151
|
+
menu.max > :is(li, li.none) {
|
|
152
|
+
flex: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
121
155
|
menu.no-wrap:is(.min, .max) {
|
|
122
156
|
min-inline-size: 16rem;
|
|
123
157
|
}
|
|
@@ -182,15 +216,6 @@ menu.large-space > li {
|
|
|
182
216
|
min-block-size: 4rem;
|
|
183
217
|
}
|
|
184
218
|
|
|
185
|
-
menu.border > li:not(:last-child)::before {
|
|
186
|
-
content: '';
|
|
187
|
-
position: absolute;
|
|
188
|
-
background-color: var(--outline-variant);
|
|
189
|
-
inset: auto 0 0 0;
|
|
190
|
-
block-size: 0.0625rem;
|
|
191
|
-
inline-size: auto;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
219
|
menu.transparent {
|
|
195
220
|
margin: 0 -1rem !important;
|
|
196
221
|
padding: 0.5rem;
|
|
@@ -292,4 +317,4 @@ menu > li:nth-last-of-type(11) {
|
|
|
292
317
|
:not(menu, [data-ui]):hover > menu.top {
|
|
293
318
|
transform: scale(1) translateY(-100%);
|
|
294
319
|
}
|
|
295
|
-
}
|
|
320
|
+
}
|
|
@@ -131,6 +131,11 @@ nav:is(.top, .bottom) > header {
|
|
|
131
131
|
|
|
132
132
|
nav > header > * {
|
|
133
133
|
margin: 0;
|
|
134
|
+
transition: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
nav.max > header > * {
|
|
138
|
+
transition: all var(--speed1);
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
nav > header > .extend:hover {
|
|
@@ -206,7 +211,6 @@ nav:not(.max):is(.left, .right, .top, .bottom) > a:not(.button, .chip) > i,
|
|
|
206
211
|
nav:not(.max):is(.left, .right, .top, .bottom) > :is(ol, ul) > li > a:not(.button, .chip) > i {
|
|
207
212
|
padding: 0.25rem 1rem;
|
|
208
213
|
border-radius: 2rem;
|
|
209
|
-
transition: padding var(--speed1) linear;
|
|
210
214
|
margin: 0 auto;
|
|
211
215
|
}
|
|
212
216
|
|
|
@@ -221,6 +225,11 @@ nav.max:is(.left, .right, .top, .bottom) > :is(ol, ul) > li > a:not(.button, .ch
|
|
|
221
225
|
font-size: inherit;
|
|
222
226
|
}
|
|
223
227
|
|
|
228
|
+
nav:is(.left, .right, .top, .bottom) > a.active:not(.button, .chip),
|
|
229
|
+
nav:is(.left, .right, .top, .bottom) > :is(ol, ul) > li > a.active:not(.button, .chip) {
|
|
230
|
+
transition: padding var(--speed1) linear;
|
|
231
|
+
}
|
|
232
|
+
|
|
224
233
|
nav.max:is(.top, .bottom) > a:not(.button, .chip),
|
|
225
234
|
nav.max:is(.top, .bottom) > :is(ol, ul) > li > a:not(.button, .chip) {
|
|
226
235
|
gap: 0.25rem;
|
|
@@ -236,6 +245,10 @@ nav:is(.left, .right, .top, .bottom):not(.max) > :is(ol, ul) > li > a.active:not
|
|
|
236
245
|
color: var(--on-secondary-container);
|
|
237
246
|
}
|
|
238
247
|
|
|
248
|
+
nav.vertical > :is(ol, ul) {
|
|
249
|
+
align-items: normal;
|
|
250
|
+
}
|
|
251
|
+
|
|
239
252
|
:is(nav, .row):is(.left-align, .top-align, .vertical) {
|
|
240
253
|
justify-content: flex-start;
|
|
241
254
|
}
|
|
@@ -411,48 +424,6 @@ nav.split > :is(.button, button):not(.chip, .fill, .border) {
|
|
|
411
424
|
color: var(--on-primary);
|
|
412
425
|
}
|
|
413
426
|
|
|
414
|
-
nav.group.primary-container > button,
|
|
415
|
-
nav:is(.max, .toolbar, .tabbed, .group).primary > :is(button, a).active,
|
|
416
|
-
nav:not(.max, .toolbar, .tabbed, .group).primary > a.active:not(.button, .chip) > i {
|
|
417
|
-
background-color: var(--primary-container) !important;
|
|
418
|
-
color: var(--on-primary-container) !important;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
nav.group.primary > button,
|
|
422
|
-
nav:is(.max, .toolbar, .tabbed, .group).primary-container > :is(button, a).active,
|
|
423
|
-
nav:not(.max, .toolbar, .tabbed, .group).primary-container > a.active:not(.button, .chip) > i {
|
|
424
|
-
background-color: var(--primary) !important;
|
|
425
|
-
color: var(--on-primary) !important;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
nav.group.secondary-container > button,
|
|
429
|
-
nav:is(.max, .toolbar, .tabbed, .group).secondary > :is(button, a).active,
|
|
430
|
-
nav:not(.max, .toolbar, .tabbed, .group).secondary > a.active:not(.button, .chip) > i {
|
|
431
|
-
background-color: var(--secondary-container) !important;
|
|
432
|
-
color: var(--on-secondary-container) !important;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
nav.group.secondary > button,
|
|
436
|
-
nav:is(.max, .toolbar, .tabbed, .group).secondary-container > :is(button, a).active,
|
|
437
|
-
nav:not(.max, .toolbar, .tabbed, .group).secondary-container > a.active:not(.button, .chip) > i {
|
|
438
|
-
background-color: var(--secondary) !important;
|
|
439
|
-
color: var(--on-secondary) !important;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
nav.group.tertiary-container > button,
|
|
443
|
-
nav:is(.max, .toolbar, .tabbed, .group).tertiary > :is(button, a).active,
|
|
444
|
-
nav:not(.max, .toolbar, .tabbed, .group).tertiary > a.active:not(.button, .chip) > i {
|
|
445
|
-
background-color: var(--tertiary-container) !important;
|
|
446
|
-
color: var(--on-tertiary-container) !important;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
nav.group.tertiary > button,
|
|
450
|
-
nav:is(.max, .toolbar, .tabbed, .group).tertiary-container > :is(button, a).active,
|
|
451
|
-
nav:not(.max, .toolbar, .tabbed, .group).tertiary-container > a.active:not(.button, .chip) > i {
|
|
452
|
-
background-color: var(--tertiary) !important;
|
|
453
|
-
color: var(--on-tertiary) !important;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
427
|
@media only screen and (max-width: 600px) {
|
|
457
428
|
nav.top,
|
|
458
429
|
nav.bottom {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-weight: 400;
|
|
6
6
|
font-display: swap;
|
|
7
|
-
src: url(../fonts/material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
7
|
+
src: url(../fonts/material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.3/dist/cdn/material-symbols-outlined.woff2) format("woff2");
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* rounded icons */
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
font-style: normal;
|
|
14
14
|
font-weight: 400;
|
|
15
15
|
font-display: swap;
|
|
16
|
-
src: url(../fonts/material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
16
|
+
src: url(../fonts/material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.3/dist/cdn/material-symbols-rounded.woff2) format("woff2");
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/* sharp icons */
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
font-style: normal;
|
|
23
23
|
font-weight: 400;
|
|
24
24
|
font-display: swap;
|
|
25
|
-
src: url(../fonts/material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
25
|
+
src: url(../fonts/material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.3/dist/cdn/material-symbols-sharp.woff2) format("woff2");
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* subset of only required icons */
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
font-style: normal;
|
|
32
32
|
font-weight: 400;
|
|
33
33
|
font-display: swap;
|
|
34
|
-
src: url(../fonts/material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.
|
|
34
|
+
src: url(../fonts/material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.3/dist/cdn/material-symbols-subset.woff2) format("woff2");
|
|
35
35
|
}
|
|
@@ -184,3 +184,39 @@
|
|
|
184
184
|
background-color: var(--surface-variant) !important;
|
|
185
185
|
color: var(--on-surface-variant) !important;
|
|
186
186
|
}
|
|
187
|
+
|
|
188
|
+
nav.primary > button,
|
|
189
|
+
:is(nav, menu).primary > :is(button, a, li).active {
|
|
190
|
+
background-color: var(--primary-container);
|
|
191
|
+
color: var(--on-primary-container);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
nav.primary-container > button,
|
|
195
|
+
:is(nav, menu).primary-container > :is(button, a, li).active {
|
|
196
|
+
background-color: var(--primary);
|
|
197
|
+
color: var(--on-primary);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
nav.secondary > button,
|
|
201
|
+
:is(nav, menu).secondary > :is(button, a, li).active {
|
|
202
|
+
background-color: var(--secondary-container);
|
|
203
|
+
color: var(--on-secondary-container);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
nav.secondary-container > button,
|
|
207
|
+
:is(nav, menu).secondary-container > :is(button, a, li).active {
|
|
208
|
+
background-color: var(--secondary);
|
|
209
|
+
color: var(--on-secondary);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
nav.tertiary > button,
|
|
213
|
+
:is(nav, menu).tertiary > :is(button, a, li).active {
|
|
214
|
+
background-color: var(--tertiary-container);
|
|
215
|
+
color: var(--on-tertiary-container);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
nav.tertiary-container > button,
|
|
219
|
+
:is(nav, menu).tertiary-container > :is(button, a, li).active {
|
|
220
|
+
background-color: var(--tertiary);
|
|
221
|
+
color: var(--on-tertiary);
|
|
222
|
+
}
|