beercss 3.9.7 → 3.10.0
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 +40 -41
- package/custom-element/index.js +7 -0
- package/dist/cdn/beer.css +475 -542
- package/dist/cdn/beer.custom-element.js +38 -0
- package/dist/cdn/beer.custom-element.min.js +1 -0
- package/dist/cdn/beer.js +77 -150
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +4348 -0
- package/dist/cdn/beer.scoped.min.css +1 -0
- package/package.json +5 -3
- package/scoped/index.js +6 -0
- package/src/cdn/beer.css +3 -3
- package/src/cdn/beer.ts +1 -1
- package/src/cdn/customElement.js +38 -0
- package/src/cdn/elements/badges.css +7 -21
- package/src/cdn/elements/buttons.css +7 -16
- package/src/cdn/elements/cards.css +2 -1
- package/src/cdn/elements/chips.css +5 -8
- package/src/cdn/elements/dialogs.css +52 -26
- package/src/cdn/elements/fields.css +25 -36
- package/src/cdn/elements/fields.ts +1 -1
- package/src/cdn/elements/grids.css +7 -7
- package/src/cdn/elements/icons.css +13 -13
- package/src/cdn/elements/layouts.css +17 -30
- package/src/cdn/elements/mainLayouts.css +163 -0
- package/src/cdn/elements/media.css +24 -46
- package/src/cdn/elements/menus.css +27 -27
- package/src/cdn/elements/navigations.css +31 -11
- package/src/cdn/elements/pages.css +6 -7
- package/src/cdn/elements/selections.css +13 -13
- package/src/cdn/elements/sliders.css +12 -13
- package/src/cdn/elements/sliders.ts +4 -4
- package/src/cdn/elements/tables.css +1 -0
- package/src/cdn/elements/tabs.css +1 -0
- package/src/cdn/elements/tooltips.css +10 -11
- package/src/cdn/helpers/blurs.css +7 -7
- package/src/cdn/helpers/forms.css +17 -56
- package/src/cdn/helpers/margins.css +11 -11
- package/src/cdn/helpers/paddings.css +10 -10
- package/src/cdn/helpers/ripples.css +4 -4
- package/src/cdn/helpers/shadows.css +4 -4
- package/src/cdn/helpers/spaces.css +4 -4
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/utils.ts +2 -2
- package/src/cdn/elements/containers.css +0 -176
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
[class*=margin]:not(.left-margin, .right-margin, .top-margin, .bottom-margin, .horizontal-margin, .vertical-margin) {
|
|
2
|
-
margin: var(
|
|
2
|
+
margin: var(--_margin) !important;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[class*=margin] {
|
|
6
|
-
|
|
6
|
+
--_margin: 1rem;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.no-margin {
|
|
10
|
-
|
|
10
|
+
--_margin: 0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.auto-margin {
|
|
14
|
-
|
|
14
|
+
--_margin: auto;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.tiny-margin {
|
|
18
|
-
|
|
18
|
+
--_margin: 0.25rem;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.small-margin {
|
|
22
|
-
|
|
22
|
+
--_margin: 0.5rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.large-margin {
|
|
26
|
-
|
|
26
|
+
--_margin: 1.5rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.left-margin,
|
|
30
30
|
.horizontal-margin {
|
|
31
|
-
margin-inline-start: var(
|
|
31
|
+
margin-inline-start: var(--_margin) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.right-margin,
|
|
35
35
|
.horizontal-margin {
|
|
36
|
-
margin-inline-end: var(
|
|
36
|
+
margin-inline-end: var(--_margin) !important;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.top-margin,
|
|
40
40
|
.vertical-margin {
|
|
41
|
-
margin-block-start: var(
|
|
41
|
+
margin-block-start: var(--_margin) !important;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.bottom-margin,
|
|
45
45
|
.vertical-margin {
|
|
46
|
-
margin-block-end: var(
|
|
46
|
+
margin-block-end: var(--_margin) !important;
|
|
47
47
|
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
[class*=padding]:not(.left-padding, .right-padding, .top-padding, .bottom-padding, .horizontal-padding, .vertical-padding) {
|
|
2
|
-
padding: var(
|
|
2
|
+
padding: var(--_padding) !important;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[class*=padding] {
|
|
6
|
-
|
|
6
|
+
--_padding: 1rem;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.no-padding {
|
|
10
|
-
|
|
10
|
+
--_padding: 0 !important;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.tiny-padding {
|
|
14
|
-
|
|
14
|
+
--_padding: 0.25rem !important;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.small-padding {
|
|
18
|
-
|
|
18
|
+
--_padding: 0.5rem !important;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.large-padding {
|
|
22
|
-
|
|
22
|
+
--_padding: 1.5rem !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.left-padding,
|
|
26
26
|
.horizontal-padding {
|
|
27
|
-
padding-inline-start: var(
|
|
27
|
+
padding-inline-start: var(--_padding) !important;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.right-padding,
|
|
31
31
|
.horizontal-padding {
|
|
32
|
-
padding-inline-end: var(
|
|
32
|
+
padding-inline-end: var(--_padding) !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.top-padding,
|
|
36
36
|
.vertical-padding {
|
|
37
|
-
padding-block-start: var(
|
|
37
|
+
padding-block-start: var(--_padding) !important;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.bottom-padding,
|
|
41
41
|
.vertical-padding {
|
|
42
|
-
padding-block-end: var(
|
|
42
|
+
padding-block-end: var(--_padding) !important;
|
|
43
43
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.ripple {
|
|
2
|
-
|
|
2
|
+
--_duration: 600ms;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.fast-ripple {
|
|
6
|
-
|
|
6
|
+
--_duration: 200ms;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.slow-ripple {
|
|
10
|
-
|
|
10
|
+
--_duration: 1800ms;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ripple-js {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
background: currentColor;
|
|
24
24
|
opacity: 0.3;
|
|
25
25
|
transform: scale(0);
|
|
26
|
-
animation: to-ripple var(
|
|
26
|
+
animation: to-ripple var(--_duration) linear;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@keyframes to-ripple {
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.left-shadow {
|
|
10
|
-
background-image: linear-gradient(to right, black, transparent);
|
|
10
|
+
background-image: linear-gradient(to right, black, transparent) !important;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.right-shadow {
|
|
14
|
-
background-image: linear-gradient(to left, black, transparent);
|
|
14
|
+
background-image: linear-gradient(to left, black, transparent) !important;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.bottom-shadow {
|
|
18
|
-
background-image: linear-gradient(to top, black, transparent);
|
|
18
|
+
background-image: linear-gradient(to top, black, transparent) !important;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.top-shadow {
|
|
22
|
-
background-image: linear-gradient(to bottom, black, transparent);
|
|
22
|
+
background-image: linear-gradient(to bottom, black, transparent) !important;
|
|
23
23
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.tiny-space:not(nav,
|
|
1
|
+
.tiny-space:not(nav, .row, .grid, table, .tooltip, .list, menu) {
|
|
2
2
|
block-size: 0.5rem;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
:is(.space, .small-space):not(nav,
|
|
5
|
+
:is(.space, .small-space):not(nav, .row, .grid, table, .tooltip, .list, menu) {
|
|
6
6
|
block-size: 1rem;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.medium-space:not(nav,
|
|
9
|
+
.medium-space:not(nav, .row, .grid, table, .tooltip, .list, menu) {
|
|
10
10
|
block-size: 2rem;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.large-space:not(nav,
|
|
13
|
+
.large-space:not(nav, .row, .grid, table, .tooltip, .list, menu) {
|
|
14
14
|
block-size: 3rem;
|
|
15
15
|
}
|
|
@@ -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.10.0/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.10.0/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.10.0/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.10.0/dist/cdn/material-symbols-subset.woff2") format("woff2");
|
|
43
43
|
}
|
package/src/cdn/utils.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const _emptyNodeList = [] as unknown as NodeListOf<Element>;
|
|
2
2
|
|
|
3
3
|
export function isTouchable(): boolean {
|
|
4
|
-
return window
|
|
4
|
+
return window?.matchMedia("(pointer: coarse)").matches;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export function isDark(): boolean {
|
|
8
|
-
return window
|
|
8
|
+
return window?.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export async function wait(milliseconds: number) {
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
main.responsive {
|
|
2
|
-
flex: 1;
|
|
3
|
-
padding: 0.5rem;
|
|
4
|
-
overflow-x: hidden;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:is(main, header, footer, section).responsive {
|
|
8
|
-
max-inline-size: 75rem;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:is(main, header, footer, section).responsive.max {
|
|
13
|
-
max-inline-size: 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
*:has(> main.responsive) {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
min-block-size: 100vh;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
*:has(> nav.bottom:not(.s, .m, .l)) {
|
|
23
|
-
padding-block-end: calc(var(--bottom) + 5rem);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
*:has(> nav.top:not(.s, .m, .l)) {
|
|
27
|
-
padding-block-start: calc(var(--top) + 5rem);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
*:has(> nav.left:not(.s, .m, .l)) {
|
|
31
|
-
padding-inline-start: calc(var(--left) + 5rem);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
*:has(> nav.right:not(.s, .m, .l)) {
|
|
35
|
-
padding-inline-end: calc(var(--right) + 5rem);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
*:has(> nav.drawer.left:not(.s, .m, .l)) {
|
|
39
|
-
padding-inline-start: calc(var(--left) + 20rem);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
*:has(> nav.drawer.right:not(.s, .m, .l)) {
|
|
43
|
-
padding-inline-end: calc(var(--right) + 20rem);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
nav.top:not(.s, .m, .l) ~ header.fixed {
|
|
47
|
-
inset-block-start: 5rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
nav.bottom:not(.s, .m, .l) ~ footer.fixed {
|
|
51
|
-
inset-block-end: 5rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:not(main):has(> aside) {
|
|
55
|
-
overflow: auto;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
aside {
|
|
59
|
-
z-index: 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
aside:not(.fixed, .absolute).right {
|
|
63
|
-
float: right;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
aside:not(.fixed, .absolute).left {
|
|
67
|
-
float: left;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media only screen and (max-width: 600px) {
|
|
71
|
-
*:has(> nav.s.bottom) {
|
|
72
|
-
padding-block-end: calc(var(--bottom) + 5rem);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
*:has(> nav.s.top) {
|
|
76
|
-
padding-block-start: calc(var(--top) + 5rem);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
*:has(> nav.s.left) {
|
|
80
|
-
padding-inline-start: calc(var(--left) + 5rem);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
*:has(> nav.s.right) {
|
|
84
|
-
padding-inline-end: calc(var(--right) + 5rem);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
*:has(> nav.s.drawer.left) {
|
|
88
|
-
padding-inline-start: calc(var(--left) + 20rem);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
*:has(> nav.s.drawer.right) {
|
|
92
|
-
padding-inline-end: calc(var(--right) + 20rem);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
nav.s.top ~ header.fixed {
|
|
96
|
-
inset-block-start: 5rem;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
nav.s.bottom ~ footer.fixed {
|
|
100
|
-
inset-block-end: 5rem;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@media only screen and (min-width: 601px) and (max-width: 992px) {
|
|
105
|
-
*:has(> nav.m.bottom) {
|
|
106
|
-
padding-block-end: calc(var(--bottom) + 5rem);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
*:has(> nav.m.top) {
|
|
110
|
-
padding-block-start: calc(var(--top) + 5rem);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
*:has(> nav.m.left) {
|
|
114
|
-
padding-inline-start: calc(var(--left) + 5rem);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
*:has(> nav.m.right) {
|
|
118
|
-
padding-inline-end: calc(var(--right) + 5rem);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
*:has(> nav.m.drawer.left) {
|
|
122
|
-
padding-inline-start: calc(var(--left) + 20rem);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
*:has(> nav.m.drawer.right) {
|
|
126
|
-
padding-inline-end: calc(var(--right) + 20rem);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
nav.m.top ~ header.fixed {
|
|
130
|
-
inset-block-start: 5rem;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
nav.m.bottom ~ footer.fixed {
|
|
134
|
-
inset-block-end: 5rem;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@media only screen and (min-width: 993px) {
|
|
139
|
-
*:has(> nav.l.bottom) {
|
|
140
|
-
padding-block-end: calc(var(--bottom) + 5rem);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
*:has(> nav.l.top) {
|
|
144
|
-
padding-block-start: calc(var(--top) + 5rem);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
*:has(> nav.l.left) {
|
|
148
|
-
padding-inline-start: calc(var(--left) + 5rem);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
*:has(> nav.l.right) {
|
|
152
|
-
padding-inline-end: calc(var(--right) + 5rem);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
*:has(> nav.l.drawer.left) {
|
|
156
|
-
padding-inline-start: calc(var(--left) + 20rem);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
*:has(> nav.l.drawer.right) {
|
|
160
|
-
padding-inline-end: calc(var(--right) + 20rem);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
nav.l.top ~ header.fixed {
|
|
164
|
-
inset-block-start: 5rem;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
nav.l.bottom ~ footer.fixed {
|
|
168
|
-
inset-block-end: 5rem;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@media only screen and (max-width: 600px) {
|
|
173
|
-
main.responsive {
|
|
174
|
-
padding-inline: calc(var(--left) + 0.5rem) calc(var(--right) + 0.5rem);
|
|
175
|
-
}
|
|
176
|
-
}
|