@abreen/tada 1.16.10 → 1.16.11
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/build/custom-fonts.ts
CHANGED
|
@@ -18,8 +18,8 @@ export const CUSTOM_FONT_FAMILY_DEFINITIONS = Object.freeze({
|
|
|
18
18
|
}),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type CustomFontFamilyKey = keyof typeof CUSTOM_FONT_FAMILY_DEFINITIONS;
|
|
22
|
+
type CustomFontFaceKey = keyof typeof CUSTOM_FONT_FACE_DEFINITIONS;
|
|
23
23
|
|
|
24
24
|
const FACE_KEYS = Object.freeze(
|
|
25
25
|
Object.keys(CUSTOM_FONT_FACE_DEFINITIONS) as CustomFontFaceKey[],
|
|
@@ -32,7 +32,7 @@ interface ParsedFont {
|
|
|
32
32
|
availableFeatures: readonly string[];
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
interface CustomFontValidationOptions {
|
|
36
36
|
fontOverrides: FontOverrides | undefined;
|
|
37
37
|
publicDir: string;
|
|
38
38
|
publicFiles: ReadonlySet<string>;
|
package/build/generate-fonts.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type FontPreference = 'sans' | 'serif';
|
|
2
|
+
type ContrastPreference = 'standard' | 'high';
|
|
3
3
|
|
|
4
4
|
const FONT_STORAGE_KEY = 'fontPreference';
|
|
5
5
|
const CONTRAST_STORAGE_KEY = 'contrastPreference';
|
package/src/header/_base.scss
CHANGED
|
@@ -16,6 +16,7 @@ header {
|
|
|
16
16
|
grid-template-columns: 1fr;
|
|
17
17
|
width: 100%;
|
|
18
18
|
background: var(--bg-color-translucent);
|
|
19
|
+
border-bottom: 1px solid var(--bg2-color);
|
|
19
20
|
backdrop-filter: var(--backdrop-filter);
|
|
20
21
|
view-transition-name: site-header;
|
|
21
22
|
|
|
@@ -36,6 +37,25 @@ header {
|
|
|
36
37
|
background: var(--bg-color);
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
body > .container::before {
|
|
41
|
+
position: fixed;
|
|
42
|
+
inset: 0;
|
|
43
|
+
z-index: 999;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
content: '';
|
|
46
|
+
background: var(--bg-color-translucent);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
|
|
49
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
50
|
+
transition: opacity 150ms ease-out;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body:has(header details[open]) > .container::before {
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
39
59
|
header > details {
|
|
40
60
|
min-width: 0;
|
|
41
61
|
}
|