beercss 3.13.1 → 3.13.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 +15 -9
- package/custom-element/index.d.ts +2 -2
- package/dist/cdn/beer.css +11 -8
- package/dist/cdn/beer.custom-element.js +2 -2
- package/dist/cdn/beer.custom-element.min.js +1 -1
- package/dist/cdn/beer.js +2 -2
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +11 -8
- package/dist/cdn/beer.scoped.min.css +1 -1
- package/index.d.ts +2 -2
- package/package.json +2 -2
- package/scoped/index.d.ts +2 -2
- package/src/cdn/beer.ts +1 -1
- package/src/cdn/customElement.js +2 -2
- package/src/cdn/elements/bars.css +1 -1
- package/src/cdn/elements/fields.ts +3 -2
- package/src/cdn/elements/navigations.css +3 -1
- package/src/cdn/helpers/reset.css +2 -1
- package/src/cdn/helpers/theme.ts +1 -1
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/settings/globals.css +1 -1
package/src/cdn/helpers/theme.ts
CHANGED
|
@@ -35,7 +35,7 @@ function lastTheme(): IBeerCssTheme {
|
|
|
35
35
|
return _lastTheme;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export function updateTheme(source?: IBeerCssTheme | any):
|
|
38
|
+
export async function updateTheme(source?: IBeerCssTheme | any): Promise<IBeerCssTheme> {
|
|
39
39
|
const context = globalThis as any;
|
|
40
40
|
const body = document.body;
|
|
41
41
|
if (!source || !context.materialDynamicColors) return lastTheme();
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-weight: 400;
|
|
6
6
|
font-display: block;
|
|
7
|
-
src: url(../fonts/material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.
|
|
7
|
+
src: url(../fonts/material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.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: block;
|
|
16
|
-
src: url(../fonts/material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.
|
|
16
|
+
src: url(../fonts/material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.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: block;
|
|
25
|
-
src: url(../fonts/material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.
|
|
25
|
+
src: url(../fonts/material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.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: block;
|
|
34
|
-
src: url(../fonts/material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.
|
|
34
|
+
src: url(../fonts/material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@3.13.3/dist/cdn/material-symbols-subset.woff2) format("woff2");
|
|
35
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--size: 1rem;
|
|
3
|
-
--font: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Noto Sans, Arial, sans-serif;
|
|
3
|
+
--font: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", "Noto Sans", Arial, sans-serif;
|
|
4
4
|
--font-icon: "Material Symbols Outlined";
|
|
5
5
|
--speed1: 0.1s;
|
|
6
6
|
--speed2: 0.2s;
|