@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
|
@@ -1,872 +0,0 @@
|
|
|
1
|
-
import { tasty } from "@tenphi/tasty";
|
|
2
|
-
import { customizeComponent } from "./customize-component.js";
|
|
3
|
-
import { selectPopoverStyles } from "./select-popover-styles.js";
|
|
4
|
-
import { configureCookbookStates } from "./tasty-states.js";
|
|
5
|
-
|
|
6
|
-
configureCookbookStates();
|
|
7
|
-
|
|
8
|
-
export const PageFrameRoot = customizeComponent(
|
|
9
|
-
"PageFrame",
|
|
10
|
-
tasty({
|
|
11
|
-
as: "div",
|
|
12
|
-
styles: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
flow: "column",
|
|
15
|
-
blockSize: "min 100vh",
|
|
16
|
-
MainFrame: {
|
|
17
|
-
$: "> .main-frame",
|
|
18
|
-
inlineSize: { "": "0 100%", "@desktop": "min(100%, $layout-width)" },
|
|
19
|
-
inlineMargin: "auto",
|
|
20
|
-
blockPadding: "$docs-nav-height start",
|
|
21
|
-
inlinePadding: "0 start",
|
|
22
|
-
},
|
|
23
|
-
SidebarFrame: {
|
|
24
|
-
$: "&[data-has-sidebar] > .main-frame",
|
|
25
|
-
inlinePadding: { "": "$sidebar-width start", "@mobile": "0 start" },
|
|
26
|
-
},
|
|
27
|
-
Columns: {
|
|
28
|
-
$: "> .main-frame > div",
|
|
29
|
-
display: { "": "flex", "@narrow-layout": "block" },
|
|
30
|
-
inlineSize: "min 0",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
}),
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
export const LogoRoot = customizeComponent(
|
|
37
|
-
"Logo",
|
|
38
|
-
tasty({
|
|
39
|
-
as: "span",
|
|
40
|
-
styles: {
|
|
41
|
-
display: "inline-grid",
|
|
42
|
-
flexGrow: "0",
|
|
43
|
-
flexShrink: "0",
|
|
44
|
-
flexBasis: "auto",
|
|
45
|
-
inlineSize: "4rem",
|
|
46
|
-
blockSize: "4rem",
|
|
47
|
-
color: "#logo-surface",
|
|
48
|
-
Svg: {
|
|
49
|
-
$: "> svg",
|
|
50
|
-
display: "block",
|
|
51
|
-
inlineSize: "100%",
|
|
52
|
-
blockSize: "100%",
|
|
53
|
-
},
|
|
54
|
-
Mark: {
|
|
55
|
-
$: "> svg > .td-logo__mark",
|
|
56
|
-
color: "#logo-mark",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
}),
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export const SiteLogoRoot = customizeComponent(
|
|
63
|
-
"SiteLogo",
|
|
64
|
-
tasty({
|
|
65
|
-
as: "span",
|
|
66
|
-
styles: {
|
|
67
|
-
display: "inline-flex",
|
|
68
|
-
alignItems: "center",
|
|
69
|
-
justifyContent: "center",
|
|
70
|
-
flexShrink: 0,
|
|
71
|
-
inlineSize: { "": "auto max 12rem", "@mobile": "auto max 30vw" },
|
|
72
|
-
blockSize: { "": "2rem", "@mobile": "1.75rem" },
|
|
73
|
-
Image: {
|
|
74
|
-
$: "> img",
|
|
75
|
-
display: "block",
|
|
76
|
-
inlineSize: "auto max 100%",
|
|
77
|
-
blockSize: "100%",
|
|
78
|
-
objectFit: "contain",
|
|
79
|
-
},
|
|
80
|
-
Light: {
|
|
81
|
-
$: "> .td-site-logo__light",
|
|
82
|
-
hide: {
|
|
83
|
-
"": false,
|
|
84
|
-
"@parent(theme=dark)": true,
|
|
85
|
-
"!@parent(theme) & @media(prefers-color-scheme: dark)": true,
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
Dark: {
|
|
89
|
-
$: "> .td-site-logo__dark",
|
|
90
|
-
hide: {
|
|
91
|
-
"": true,
|
|
92
|
-
"@parent(theme=dark)": false,
|
|
93
|
-
"!@parent(theme) & @media(prefers-color-scheme: dark)": false,
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
}),
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
export const PackageVersionRoot = customizeComponent(
|
|
101
|
-
"PackageVersion",
|
|
102
|
-
tasty({
|
|
103
|
-
as: "span",
|
|
104
|
-
styles: {
|
|
105
|
-
display: "inline-flex",
|
|
106
|
-
hide: { "": false, "@compact": true },
|
|
107
|
-
alignItems: "center",
|
|
108
|
-
flexShrink: "0",
|
|
109
|
-
blockSize: "min 1.5rem",
|
|
110
|
-
inlinePadding: "($gap * 0.75)",
|
|
111
|
-
color: "#text-soft",
|
|
112
|
-
fill: "#surface-2",
|
|
113
|
-
border: true,
|
|
114
|
-
radius: "999px",
|
|
115
|
-
preset: "small",
|
|
116
|
-
whiteSpace: "nowrap",
|
|
117
|
-
},
|
|
118
|
-
}),
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
const versionSelectStyles = selectPopoverStyles({
|
|
122
|
-
option: "Link",
|
|
123
|
-
hoverOption: "HoverLink",
|
|
124
|
-
currentOption: "CurrentLink",
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
export const VersionSwitcherRoot = customizeComponent(
|
|
128
|
-
"VersionSwitcher",
|
|
129
|
-
tasty({
|
|
130
|
-
as: "div",
|
|
131
|
-
styles: {
|
|
132
|
-
...versionSelectStyles,
|
|
133
|
-
display: "inline-flex",
|
|
134
|
-
flexShrink: "0",
|
|
135
|
-
Trigger: {
|
|
136
|
-
...versionSelectStyles.Trigger,
|
|
137
|
-
blockSize: "min $control-height",
|
|
138
|
-
inlinePadding: "$gap",
|
|
139
|
-
fill: "#surface-2",
|
|
140
|
-
border: true,
|
|
141
|
-
preset: "small / strong",
|
|
142
|
-
anchorName: "--version-trigger",
|
|
143
|
-
},
|
|
144
|
-
Panel: {
|
|
145
|
-
...versionSelectStyles.Panel,
|
|
146
|
-
positionAnchor: "--version-trigger",
|
|
147
|
-
blockInset: "(anchor(bottom) + $gap) start, auto end",
|
|
148
|
-
inlineInset: {
|
|
149
|
-
"": "anchor(left) start, auto end",
|
|
150
|
-
"@mobile": "auto start, anchor(right) end",
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
}),
|
|
155
|
-
);
|
|
156
|
-
|
|
157
|
-
export const TopNavigationRoot = customizeComponent(
|
|
158
|
-
"TopNavigation",
|
|
159
|
-
tasty({
|
|
160
|
-
as: "nav",
|
|
161
|
-
styles: {
|
|
162
|
-
display: "flex",
|
|
163
|
-
hide: { "": false, "@mobile": true },
|
|
164
|
-
alignItems: "stretch",
|
|
165
|
-
gap: "clamp(1.25rem, 2.5vw, 2.5rem)",
|
|
166
|
-
inlineSize: "100%",
|
|
167
|
-
blockSize: "min 2.75rem",
|
|
168
|
-
blockBorder: "1bw solid #border start",
|
|
169
|
-
overflowX: "auto",
|
|
170
|
-
scrollbar: "none",
|
|
171
|
-
|
|
172
|
-
Scrollbar: { $: "&::-webkit-scrollbar", hide: true },
|
|
173
|
-
Link: {
|
|
174
|
-
$: "a",
|
|
175
|
-
position: "relative",
|
|
176
|
-
display: "inline-flex",
|
|
177
|
-
alignItems: "center",
|
|
178
|
-
flexGrow: "0",
|
|
179
|
-
flexShrink: "0",
|
|
180
|
-
flexBasis: "auto",
|
|
181
|
-
blockPadding: "($gap * 1.25) start, $gap end",
|
|
182
|
-
color: "#text-soft",
|
|
183
|
-
preset: "navigation",
|
|
184
|
-
textDecoration: "none",
|
|
185
|
-
whiteSpace: "nowrap",
|
|
186
|
-
},
|
|
187
|
-
HoverLink: { $: "a:hover", color: "#text" },
|
|
188
|
-
CurrentLink: { $: 'a[aria-current="page"]', color: "#accent-text" },
|
|
189
|
-
ActiveIndicator: {
|
|
190
|
-
$: 'a[aria-current="page"]::after',
|
|
191
|
-
content: '""',
|
|
192
|
-
position: "absolute",
|
|
193
|
-
inset: "auto 0 0",
|
|
194
|
-
blockSize: "2px",
|
|
195
|
-
radius: "999px",
|
|
196
|
-
fill: "#accent-surface",
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
}),
|
|
200
|
-
);
|
|
201
|
-
|
|
202
|
-
export const HeaderRoot = customizeComponent(
|
|
203
|
-
"Header",
|
|
204
|
-
tasty({
|
|
205
|
-
as: "div",
|
|
206
|
-
styles: {
|
|
207
|
-
display: "flex",
|
|
208
|
-
flow: "column",
|
|
209
|
-
inlineSize: "0 100% ($layout-width - ($docs-sidebar-pad-x * 2))",
|
|
210
|
-
blockSize: "100%",
|
|
211
|
-
inlineMargin: "auto",
|
|
212
|
-
|
|
213
|
-
Primary: {
|
|
214
|
-
$: ".td-header__primary",
|
|
215
|
-
display: "flex",
|
|
216
|
-
alignItems: "center",
|
|
217
|
-
gap: { "": "clamp(0.5rem, 1.5vw, 1.5rem)", "@mobile": "0.5rem" },
|
|
218
|
-
blockSize: { "": "4.5rem", "@mobile": "3.5rem" },
|
|
219
|
-
flexShrink: "0",
|
|
220
|
-
},
|
|
221
|
-
TitleAndSearch: {
|
|
222
|
-
$: ".td-header__title, .td-header__search",
|
|
223
|
-
display: "flex",
|
|
224
|
-
alignItems: "center",
|
|
225
|
-
inlineSize: "min 0",
|
|
226
|
-
},
|
|
227
|
-
Title: {
|
|
228
|
-
$: ".td-header__title",
|
|
229
|
-
display: "flex",
|
|
230
|
-
flow: "row",
|
|
231
|
-
gap: "$gap",
|
|
232
|
-
overflow: "hidden",
|
|
233
|
-
flexShrink: "1",
|
|
234
|
-
inlineSize: "min 0",
|
|
235
|
-
inlineMargin: { "": "0 end", "@mobile": "auto end" },
|
|
236
|
-
},
|
|
237
|
-
LogoLink: {
|
|
238
|
-
$: ".td-header__logo-link",
|
|
239
|
-
display: "inline-grid",
|
|
240
|
-
flexShrink: "0",
|
|
241
|
-
placeItems: "center",
|
|
242
|
-
color: "#text",
|
|
243
|
-
textDecoration: "none",
|
|
244
|
-
},
|
|
245
|
-
Logo: {
|
|
246
|
-
$: '.td-header__logo[data-tasty-anatomy="Logo"]',
|
|
247
|
-
inlineSize: {
|
|
248
|
-
"": "2rem",
|
|
249
|
-
"@mobile": "1.75rem",
|
|
250
|
-
},
|
|
251
|
-
blockSize: {
|
|
252
|
-
"": "2rem",
|
|
253
|
-
"@mobile": "1.75rem",
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
SiteTitle: {
|
|
257
|
-
$: ".site-title",
|
|
258
|
-
inlineSize: "min 0",
|
|
259
|
-
overflow: "hidden",
|
|
260
|
-
color: "#text",
|
|
261
|
-
preset: { "": "h4", "@mobile": "h5" },
|
|
262
|
-
textDecoration: "none",
|
|
263
|
-
whiteSpace: "nowrap",
|
|
264
|
-
textOverflow: "ellipsis",
|
|
265
|
-
},
|
|
266
|
-
Search: {
|
|
267
|
-
$: ".td-header__search",
|
|
268
|
-
flexGrow: { "": "1", "@mobile": "0" },
|
|
269
|
-
flexShrink: { "": "1", "@mobile": "0" },
|
|
270
|
-
inlineSize: { "": "min 8rem", "@mobile": "$docs-menu-button-size" },
|
|
271
|
-
inlineMargin: { "": "auto", "@mobile": "0" },
|
|
272
|
-
},
|
|
273
|
-
SearchElement: {
|
|
274
|
-
$: ".td-header__search site-search",
|
|
275
|
-
inlineSize: "0 100% 28rem",
|
|
276
|
-
inlineMargin: "auto",
|
|
277
|
-
},
|
|
278
|
-
Tools: {
|
|
279
|
-
$: ".td-header__tools",
|
|
280
|
-
display: "flex",
|
|
281
|
-
hide: { "": false, "@mobile": true },
|
|
282
|
-
flow: "row",
|
|
283
|
-
alignItems: "center",
|
|
284
|
-
justifyContent: "flex-end",
|
|
285
|
-
gap: "($gap * 0.5)",
|
|
286
|
-
},
|
|
287
|
-
ToolItem: {
|
|
288
|
-
$: ".td-header__tools > *",
|
|
289
|
-
margin: "0",
|
|
290
|
-
},
|
|
291
|
-
Social: {
|
|
292
|
-
$: ".td-header__social",
|
|
293
|
-
display: "flex",
|
|
294
|
-
alignItems: "center",
|
|
295
|
-
},
|
|
296
|
-
MobileTheme: {
|
|
297
|
-
$: ".td-header__mobile-theme",
|
|
298
|
-
display: "grid",
|
|
299
|
-
hide: { "": true, "@mobile": false },
|
|
300
|
-
flexShrink: "0",
|
|
301
|
-
order: "1",
|
|
302
|
-
inlineSize: "$docs-menu-button-size",
|
|
303
|
-
blockSize: "$docs-menu-button-size",
|
|
304
|
-
},
|
|
305
|
-
MobileLanguage: {
|
|
306
|
-
$: ".td-header__mobile-language",
|
|
307
|
-
display: "grid",
|
|
308
|
-
hide: { "": true, "@mobile": false },
|
|
309
|
-
flexShrink: "0",
|
|
310
|
-
order: "1",
|
|
311
|
-
inlineSize: "$docs-menu-button-size",
|
|
312
|
-
blockSize: "$docs-menu-button-size",
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
}),
|
|
316
|
-
);
|
|
317
|
-
|
|
318
|
-
export const ThemeSelectRoot = customizeComponent(
|
|
319
|
-
"ThemeSelect",
|
|
320
|
-
tasty({
|
|
321
|
-
as: "cookbook-appearance-menu",
|
|
322
|
-
styles: {
|
|
323
|
-
display: "flex",
|
|
324
|
-
flexShrink: "0",
|
|
325
|
-
"$popover-transition": "120ms",
|
|
326
|
-
Trigger: {
|
|
327
|
-
$: "> button",
|
|
328
|
-
display: "grid",
|
|
329
|
-
placeItems: "center",
|
|
330
|
-
inlineSize: {
|
|
331
|
-
"": "$control-height",
|
|
332
|
-
"@mobile": "$docs-menu-button-size",
|
|
333
|
-
},
|
|
334
|
-
blockSize: {
|
|
335
|
-
"": "$control-height",
|
|
336
|
-
"@mobile": "$docs-menu-button-size",
|
|
337
|
-
},
|
|
338
|
-
padding: "0",
|
|
339
|
-
color: "#text-soft",
|
|
340
|
-
fill: "#clear",
|
|
341
|
-
border: "0",
|
|
342
|
-
radius: "$header-control-radius",
|
|
343
|
-
transition: "color $transition, fill $transition",
|
|
344
|
-
},
|
|
345
|
-
HoverTrigger: {
|
|
346
|
-
$: "> button:hover, &:has([popover]:popover-open) > button",
|
|
347
|
-
color: "#text",
|
|
348
|
-
fill: "#surface-2-hover",
|
|
349
|
-
},
|
|
350
|
-
ActiveTrigger: {
|
|
351
|
-
$: "> button:active",
|
|
352
|
-
color: "#text",
|
|
353
|
-
fill: "#surface-2-pressed",
|
|
354
|
-
},
|
|
355
|
-
Icon: {
|
|
356
|
-
$: "> button svg",
|
|
357
|
-
display: "block",
|
|
358
|
-
inlineSize: { "": "1.25rem", "@mobile": "1.125rem" },
|
|
359
|
-
blockSize: { "": "1.25rem", "@mobile": "1.125rem" },
|
|
360
|
-
},
|
|
361
|
-
Panel: {
|
|
362
|
-
$: "[popover]",
|
|
363
|
-
position: "fixed",
|
|
364
|
-
inset: "auto",
|
|
365
|
-
blockInset: { "": "4rem start", "@mobile": "3.5rem start" },
|
|
366
|
-
inlineInset:
|
|
367
|
-
"max($docs-nav-pad-x, ((100vw - $layout-width) / 2 + $docs-sidebar-pad-x)) end",
|
|
368
|
-
inlineSize: "min(15rem, calc(100vw - 2 * $docs-nav-pad-x))",
|
|
369
|
-
blockSize: "max (100dvh - $docs-nav-height - $gap)",
|
|
370
|
-
overflowY: "auto",
|
|
371
|
-
margin: "0",
|
|
372
|
-
padding: "$gap",
|
|
373
|
-
color: "#text",
|
|
374
|
-
fill: "#surface-2",
|
|
375
|
-
border: true,
|
|
376
|
-
radius: "$card-radius",
|
|
377
|
-
shadow: "0 0.75rem 2rem #shadow",
|
|
378
|
-
opacity: "0",
|
|
379
|
-
scale: "1 0.96",
|
|
380
|
-
transformOrigin: "top",
|
|
381
|
-
transition: {
|
|
382
|
-
"": "none",
|
|
383
|
-
"!@reduced-motion":
|
|
384
|
-
"opacity $popover-transition ease-out, scale $popover-transition ease-out, display $popover-transition allow-discrete, overlay $popover-transition allow-discrete",
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
OpenPanel: {
|
|
388
|
-
$: "[popover]:popover-open[data-open]",
|
|
389
|
-
opacity: "1",
|
|
390
|
-
scale: "1",
|
|
391
|
-
},
|
|
392
|
-
Section: {
|
|
393
|
-
$: "fieldset",
|
|
394
|
-
inlineSize: "min 0",
|
|
395
|
-
margin: "0",
|
|
396
|
-
padding: "0",
|
|
397
|
-
border: "0",
|
|
398
|
-
},
|
|
399
|
-
SectionSpacing: {
|
|
400
|
-
$: "fieldset + fieldset",
|
|
401
|
-
blockMargin: "$gap start",
|
|
402
|
-
blockPadding: "$gap start",
|
|
403
|
-
blockBorder: "$border-width solid #border start",
|
|
404
|
-
},
|
|
405
|
-
SectionLabel: {
|
|
406
|
-
$: "legend",
|
|
407
|
-
float: "inline-start",
|
|
408
|
-
inlineSize: "100%",
|
|
409
|
-
padding: "($gap * 0.75) $gap",
|
|
410
|
-
color: "#text-muted",
|
|
411
|
-
preset: "small / strong",
|
|
412
|
-
},
|
|
413
|
-
Option: {
|
|
414
|
-
$: "label",
|
|
415
|
-
position: "relative",
|
|
416
|
-
display: "flex",
|
|
417
|
-
alignItems: "center",
|
|
418
|
-
gap: "$gap",
|
|
419
|
-
inlineSize: "100%",
|
|
420
|
-
blockSize: "min 2.25rem",
|
|
421
|
-
padding: "($gap * 0.75) $gap",
|
|
422
|
-
color: "#text-soft",
|
|
423
|
-
preset: "small",
|
|
424
|
-
radius: "$radius",
|
|
425
|
-
cursor: "pointer",
|
|
426
|
-
},
|
|
427
|
-
HoverOption: {
|
|
428
|
-
$: "label:hover",
|
|
429
|
-
color: "#text",
|
|
430
|
-
fill: "#surface-2-hover",
|
|
431
|
-
},
|
|
432
|
-
CheckedOption: {
|
|
433
|
-
$: "label:has(input:checked)",
|
|
434
|
-
color: "#accent-text",
|
|
435
|
-
fill: "#accent-surface-2-subtle",
|
|
436
|
-
},
|
|
437
|
-
FocusedOption: {
|
|
438
|
-
$: "label:has(input:focus-visible)",
|
|
439
|
-
outline: "$outline-width solid #focus / -2px",
|
|
440
|
-
},
|
|
441
|
-
Input: {
|
|
442
|
-
$: "input",
|
|
443
|
-
position: "absolute",
|
|
444
|
-
inlineSize: "1px",
|
|
445
|
-
blockSize: "0 1px",
|
|
446
|
-
padding: "0",
|
|
447
|
-
margin: "0",
|
|
448
|
-
overflow: "hidden",
|
|
449
|
-
clipPath: "inset(50%)",
|
|
450
|
-
whiteSpace: "nowrap",
|
|
451
|
-
},
|
|
452
|
-
OptionIcon: {
|
|
453
|
-
$: "label > svg",
|
|
454
|
-
display: "block",
|
|
455
|
-
flexShrink: "0",
|
|
456
|
-
inlineSize: "1rem",
|
|
457
|
-
blockSize: "1rem",
|
|
458
|
-
},
|
|
459
|
-
Checkmark: {
|
|
460
|
-
$: "label > svg:last-child",
|
|
461
|
-
inlineMargin: "auto start",
|
|
462
|
-
visibility: "hidden",
|
|
463
|
-
},
|
|
464
|
-
SelectedCheckmark: {
|
|
465
|
-
$: "label:has(input:checked) > svg:last-child",
|
|
466
|
-
visibility: "visible",
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
}),
|
|
470
|
-
);
|
|
471
|
-
|
|
472
|
-
export const SocialIconsRoot = customizeComponent(
|
|
473
|
-
"SocialIcons",
|
|
474
|
-
tasty({
|
|
475
|
-
as: "div",
|
|
476
|
-
styles: {
|
|
477
|
-
display: "flex",
|
|
478
|
-
alignItems: "center",
|
|
479
|
-
gap: "($gap * 0.5)",
|
|
480
|
-
Link: {
|
|
481
|
-
$: "a",
|
|
482
|
-
display: "grid",
|
|
483
|
-
placeItems: "center",
|
|
484
|
-
inlineSize: "$control-height",
|
|
485
|
-
blockSize: "$control-height",
|
|
486
|
-
color: "#text-soft",
|
|
487
|
-
fill: "#clear",
|
|
488
|
-
radius: "$header-control-radius",
|
|
489
|
-
textDecoration: "none",
|
|
490
|
-
},
|
|
491
|
-
HoverLink: {
|
|
492
|
-
$: "a:hover",
|
|
493
|
-
color: "#text",
|
|
494
|
-
fill: "#surface-2-hover",
|
|
495
|
-
},
|
|
496
|
-
Icon: {
|
|
497
|
-
$: "a > svg",
|
|
498
|
-
display: "block",
|
|
499
|
-
inlineSize: "1.25rem",
|
|
500
|
-
blockSize: "1.25rem",
|
|
501
|
-
},
|
|
502
|
-
},
|
|
503
|
-
}),
|
|
504
|
-
);
|
|
505
|
-
|
|
506
|
-
export const MobileNavigationTabsRoot = customizeComponent(
|
|
507
|
-
"MobileNavigationTabs",
|
|
508
|
-
tasty({
|
|
509
|
-
as: "nav",
|
|
510
|
-
styles: {
|
|
511
|
-
display: "grid",
|
|
512
|
-
hide: { "": false, "@desktop": true },
|
|
513
|
-
gap: "$gap",
|
|
514
|
-
blockMargin: "0",
|
|
515
|
-
Label: {
|
|
516
|
-
$: ".td-mobile-tabs__label",
|
|
517
|
-
overflow: "hidden",
|
|
518
|
-
textOverflow: "ellipsis",
|
|
519
|
-
whiteSpace: "nowrap",
|
|
520
|
-
},
|
|
521
|
-
Trigger: {
|
|
522
|
-
$: "summary",
|
|
523
|
-
display: "flex",
|
|
524
|
-
alignItems: "center",
|
|
525
|
-
justifyContent: "space-between",
|
|
526
|
-
gap: "$gap",
|
|
527
|
-
blockSize: "min 2.75rem",
|
|
528
|
-
padding: "$gap ($gap * 1.25)",
|
|
529
|
-
border: true,
|
|
530
|
-
radius: "$radius",
|
|
531
|
-
color: "#text-soft",
|
|
532
|
-
fill: "#surface",
|
|
533
|
-
preset: "navigation",
|
|
534
|
-
listStyle: "none",
|
|
535
|
-
},
|
|
536
|
-
Marker: {
|
|
537
|
-
$: "summary::marker, summary::-webkit-details-marker",
|
|
538
|
-
hide: true,
|
|
539
|
-
},
|
|
540
|
-
Caret: { $: "summary > svg", flexShrink: "0" },
|
|
541
|
-
ExpandedCaret: { $: "details[open] > summary > svg", rotate: "180deg" },
|
|
542
|
-
List: {
|
|
543
|
-
$: "ul",
|
|
544
|
-
display: "grid",
|
|
545
|
-
gap: "1bw",
|
|
546
|
-
padding: "$gap",
|
|
547
|
-
blockMargin: "$gap start",
|
|
548
|
-
margin: "$gap 0 0",
|
|
549
|
-
listStyle: "none",
|
|
550
|
-
border: true,
|
|
551
|
-
radius: "$radius",
|
|
552
|
-
fill: "#surface",
|
|
553
|
-
},
|
|
554
|
-
Item: { $: "li", margin: "0" },
|
|
555
|
-
Link: {
|
|
556
|
-
$: "a",
|
|
557
|
-
display: "flex",
|
|
558
|
-
alignItems: "center",
|
|
559
|
-
blockSize: "min 2.25rem",
|
|
560
|
-
padding: "($gap * 0.75) ($gap * 1.25)",
|
|
561
|
-
color: "#text-soft",
|
|
562
|
-
preset: "navigation",
|
|
563
|
-
textDecoration: "none",
|
|
564
|
-
radius: "$radius",
|
|
565
|
-
},
|
|
566
|
-
HoverLink: {
|
|
567
|
-
$: "a:hover",
|
|
568
|
-
color: "#text",
|
|
569
|
-
fill: "#surface-2-hover",
|
|
570
|
-
},
|
|
571
|
-
CurrentLink: {
|
|
572
|
-
$: 'a[aria-current="page"]',
|
|
573
|
-
color: "#accent-text",
|
|
574
|
-
fill: "#accent-surface-subtle",
|
|
575
|
-
},
|
|
576
|
-
},
|
|
577
|
-
}),
|
|
578
|
-
);
|
|
579
|
-
|
|
580
|
-
export const MobileMenuFooterRoot = customizeComponent(
|
|
581
|
-
"MobileMenuFooter",
|
|
582
|
-
tasty({
|
|
583
|
-
as: "div",
|
|
584
|
-
styles: {
|
|
585
|
-
display: "flex",
|
|
586
|
-
alignItems: "center",
|
|
587
|
-
justifyContent: "space-between",
|
|
588
|
-
flow: "row wrap",
|
|
589
|
-
gap: "($gap * 2)",
|
|
590
|
-
blockPadding: "$gap",
|
|
591
|
-
blockBorder: "$border-width solid #border start",
|
|
592
|
-
Social: {
|
|
593
|
-
$: ".td-mobile-preferences__social",
|
|
594
|
-
display: "flex",
|
|
595
|
-
hide: { "": false, ":empty": true },
|
|
596
|
-
alignItems: "center",
|
|
597
|
-
gap: "($gap * 2)",
|
|
598
|
-
inlineMargin: "auto end",
|
|
599
|
-
blockPadding: "($gap * 2)",
|
|
600
|
-
},
|
|
601
|
-
},
|
|
602
|
-
}),
|
|
603
|
-
);
|
|
604
|
-
|
|
605
|
-
export const FooterRoot = customizeComponent(
|
|
606
|
-
"Footer",
|
|
607
|
-
tasty({
|
|
608
|
-
as: "footer",
|
|
609
|
-
styles: {
|
|
610
|
-
display: "flex",
|
|
611
|
-
flow: "column",
|
|
612
|
-
gap: "($gap * 3)",
|
|
613
|
-
Meta: {
|
|
614
|
-
$: ".td-footer__meta",
|
|
615
|
-
display: "flex",
|
|
616
|
-
flow: "row wrap",
|
|
617
|
-
justifyContent: "space-between",
|
|
618
|
-
gap: "($gap * 1.5) ($gap * 6)",
|
|
619
|
-
blockMargin: "($gap * 6) start",
|
|
620
|
-
color: "#text-muted",
|
|
621
|
-
preset: "small",
|
|
622
|
-
},
|
|
623
|
-
LoneMetaItem: {
|
|
624
|
-
$: ".td-footer__meta > :only-child",
|
|
625
|
-
inlineMargin: "auto start",
|
|
626
|
-
},
|
|
627
|
-
MetaLink: {
|
|
628
|
-
$: ".td-footer__meta a",
|
|
629
|
-
display: "flex",
|
|
630
|
-
alignItems: "center",
|
|
631
|
-
gap: "$gap",
|
|
632
|
-
color: "#text-muted",
|
|
633
|
-
textDecoration: "none",
|
|
634
|
-
},
|
|
635
|
-
HoverMetaLink: {
|
|
636
|
-
$: ".td-footer__meta a:hover",
|
|
637
|
-
color: "#text",
|
|
638
|
-
},
|
|
639
|
-
Credit: {
|
|
640
|
-
$: ".td-footer__credit",
|
|
641
|
-
margin: "($gap * 3) auto",
|
|
642
|
-
color: "#text",
|
|
643
|
-
preset: "small",
|
|
644
|
-
textAlign: "center",
|
|
645
|
-
},
|
|
646
|
-
CreditLink: {
|
|
647
|
-
$: ".td-footer__credit a",
|
|
648
|
-
color: "#accent-text",
|
|
649
|
-
preset: "small / strong",
|
|
650
|
-
textDecoration: "none",
|
|
651
|
-
},
|
|
652
|
-
HoverCreditLink: {
|
|
653
|
-
$: ".td-footer__credit a:hover",
|
|
654
|
-
color: "#text",
|
|
655
|
-
},
|
|
656
|
-
},
|
|
657
|
-
}),
|
|
658
|
-
);
|
|
659
|
-
|
|
660
|
-
export const HeaderLinksRoot = customizeComponent(
|
|
661
|
-
"HeaderLinks",
|
|
662
|
-
tasty({
|
|
663
|
-
as: "cookbook-header-links",
|
|
664
|
-
styles: {
|
|
665
|
-
display: "flex",
|
|
666
|
-
flexShrink: "0",
|
|
667
|
-
order: { "": "0", "@mobile": "2" },
|
|
668
|
-
"$popover-transition": "120ms",
|
|
669
|
-
Desktop: {
|
|
670
|
-
$: ".td-header-links__desktop",
|
|
671
|
-
display: "flex",
|
|
672
|
-
hide: { "": false, "@mobile": true },
|
|
673
|
-
alignItems: "center",
|
|
674
|
-
gap: "($gap * 0.5)",
|
|
675
|
-
},
|
|
676
|
-
Link: {
|
|
677
|
-
$: "a",
|
|
678
|
-
display: "flex",
|
|
679
|
-
alignItems: "center",
|
|
680
|
-
justifyContent: "center",
|
|
681
|
-
blockSize: "min $control-height",
|
|
682
|
-
padding: "$gap ($gap * 1.25)",
|
|
683
|
-
radius: "$radius",
|
|
684
|
-
color: "#text-soft",
|
|
685
|
-
fill: "#clear",
|
|
686
|
-
preset: "small / strong",
|
|
687
|
-
textDecoration: "none",
|
|
688
|
-
whiteSpace: "nowrap",
|
|
689
|
-
},
|
|
690
|
-
DesktopLink: {
|
|
691
|
-
$: ".td-header-links__desktop a",
|
|
692
|
-
radius: "$header-control-radius",
|
|
693
|
-
inlinePadding: "($gap * 2)",
|
|
694
|
-
},
|
|
695
|
-
HoverLink: { $: "a:hover", color: "#text", fill: "#surface-2-hover" },
|
|
696
|
-
PrimaryLink: {
|
|
697
|
-
$: 'a[data-variant="primary"]',
|
|
698
|
-
color: "#accent-surface-text",
|
|
699
|
-
fill: "#accent-surface",
|
|
700
|
-
},
|
|
701
|
-
HoverPrimaryLink: {
|
|
702
|
-
$: 'a[data-variant="primary"]:hover',
|
|
703
|
-
filter: "brightness(1.1)",
|
|
704
|
-
},
|
|
705
|
-
Trigger: {
|
|
706
|
-
$: ".td-header-links__trigger",
|
|
707
|
-
display: "grid",
|
|
708
|
-
hide: { "": true, "@mobile": false },
|
|
709
|
-
placeItems: "center",
|
|
710
|
-
inlineSize: "$docs-menu-button-size",
|
|
711
|
-
blockSize: "$docs-menu-button-size",
|
|
712
|
-
padding: "0",
|
|
713
|
-
border: "0",
|
|
714
|
-
radius: "$header-control-radius",
|
|
715
|
-
color: "#text-soft",
|
|
716
|
-
fill: "#clear",
|
|
717
|
-
},
|
|
718
|
-
HoverTrigger: {
|
|
719
|
-
$: ".td-header-links__trigger:hover",
|
|
720
|
-
color: "#text",
|
|
721
|
-
fill: "#surface-2-hover",
|
|
722
|
-
},
|
|
723
|
-
Panel: {
|
|
724
|
-
$: ".td-header-links__panel",
|
|
725
|
-
position: "fixed",
|
|
726
|
-
inset: "0.5rem $docs-nav-pad-x auto auto",
|
|
727
|
-
inlineSize: "min(20rem, calc(100vw - 2 * $docs-nav-pad-x))",
|
|
728
|
-
blockSize: "max (100dvh - 1rem)",
|
|
729
|
-
overflowY: "auto",
|
|
730
|
-
margin: "0",
|
|
731
|
-
padding: "$gap",
|
|
732
|
-
color: "#text",
|
|
733
|
-
fill: "#surface",
|
|
734
|
-
border: true,
|
|
735
|
-
radius: "$card-radius",
|
|
736
|
-
shadow: "0 0.75rem 2rem #shadow",
|
|
737
|
-
opacity: "0",
|
|
738
|
-
scale: "1 0.96",
|
|
739
|
-
transformOrigin: "top",
|
|
740
|
-
transition: {
|
|
741
|
-
"": "none",
|
|
742
|
-
"!@reduced-motion":
|
|
743
|
-
"opacity $popover-transition ease-out, scale $popover-transition ease-out, display $popover-transition allow-discrete, overlay $popover-transition allow-discrete",
|
|
744
|
-
},
|
|
745
|
-
},
|
|
746
|
-
OpenPanel: {
|
|
747
|
-
$: ".td-header-links__panel:popover-open[data-open]",
|
|
748
|
-
opacity: "1",
|
|
749
|
-
scale: "1",
|
|
750
|
-
},
|
|
751
|
-
PanelNavigation: {
|
|
752
|
-
$: ".td-header-links__panel nav",
|
|
753
|
-
display: "grid",
|
|
754
|
-
gap: "1bw",
|
|
755
|
-
},
|
|
756
|
-
PanelLink: {
|
|
757
|
-
$: ".td-header-links__panel a",
|
|
758
|
-
justifyContent: "flex-start",
|
|
759
|
-
blockSize: "min $docs-menu-button-size",
|
|
760
|
-
inlinePadding: "($gap * 1.5)",
|
|
761
|
-
preset: "navigation",
|
|
762
|
-
textAlign: "start",
|
|
763
|
-
whiteSpace: "normal",
|
|
764
|
-
overflowWrap: "anywhere",
|
|
765
|
-
},
|
|
766
|
-
FirstPanelLink: {
|
|
767
|
-
$: ".td-header-links__panel a:first-child",
|
|
768
|
-
inlinePadding:
|
|
769
|
-
"($gap * 1.5) start, ($docs-menu-button-size + $gap) end",
|
|
770
|
-
},
|
|
771
|
-
Close: {
|
|
772
|
-
$: ".td-header-links__close",
|
|
773
|
-
position: "absolute",
|
|
774
|
-
inset: "$gap $gap auto auto",
|
|
775
|
-
display: "grid",
|
|
776
|
-
placeItems: "center",
|
|
777
|
-
inlineSize: "$docs-menu-button-size",
|
|
778
|
-
blockSize: "$docs-menu-button-size",
|
|
779
|
-
padding: "0",
|
|
780
|
-
border: "0",
|
|
781
|
-
color: "#text-soft",
|
|
782
|
-
fill: "#clear",
|
|
783
|
-
radius: "$header-control-radius",
|
|
784
|
-
},
|
|
785
|
-
HoverClose: {
|
|
786
|
-
$: ".td-header-links__close:hover",
|
|
787
|
-
color: "#text",
|
|
788
|
-
fill: "#surface-2-hover",
|
|
789
|
-
},
|
|
790
|
-
},
|
|
791
|
-
}),
|
|
792
|
-
);
|
|
793
|
-
|
|
794
|
-
export const PageActionsRoot = customizeComponent(
|
|
795
|
-
"PageActions",
|
|
796
|
-
tasty({
|
|
797
|
-
as: "cookbook-page-actions",
|
|
798
|
-
styles: {
|
|
799
|
-
display: "flex",
|
|
800
|
-
flow: "row wrap",
|
|
801
|
-
alignItems: "center",
|
|
802
|
-
gap: "$gap",
|
|
803
|
-
preset: "small",
|
|
804
|
-
Control: {
|
|
805
|
-
$: "button, a",
|
|
806
|
-
display: "inline-flex",
|
|
807
|
-
alignItems: "center",
|
|
808
|
-
padding: "$gap ($gap * 1.5)",
|
|
809
|
-
border: true,
|
|
810
|
-
radius: "$radius",
|
|
811
|
-
color: "#text",
|
|
812
|
-
fill: "#surface",
|
|
813
|
-
preset: "small",
|
|
814
|
-
textDecoration: "none",
|
|
815
|
-
cursor: "pointer",
|
|
816
|
-
},
|
|
817
|
-
Hover: { $: "button:hover, a:hover", fill: "#surface-2" },
|
|
818
|
-
Focus: {
|
|
819
|
-
$: "button:focus-visible, a:focus-visible",
|
|
820
|
-
outline: "2px solid #focus / 2px",
|
|
821
|
-
},
|
|
822
|
-
Pending: { $: 'button[aria-disabled="true"]', cursor: "wait" },
|
|
823
|
-
Status: { $: "[role=status]", color: "#text-soft" },
|
|
824
|
-
},
|
|
825
|
-
}),
|
|
826
|
-
);
|
|
827
|
-
|
|
828
|
-
export const MobileTableOfContentsRoot = customizeComponent(
|
|
829
|
-
"MobileTableOfContents",
|
|
830
|
-
tasty({
|
|
831
|
-
as: "cookbook-mobile-toc",
|
|
832
|
-
styles: {
|
|
833
|
-
display: "block",
|
|
834
|
-
hide: { "": true, "@narrow-layout": false },
|
|
835
|
-
padding: "$gap $docs-sidebar-pad-x",
|
|
836
|
-
blockBorder: "$border-width solid #border end",
|
|
837
|
-
fill: "#surface",
|
|
838
|
-
Summary: {
|
|
839
|
-
$: "summary",
|
|
840
|
-
padding: "$gap",
|
|
841
|
-
color: "#text",
|
|
842
|
-
preset: "small / strong",
|
|
843
|
-
cursor: "pointer",
|
|
844
|
-
radius: "$radius",
|
|
845
|
-
},
|
|
846
|
-
List: {
|
|
847
|
-
$: "ul",
|
|
848
|
-
listStyle: "none",
|
|
849
|
-
padding: "0",
|
|
850
|
-
margin: "0",
|
|
851
|
-
display: "grid",
|
|
852
|
-
gap: "2px",
|
|
853
|
-
},
|
|
854
|
-
NestedList: { $: "ul ul", inlinePadding: "($gap * 2) start" },
|
|
855
|
-
Item: { $: "li", listStyle: "none", margin: "0", padding: "0" },
|
|
856
|
-
Link: {
|
|
857
|
-
$: "a",
|
|
858
|
-
display: "block",
|
|
859
|
-
padding: "$gap",
|
|
860
|
-
color: "#text-soft",
|
|
861
|
-
preset: "small",
|
|
862
|
-
radius: "$radius",
|
|
863
|
-
textDecoration: "none",
|
|
864
|
-
},
|
|
865
|
-
HoverLink: { $: "a:hover", fill: "#surface-2", color: "#text" },
|
|
866
|
-
Focus: {
|
|
867
|
-
$: "a:focus-visible, summary:focus-visible",
|
|
868
|
-
outline: "2px solid #focus / 2px",
|
|
869
|
-
},
|
|
870
|
-
},
|
|
871
|
-
}),
|
|
872
|
-
);
|