@tenphi/renderer 0.21.1 → 0.21.4
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/dist/client/code-copy.js +1 -1
- package/dist/client/heading-links.js +1 -1
- package/dist/client/page-copy.js +1 -1
- package/dist/component-styles-DstqPFf3.js +21 -0
- package/dist/component-styles-DstqPFf3.js.map +1 -0
- package/dist/components/Banner.styles.js +19 -0
- package/dist/components/Button.styles.d.ts +9 -0
- package/dist/components/Button.styles.js +14 -0
- package/dist/components/Callout.astro +1 -1
- package/dist/components/Callout.styles.js +54 -0
- package/dist/components/Card.astro +4 -4
- package/dist/components/Card.styles.js +64 -0
- package/dist/components/CodeGroup.astro +9 -4
- package/dist/components/CodeGroup.styles.js +27 -0
- package/dist/components/Document.styles.js +230 -0
- package/dist/components/EditLink.astro +1 -1
- package/dist/components/Footer.styles.js +45 -0
- package/dist/components/Header.styles.js +96 -0
- package/dist/components/HeaderFrame.styles.js +20 -0
- package/dist/components/HeaderLinks.astro +2 -2
- package/dist/components/HeaderLinks.styles.js +149 -0
- package/dist/components/Hero.styles.js +129 -0
- package/dist/components/LanguageSelect.styles.js +169 -0
- package/dist/components/LastUpdated.astro +1 -1
- package/dist/components/Logo.astro +4 -8
- package/dist/components/Logo.styles.js +27 -0
- package/dist/components/MainContent.styles.js +38 -0
- package/dist/components/MainPane.styles.js +19 -0
- package/dist/components/MarkdownAlert.styles.js +61 -0
- package/dist/components/MarkdownCodeBlock.styles.js +131 -0
- package/dist/components/MarkdownContent.styles.js +231 -0
- package/dist/components/MarkdownHeading.styles.js +117 -0
- package/dist/components/MarkdownInlineCode.styles.js +19 -0
- package/dist/components/MarkdownTable.styles.js +58 -0
- package/dist/components/Mermaid.styles.js +50 -0
- package/dist/components/MermaidSource.styles.js +21 -0
- package/dist/components/MobileMenuFooter.styles.js +27 -0
- package/dist/components/MobileMenuToggle.styles.js +49 -0
- package/dist/components/MobileNavigationTabs.astro +1 -2
- package/dist/components/MobileNavigationTabs.styles.js +88 -0
- package/dist/components/MobileTableOfContents.styles.js +59 -0
- package/dist/components/PackageVersion.astro +1 -2
- package/dist/components/PackageVersion.styles.js +23 -0
- package/dist/components/PageActions.astro +2 -2
- package/dist/components/PageActions.styles.js +51 -0
- package/dist/components/PageFrame.styles.js +34 -0
- package/dist/components/Pagination.astro +3 -2
- package/dist/components/Pagination.styles.js +126 -0
- package/dist/components/Preview.astro +2 -6
- package/dist/components/Preview.styles.js +78 -0
- package/dist/components/Search.styles.js +132 -0
- package/dist/components/SearchButton.styles.js +68 -0
- package/dist/components/SearchResults.styles.js +200 -0
- package/dist/components/SelectPopover.astro +1 -0
- package/dist/components/Sidebar.styles.js +309 -0
- package/dist/components/SiteLogo.astro +1 -2
- package/dist/components/SiteLogo.styles.js +32 -0
- package/dist/components/SiteTitle.astro +1 -1
- package/dist/components/SkipLink.styles.js +24 -0
- package/dist/components/SocialIcons.styles.js +36 -0
- package/dist/components/Steps.astro +2 -2
- package/dist/components/Steps.styles.js +25 -0
- package/dist/components/SyntaxHighlight.styles.js +87 -0
- package/dist/components/Tab.astro +1 -1
- package/dist/components/Tab.styles.js +30 -0
- package/dist/components/TableOfContents.styles.js +62 -0
- package/dist/components/TableOfContentsLayout.styles.js +38 -0
- package/dist/components/Tabs.astro +1 -1
- package/dist/components/Tabs.styles.js +60 -0
- package/dist/components/ThemeSelect.styles.js +177 -0
- package/dist/components/TopNavigation.styles.js +52 -0
- package/dist/components/VersionSwitcher.astro +2 -2
- package/dist/components/VersionSwitcher.styles.js +45 -0
- package/dist/components/component-styles.test.ts +0 -10
- package/dist/components/component-styles.ts +0 -7
- package/dist/components/inherit-component-parts.d.ts +1 -0
- package/dist/components/inherit-component-parts.js +7 -0
- package/dist/components/select-popover-styles.js +34 -16
- package/dist/components/tasty-states.js +13 -1
- package/dist/define-component-BP4YwMak.js +28 -0
- package/dist/define-component-BP4YwMak.js.map +1 -0
- package/dist/define-component.d.ts +17 -0
- package/dist/define-component.d.ts.map +1 -0
- package/dist/define-component.js +2 -0
- package/dist/eslint-plugin.d.ts +5 -0
- package/dist/eslint-plugin.d.ts.map +1 -1
- package/dist/eslint-plugin.js +26 -3
- package/dist/eslint-plugin.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/dist/localization.d.ts +2 -42
- package/dist/localization.d.ts.map +1 -1
- package/dist/localization.js +1 -87
- package/dist/localization.js.map +1 -1
- package/dist/messages-BqBGDIoP.js +143 -0
- package/dist/messages-BqBGDIoP.js.map +1 -0
- package/dist/messages-ClTf2nFf.d.ts +52 -0
- package/dist/messages-ClTf2nFf.d.ts.map +1 -0
- package/dist/{messages-B_3xUzUb.js → messages-bS8G9Pj8.js} +2 -2
- package/dist/{messages-B_3xUzUb.js.map → messages-bS8G9Pj8.js.map} +1 -1
- package/dist/overrides/Footer.astro +6 -5
- package/dist/overrides/Header.astro +13 -17
- package/dist/overrides/Hero.astro +3 -2
- package/dist/overrides/LanguageSelect.astro +3 -3
- package/dist/overrides/MarkdownContent.astro +7 -1
- package/dist/overrides/MobileMenuFooter.astro +2 -5
- package/dist/overrides/MobileMenuToggle.astro +4 -3
- package/dist/overrides/MobileTableOfContents.astro +2 -2
- package/dist/overrides/PageFrame.astro +9 -11
- package/dist/overrides/Search.astro +13 -9
- package/dist/overrides/Sidebar.astro +4 -1
- package/dist/overrides/SocialIcons.astro +2 -2
- package/dist/overrides/ThemeSelect.astro +9 -3
- package/dist/routes/Page.astro +22 -11
- package/dist/styling.d.ts +5 -10
- package/dist/styling.d.ts.map +1 -1
- package/dist/styling.js +18 -11
- package/dist/styling.js.map +1 -1
- package/dist/tasty-states-_JhxFdK1.js +47 -0
- package/dist/tasty-states-_JhxFdK1.js.map +1 -0
- package/dist/theme/defaults.d.ts.map +1 -1
- package/dist/theme/defaults.js +22 -1
- package/dist/theme/defaults.js.map +1 -1
- package/dist/theme/tasty-config.d.ts +23 -1
- package/dist/theme/tasty-config.d.ts.map +1 -1
- package/dist/theme/tasty-config.js +23 -1
- package/dist/theme/tasty-config.js.map +1 -1
- package/dist/ui.d.ts +2 -6
- package/dist/ui.js +1 -58
- package/package.json +4 -4
- package/dist/components/GlobalStyles.js +0 -1792
- package/dist/components/LayoutComponents.js +0 -872
- package/dist/components/TastyComponents.js +0 -269
- package/dist/components/customize-component.js +0 -8
- package/dist/tasty-states-rTLFy26t.js +0 -57
- package/dist/tasty-states-rTLFy26t.js.map +0 -1
- package/dist/ui.d.ts.map +0 -1
- package/dist/ui.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { configureCookbookStates } from "./tasty-states.js";
|
|
2
|
+
import { defineComponent } from "../define-component.js";
|
|
3
|
+
|
|
4
|
+
configureCookbookStates();
|
|
5
|
+
|
|
6
|
+
const previewElements = {
|
|
7
|
+
Caption: "figcaption",
|
|
8
|
+
Stage: "div",
|
|
9
|
+
Frame: "iframe",
|
|
10
|
+
Code: "details",
|
|
11
|
+
Summary: "summary",
|
|
12
|
+
Pre: "pre",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const PreviewRoot = defineComponent("Preview", {
|
|
16
|
+
as: "figure",
|
|
17
|
+
"data-element": "Preview",
|
|
18
|
+
styles: {
|
|
19
|
+
margin: "0",
|
|
20
|
+
overflow: "clip",
|
|
21
|
+
color: "#text",
|
|
22
|
+
border: true,
|
|
23
|
+
radius: "1cr",
|
|
24
|
+
fill: "#surface",
|
|
25
|
+
shadow: "0 1px 2px #shadow",
|
|
26
|
+
|
|
27
|
+
Caption: {
|
|
28
|
+
padding: "1.5x 2x",
|
|
29
|
+
preset: "small",
|
|
30
|
+
fill: "#surface-2",
|
|
31
|
+
},
|
|
32
|
+
Stage: {
|
|
33
|
+
padding: "2x",
|
|
34
|
+
fill: "#surface",
|
|
35
|
+
},
|
|
36
|
+
Frame: {
|
|
37
|
+
display: "block",
|
|
38
|
+
width: "100%",
|
|
39
|
+
height: "min 10rem",
|
|
40
|
+
border: "0",
|
|
41
|
+
fill: "#surface",
|
|
42
|
+
},
|
|
43
|
+
Code: {
|
|
44
|
+
border: "1bw top #border",
|
|
45
|
+
},
|
|
46
|
+
Summary: {
|
|
47
|
+
padding: "1.5x 2x",
|
|
48
|
+
preset: "small",
|
|
49
|
+
fill: "#surface-2",
|
|
50
|
+
cursor: "pointer",
|
|
51
|
+
transition: "fill $transition",
|
|
52
|
+
},
|
|
53
|
+
HoverSummary: {
|
|
54
|
+
$: "> details > summary",
|
|
55
|
+
fill: {
|
|
56
|
+
"": null,
|
|
57
|
+
"@own(:is(details > summary:hover))": "#surface-2-hover",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
ActiveSummary: {
|
|
61
|
+
$: "> details > summary",
|
|
62
|
+
fill: {
|
|
63
|
+
"": null,
|
|
64
|
+
"@own(:is(details > summary:active))": "#surface-2-pressed",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
Pre: {
|
|
68
|
+
margin: "0",
|
|
69
|
+
padding: "2x",
|
|
70
|
+
overflowX: "auto",
|
|
71
|
+
color: "#syntax-text",
|
|
72
|
+
fill: "#syntax-bg",
|
|
73
|
+
preset: "code",
|
|
74
|
+
radius: "0",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
elements: previewElements,
|
|
78
|
+
});
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import closeIcon from "../icons/close.svg?raw";
|
|
2
|
+
import { svgIconUrl } from "./svg-icon.js";
|
|
3
|
+
import { configureCookbookStates } from "./tasty-states.js";
|
|
4
|
+
import { defineComponent } from "../define-component.js";
|
|
5
|
+
|
|
6
|
+
configureCookbookStates();
|
|
7
|
+
|
|
8
|
+
export const SearchRoot = defineComponent("Search", {
|
|
9
|
+
as: "site-search",
|
|
10
|
+
"data-element": "Search",
|
|
11
|
+
styles: {
|
|
12
|
+
display: "contents",
|
|
13
|
+
"$dialog-transition": "120ms",
|
|
14
|
+
Status: {
|
|
15
|
+
$: "Status",
|
|
16
|
+
margin: "auto",
|
|
17
|
+
textAlign: "center",
|
|
18
|
+
whiteSpace: "pre-line",
|
|
19
|
+
preset: "body",
|
|
20
|
+
},
|
|
21
|
+
Dialog: {
|
|
22
|
+
$: "dialog",
|
|
23
|
+
radius: { "": "$card-radius", "@mobile": "0" },
|
|
24
|
+
inlineSize: { "": "0 90% 40rem", "@mobile": "100%" },
|
|
25
|
+
blockSize: {
|
|
26
|
+
"": "15rem max-content (100% - 8rem)",
|
|
27
|
+
"@mobile": "100% 100% 100%",
|
|
28
|
+
},
|
|
29
|
+
margin: { "": "4rem auto auto", "@mobile": "0" },
|
|
30
|
+
padding: "0",
|
|
31
|
+
color: "#text",
|
|
32
|
+
border: true,
|
|
33
|
+
fill: "#surface",
|
|
34
|
+
shadow: "0 1rem 3rem #shadow",
|
|
35
|
+
opacity: "0",
|
|
36
|
+
scale: { "": "0.98", "@mobile": "1" },
|
|
37
|
+
transition: {
|
|
38
|
+
"": "none",
|
|
39
|
+
"!@reduced-motion":
|
|
40
|
+
"opacity $dialog-transition ease-out, scale $dialog-transition ease-out, display $dialog-transition allow-discrete, overlay $dialog-transition allow-discrete",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
CloseIcon: {
|
|
44
|
+
$: 'button[data-element="Close"]::before',
|
|
45
|
+
content: '""',
|
|
46
|
+
display: "block",
|
|
47
|
+
flexGrow: "0",
|
|
48
|
+
flexShrink: "0",
|
|
49
|
+
flexBasis: "auto",
|
|
50
|
+
inlineSize: "1rem",
|
|
51
|
+
blockSize: "1rem",
|
|
52
|
+
fill: "#current",
|
|
53
|
+
// The imported SVG is encoded at build time and never evaluated in the browser.
|
|
54
|
+
// eslint-disable-next-line tasty/no-runtime-styles-mutation
|
|
55
|
+
mask: `url("${svgIconUrl(closeIcon)}") center / contain no-repeat`,
|
|
56
|
+
},
|
|
57
|
+
OpenDialog: { $: "dialog", display: { "": "", "@own([open])": "flex" } },
|
|
58
|
+
EnteredDialog: {
|
|
59
|
+
$: "dialog",
|
|
60
|
+
opacity: { "": null, "@own([open] & [data-open])": "1" },
|
|
61
|
+
scale: { "": null, "@own([open] & [data-open])": "1" },
|
|
62
|
+
},
|
|
63
|
+
Backdrop: {
|
|
64
|
+
$: "dialog::backdrop",
|
|
65
|
+
fill: { "": "#overlay", "@mobile": "#clear" },
|
|
66
|
+
backdropFilter: { "": "blur(0.25rem)", "@mobile": "none" },
|
|
67
|
+
opacity: "0",
|
|
68
|
+
transition: {
|
|
69
|
+
"": "none",
|
|
70
|
+
"!@reduced-motion & !@mobile":
|
|
71
|
+
"opacity $dialog-transition ease-out, display $dialog-transition allow-discrete, overlay $dialog-transition allow-discrete",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
EnteredBackdrop: {
|
|
75
|
+
// Tasty 3.9.3 appends @own states after pseudo-elements, producing invalid CSS.
|
|
76
|
+
// eslint-disable-next-line tasty/no-state-in-selector
|
|
77
|
+
$: "dialog[open][data-open]::backdrop",
|
|
78
|
+
opacity: { "": "1", "@mobile": "0" },
|
|
79
|
+
},
|
|
80
|
+
Frame: {
|
|
81
|
+
$: ".dialog-frame",
|
|
82
|
+
display: "flex",
|
|
83
|
+
flow: "column",
|
|
84
|
+
flexGrow: "1",
|
|
85
|
+
blockSize: "min 0",
|
|
86
|
+
gap: "($gap * 2)",
|
|
87
|
+
padding: { "": "($gap * 3)", "@mobile": "($gap * 2) ($gap * 2) 0" },
|
|
88
|
+
overflow: "hidden",
|
|
89
|
+
},
|
|
90
|
+
Container: {
|
|
91
|
+
$: ".search-container",
|
|
92
|
+
display: "flex",
|
|
93
|
+
flow: "column",
|
|
94
|
+
flexGrow: "1",
|
|
95
|
+
inlineSize: "100%",
|
|
96
|
+
blockSize: "min 0",
|
|
97
|
+
},
|
|
98
|
+
Close: {
|
|
99
|
+
$: 'button[data-element="Close"]',
|
|
100
|
+
display: { "": "none", "@mobile": "grid" },
|
|
101
|
+
placeItems: "center",
|
|
102
|
+
alignSelf: "flex-end",
|
|
103
|
+
flexShrink: "0",
|
|
104
|
+
inlineSize: "$docs-menu-button-size",
|
|
105
|
+
blockSize: "$docs-menu-button-size $docs-menu-button-size initial",
|
|
106
|
+
padding: "0",
|
|
107
|
+
color: "#text-soft",
|
|
108
|
+
border: "0",
|
|
109
|
+
radius: "$header-control-radius",
|
|
110
|
+
fill: "#clear",
|
|
111
|
+
shadow: "none",
|
|
112
|
+
cursor: "pointer",
|
|
113
|
+
transition: "color $transition, background-color $transition",
|
|
114
|
+
},
|
|
115
|
+
HoverClose: {
|
|
116
|
+
$: 'button[data-element="Close"]',
|
|
117
|
+
color: { "": null, "@own(:hover)": "#text" },
|
|
118
|
+
fill: {
|
|
119
|
+
"": null,
|
|
120
|
+
"@own(:hover)": "#surface-2-hover",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
ActiveClose: {
|
|
124
|
+
$: 'button[data-element="Close"]',
|
|
125
|
+
color: { "": null, "@own(:active)": "#text" },
|
|
126
|
+
fill: {
|
|
127
|
+
"": null,
|
|
128
|
+
"@own(:active)": "#surface-2-pressed",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import searchIcon from "../icons/search.svg?raw";
|
|
2
|
+
import { svgIconUrl } from "./svg-icon.js";
|
|
3
|
+
import { configureCookbookStates } from "./tasty-states.js";
|
|
4
|
+
import { extendComponent } from "../define-component.js";
|
|
5
|
+
import { Button } from "./Button.styles.js";
|
|
6
|
+
|
|
7
|
+
configureCookbookStates();
|
|
8
|
+
|
|
9
|
+
export const SearchButtonRoot = extendComponent("SearchButton", Button, {
|
|
10
|
+
"data-element": "SearchButton",
|
|
11
|
+
styles: {
|
|
12
|
+
color: { ":hover": "#text", ":active": "#text" },
|
|
13
|
+
justifyContent: { "": "flex-start", "@mobile": "center" },
|
|
14
|
+
inlineSize: {
|
|
15
|
+
"": "initial 100% 22rem",
|
|
16
|
+
"@mobile": "initial $docs-menu-button-size 22rem",
|
|
17
|
+
},
|
|
18
|
+
inlineMargin: {
|
|
19
|
+
"": "0 start",
|
|
20
|
+
"@media(w >= 80rem)": "min(5rem, max(0px, calc(100% - 22rem))) start",
|
|
21
|
+
},
|
|
22
|
+
blockSize: {
|
|
23
|
+
"": "0 $control-height initial",
|
|
24
|
+
"@mobile": "0 $docs-menu-button-size initial",
|
|
25
|
+
},
|
|
26
|
+
padding: { "": "0 $gap 0 ($gap * 1.5)", "@mobile": "0" },
|
|
27
|
+
border: { "": true, "@mobile": "0" },
|
|
28
|
+
radius: "$header-control-radius",
|
|
29
|
+
fill: {
|
|
30
|
+
"": "#surface",
|
|
31
|
+
"@mobile": "#clear",
|
|
32
|
+
":hover": "#surface-2-hover",
|
|
33
|
+
":active": "#surface-2-pressed",
|
|
34
|
+
},
|
|
35
|
+
preset: "small",
|
|
36
|
+
shadow: "none",
|
|
37
|
+
transition: "color $transition, fill $transition",
|
|
38
|
+
Label: { $: "> span", hide: { "": false, "@mobile": true } },
|
|
39
|
+
PendingShortcut: {
|
|
40
|
+
$: "> kbd",
|
|
41
|
+
visibility: { "": null, "@own([data-pending])": "hidden" },
|
|
42
|
+
},
|
|
43
|
+
Shortcut: {
|
|
44
|
+
$: "> kbd",
|
|
45
|
+
display: "flex",
|
|
46
|
+
hide: { "": false, "@narrow-layout": true },
|
|
47
|
+
gap: "0.25em",
|
|
48
|
+
inlineMargin: "auto start",
|
|
49
|
+
inlinePadding: "0.375rem",
|
|
50
|
+
fill: "#surface-3",
|
|
51
|
+
preset: "small",
|
|
52
|
+
radius: "($radius * 0.75)",
|
|
53
|
+
},
|
|
54
|
+
NativeIcon: { $: "> svg", hide: true },
|
|
55
|
+
Icon: {
|
|
56
|
+
$: "&::before",
|
|
57
|
+
content: '""',
|
|
58
|
+
display: "block",
|
|
59
|
+
flexShrink: "0",
|
|
60
|
+
inlineSize: { "": "1rem", "@mobile": "1.25rem" },
|
|
61
|
+
blockSize: { "": "1rem", "@mobile": "1.25rem" },
|
|
62
|
+
fill: "#current",
|
|
63
|
+
// The imported SVG is encoded at build time and never evaluated in the browser.
|
|
64
|
+
// eslint-disable-next-line tasty/no-runtime-styles-mutation
|
|
65
|
+
mask: `url("${svgIconUrl(searchIcon)}") center / contain no-repeat`,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
});
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import closeIcon from "../icons/close.svg?raw";
|
|
2
|
+
import searchIcon from "../icons/search.svg?raw";
|
|
3
|
+
import { svgIconUrl } from "./svg-icon.js";
|
|
4
|
+
import { configureCookbookStates } from "./tasty-states.js";
|
|
5
|
+
import { defineComponent } from "../define-component.js";
|
|
6
|
+
|
|
7
|
+
configureCookbookStates();
|
|
8
|
+
|
|
9
|
+
export const SearchResultsRoot = defineComponent("SearchResults", {
|
|
10
|
+
as: "div",
|
|
11
|
+
"data-element": "SearchResults",
|
|
12
|
+
styles: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flow: "column",
|
|
15
|
+
flexGrow: "1",
|
|
16
|
+
blockSize: "min 0",
|
|
17
|
+
"$pagefind-ui-primary": "#accent-text",
|
|
18
|
+
"$pagefind-ui-text": "#text-soft",
|
|
19
|
+
"$pagefind-ui-background": "#surface",
|
|
20
|
+
"$pagefind-ui-border": "#border",
|
|
21
|
+
"$pagefind-ui-border-width": "$border-width",
|
|
22
|
+
"$pagefind-ui-tag": "#surface-3",
|
|
23
|
+
preset: "body",
|
|
24
|
+
UI: {
|
|
25
|
+
$: ".pagefind-ui, *",
|
|
26
|
+
display: {
|
|
27
|
+
"": "",
|
|
28
|
+
"@own(:is(.pagefind-ui)) | @own(:is([data-search-results]))": "flex",
|
|
29
|
+
},
|
|
30
|
+
flow: {
|
|
31
|
+
"": null,
|
|
32
|
+
"@own(:is(.pagefind-ui)) | @own(:is([data-search-results]))": "column",
|
|
33
|
+
},
|
|
34
|
+
flexGrow: {
|
|
35
|
+
"": null,
|
|
36
|
+
"@own(:is(.pagefind-ui)) | @own(:is([data-search-results]))": "1",
|
|
37
|
+
},
|
|
38
|
+
blockSize: {
|
|
39
|
+
"": null,
|
|
40
|
+
"@own(:is(.pagefind-ui)) | @own(:is([data-search-results]))": "min 0",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
Form: {
|
|
44
|
+
$: ".pagefind-ui__form",
|
|
45
|
+
position: "relative",
|
|
46
|
+
display: "flex",
|
|
47
|
+
flow: "column",
|
|
48
|
+
flexGrow: "1",
|
|
49
|
+
blockSize: "min 0",
|
|
50
|
+
},
|
|
51
|
+
Field: {
|
|
52
|
+
$: ".cookbook-search-field",
|
|
53
|
+
position: "relative",
|
|
54
|
+
flexShrink: "0",
|
|
55
|
+
},
|
|
56
|
+
EngineControls: {
|
|
57
|
+
$: ".pagefind-ui__search-input, .pagefind-ui__search-clear",
|
|
58
|
+
display: "none",
|
|
59
|
+
},
|
|
60
|
+
Drawer: {
|
|
61
|
+
$: ".pagefind-ui__drawer",
|
|
62
|
+
display: "flex",
|
|
63
|
+
flow: "column",
|
|
64
|
+
flexGrow: "1",
|
|
65
|
+
blockSize: "min 0",
|
|
66
|
+
},
|
|
67
|
+
Input: {
|
|
68
|
+
$: ".cookbook-search-input",
|
|
69
|
+
flexShrink: "0",
|
|
70
|
+
inlineSize: "100%",
|
|
71
|
+
blockSize: "min 3rem",
|
|
72
|
+
inlinePadding: "2.75rem",
|
|
73
|
+
color: "#text",
|
|
74
|
+
border: "$border-width solid #border",
|
|
75
|
+
radius: "$radius",
|
|
76
|
+
fill: "#surface",
|
|
77
|
+
shadow: "none",
|
|
78
|
+
},
|
|
79
|
+
Clear: {
|
|
80
|
+
$: ".cookbook-search-clear",
|
|
81
|
+
position: "absolute",
|
|
82
|
+
blockInset: "0 start",
|
|
83
|
+
inlineInset: "0 end",
|
|
84
|
+
inlineSize: "3rem",
|
|
85
|
+
blockSize: "3rem",
|
|
86
|
+
padding: "0",
|
|
87
|
+
color: "#text-soft",
|
|
88
|
+
border: "0",
|
|
89
|
+
fill: "#clear",
|
|
90
|
+
display: "flex",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "center",
|
|
93
|
+
cursor: "pointer",
|
|
94
|
+
},
|
|
95
|
+
Results: {
|
|
96
|
+
$: ".pagefind-ui__results-area",
|
|
97
|
+
flexGrow: "1",
|
|
98
|
+
blockSize: "min 0",
|
|
99
|
+
overflowY: "auto",
|
|
100
|
+
blockMargin: { "": "($gap * 3) start", "@mobile": "($gap * 2) start" },
|
|
101
|
+
blockBorder: "$border-width solid #border start",
|
|
102
|
+
inlineSize: { "@mobile": "(100% + ($gap * 4))" },
|
|
103
|
+
inlineMargin: { "@mobile": "(-1 * $gap * 2)" },
|
|
104
|
+
inlinePadding: { "@mobile": "($gap * 2)" },
|
|
105
|
+
blockPadding: { "@mobile": "($gap * 2) end" },
|
|
106
|
+
},
|
|
107
|
+
Result: {
|
|
108
|
+
$: ".pagefind-ui__result",
|
|
109
|
+
blockPadding: "($gap * 2)",
|
|
110
|
+
blockBorder: "$border-width solid #border start",
|
|
111
|
+
},
|
|
112
|
+
ResultLink: {
|
|
113
|
+
$: ".pagefind-ui__result-link",
|
|
114
|
+
color: "#text",
|
|
115
|
+
preset: "strong",
|
|
116
|
+
},
|
|
117
|
+
Message: {
|
|
118
|
+
$: ".pagefind-ui__message",
|
|
119
|
+
color: "#text-soft",
|
|
120
|
+
preset: "small",
|
|
121
|
+
},
|
|
122
|
+
List: {
|
|
123
|
+
$: ".pagefind-ui__results",
|
|
124
|
+
margin: "0",
|
|
125
|
+
padding: "0",
|
|
126
|
+
listStyle: "none",
|
|
127
|
+
},
|
|
128
|
+
Title: {
|
|
129
|
+
$: ".pagefind-ui__result-title",
|
|
130
|
+
margin: "0",
|
|
131
|
+
preset: "body / strong",
|
|
132
|
+
},
|
|
133
|
+
Excerpt: {
|
|
134
|
+
$: ".pagefind-ui__result-excerpt",
|
|
135
|
+
margin: "$gap 0 0",
|
|
136
|
+
color: "#text-soft",
|
|
137
|
+
preset: "small",
|
|
138
|
+
},
|
|
139
|
+
NestedResult: {
|
|
140
|
+
$: ".pagefind-ui__result-nested",
|
|
141
|
+
margin: "2x 0 0",
|
|
142
|
+
inlinePadding: "2x start",
|
|
143
|
+
inlineBorder: "1bw solid #border start",
|
|
144
|
+
},
|
|
145
|
+
Match: {
|
|
146
|
+
$: "mark",
|
|
147
|
+
color: "#accent-surface-text",
|
|
148
|
+
fill: "#accent-surface",
|
|
149
|
+
preset: "strong",
|
|
150
|
+
radius: "0.2em",
|
|
151
|
+
},
|
|
152
|
+
More: {
|
|
153
|
+
$: ".pagefind-ui__button",
|
|
154
|
+
display: { "@mobile": "block" },
|
|
155
|
+
inlineSize: { "@mobile": "max-content" },
|
|
156
|
+
inlineMargin: { "@mobile": "auto start" },
|
|
157
|
+
padding: "1x 2x",
|
|
158
|
+
border: "$border-width solid #border",
|
|
159
|
+
radius: "$radius",
|
|
160
|
+
color: "#text",
|
|
161
|
+
fill: "#surface-2",
|
|
162
|
+
preset: "navigation",
|
|
163
|
+
},
|
|
164
|
+
HoverMore: {
|
|
165
|
+
$: ".pagefind-ui__button",
|
|
166
|
+
fill: { "": null, "@own(:hover)": "#surface-2-hover" },
|
|
167
|
+
},
|
|
168
|
+
SearchIcon: {
|
|
169
|
+
$: ".cookbook-search-field::before",
|
|
170
|
+
content: '""',
|
|
171
|
+
position: "absolute",
|
|
172
|
+
zIndex: "1",
|
|
173
|
+
blockInset: "1rem start",
|
|
174
|
+
inlineInset: "1rem start",
|
|
175
|
+
display: "block",
|
|
176
|
+
inlineSize: "1rem",
|
|
177
|
+
blockSize: "1rem",
|
|
178
|
+
fill: "#text-soft",
|
|
179
|
+
// The imported SVG is encoded at build time and never evaluated in the browser.
|
|
180
|
+
// eslint-disable-next-line tasty/no-runtime-styles-mutation
|
|
181
|
+
mask: `url("${svgIconUrl(searchIcon)}") center / contain no-repeat`,
|
|
182
|
+
pointerEvents: "none",
|
|
183
|
+
},
|
|
184
|
+
ClearIcon: {
|
|
185
|
+
$: ".cookbook-search-clear::before",
|
|
186
|
+
content: '""',
|
|
187
|
+
display: "block",
|
|
188
|
+
inlineSize: "1rem",
|
|
189
|
+
blockSize: "1rem",
|
|
190
|
+
fill: "#current",
|
|
191
|
+
// The imported SVG is encoded at build time and never evaluated in the browser.
|
|
192
|
+
// eslint-disable-next-line tasty/no-runtime-styles-mutation
|
|
193
|
+
mask: `url("${svgIconUrl(closeIcon)}") center / 1rem no-repeat`,
|
|
194
|
+
},
|
|
195
|
+
SuppressedClear: {
|
|
196
|
+
$: ".cookbook-search-clear",
|
|
197
|
+
display: { "": "", "@own([hidden])": "none" },
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
});
|