@leed-ai/cli 0.0.0-stage → 6.19.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/LICENSE.md +57 -0
- package/README.md +125 -2
- package/dist/LICENSE.md +57 -0
- package/dist/acorn-DAgDT1om.js +5087 -0
- package/dist/angular-l0_4PK8N.js +3598 -0
- package/dist/authShared-Dray38Ls.js +1161 -0
- package/dist/babel-CJeRQd5u.js +10038 -0
- package/dist/buildResults-tiq1nugP.js +21180 -0
- package/dist/chunk-1VJ9lAw7.js +42 -0
- package/dist/cliAuth-38JjD6hw.js +15 -0
- package/dist/env-B0bHiXJJ.js +29 -0
- package/dist/errors-CqKamGCu.js +481 -0
- package/dist/estree-E8WG8UHj.js +6930 -0
- package/dist/flow-6xaRIbPQ.js +52255 -0
- package/dist/glimmer-aJPjsfbT.js +7272 -0
- package/dist/graphql-mcgtPEiZ.js +1901 -0
- package/dist/html--eeea3Kl.js +6553 -0
- package/dist/leed.eleventy.mjs +6525 -0
- package/dist/leed.mjs +88952 -0
- package/dist/leed.sources.json +798 -0
- package/dist/leedLogger-Zkada5aO.js +78 -0
- package/dist/markdown-D73jNKwx.js +6836 -0
- package/dist/meriyah-CMp1nDDW.js +8932 -0
- package/dist/package.json +101 -0
- package/dist/postcss-h4fBr2Fn.js +6760 -0
- package/dist/prettier-CwFSKxfN.js +16821 -0
- package/dist/static/customer-site-worker/package.json +9 -0
- package/dist/static/customer-site-worker/src/assetsHydration.ts +55 -0
- package/dist/static/customer-site-worker/src/constants.ts +20 -0
- package/dist/static/customer-site-worker/src/cors.ts +120 -0
- package/dist/static/customer-site-worker/src/index.ts +242 -0
- package/dist/static/customer-site-worker/src/mcp-proxy.ts +98 -0
- package/dist/static/customer-site-worker/src/proxy.ts +92 -0
- package/dist/static/customer-site-worker/src/proxyHeaders.ts +47 -0
- package/dist/static/customer-site-worker/src/tier.ts +40 -0
- package/dist/static/customer-site-worker/src/types.ts +82 -0
- package/dist/static/customer-site-worker/test/functions-mock.worker.js +50 -0
- package/dist/static/customer-site-worker/tsconfig.json +19 -0
- package/dist/static/customer-site-worker/vitest.workers.config.ts +61 -0
- package/dist/static/install/husky/colors.mjs +5 -0
- package/dist/static/install/husky/hooks/commit-msg +1 -0
- package/dist/static/install/husky/hooks/pre-commit +1 -0
- package/dist/static/install/husky/hooks/pre-push +1 -0
- package/dist/static/install/husky/valid-command.mjs +29 -0
- package/dist/static/install/husky/valid-commit-msg.mjs +20 -0
- package/dist/static/install/package.json +10 -0
- package/dist/static/install/packages.txt +4 -0
- package/dist/static/install/tasks.json +111 -0
- package/dist/static/javascript/detectIncognito.js +195 -0
- package/dist/static/javascript/documentation.js +2781 -0
- package/dist/static/javascript/fp/fp.esm.js +2896 -0
- package/dist/static/javascript/fp/fp.js +3067 -0
- package/dist/static/javascript/live-search.js +986 -0
- package/dist/static/javascript/lunr-search.js +843 -0
- package/dist/static/javascript/timeme.js +451 -0
- package/dist/static/javascript/tracker/webmcp.js +67 -0
- package/dist/static/javascript/tracker/whisper.js +1 -0
- package/dist/static/javascript/utilities.js +819 -0
- package/dist/static/javascript/versions.json +74 -0
- package/dist/static/javascript/zoomable.js +488 -0
- package/dist/static/site/_data/eleventyComputed.js +228 -0
- package/dist/static/site/_data/leed-form-data.json +253 -0
- package/dist/static/site/_includes/leed/api/bits/array-type.hbs +24 -0
- package/dist/static/site/_includes/leed/api/bits/badges.hbs +9 -0
- package/dist/static/site/_includes/leed/api/bits/description.hbs +9 -0
- package/dist/static/site/_includes/leed/api/bits/examples.hbs +42 -0
- package/dist/static/site/_includes/leed/api/bits/scopes.hbs +28 -0
- package/dist/static/site/_includes/leed/api/object.hbs +110 -0
- package/dist/static/site/_includes/leed/api/parameters.hbs +11 -0
- package/dist/static/site/_includes/leed/api/property.hbs +153 -0
- package/dist/static/site/_includes/leed/api/request-body.hbs +51 -0
- package/dist/static/site/_includes/leed/api/responses.hbs +89 -0
- package/dist/static/site/_includes/leed/api/security-constraints.hbs +59 -0
- package/dist/static/site/_includes/leed/api/security.hbs +75 -0
- package/dist/static/site/_includes/leed/components/pagination.hbs +45 -0
- package/dist/static/site/_includes/leed/components/scroll-status-indicator-horizontal.hbs +22 -0
- package/dist/static/site/_includes/leed/docs/alpha/api.hbs +6 -0
- package/dist/static/site/_includes/leed/docs/alpha/base.hbs +26 -0
- package/dist/static/site/_includes/leed/docs/alpha/documentation.hbs +7 -0
- package/dist/static/site/_includes/leed/docs/api-article.hbs +75 -0
- package/dist/static/site/_includes/leed/docs/bravo/api.hbs +5 -0
- package/dist/static/site/_includes/leed/docs/bravo/base.hbs +31 -0
- package/dist/static/site/_includes/leed/docs/bravo/documentation.hbs +7 -0
- package/dist/static/site/_includes/leed/docs/charlie/api.hbs +6 -0
- package/dist/static/site/_includes/leed/docs/charlie/base.hbs +27 -0
- package/dist/static/site/_includes/leed/docs/charlie/documentation.hbs +10 -0
- package/dist/static/site/_includes/leed/docs/doc-article.hbs +40 -0
- package/dist/static/site/_includes/leed/docs/docs-footer.hbs +35 -0
- package/dist/static/site/_includes/leed/docs/docs-header.hbs +59 -0
- package/dist/static/site/_includes/leed/docs/document-search-modal.hbs +36 -0
- package/dist/static/site/_includes/leed/docs/document-search.hbs +23 -0
- package/dist/static/site/_includes/leed/docs/footer.hbs +12 -0
- package/dist/static/site/_includes/leed/docs/header/brand.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/header/chrome.hbs +33 -0
- package/dist/static/site/_includes/leed/docs/header/compact.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/header/cta.hbs +15 -0
- package/dist/static/site/_includes/leed/docs/header/nav.hbs +18 -0
- package/dist/static/site/_includes/leed/docs/header/top-search.hbs +15 -0
- package/dist/static/site/_includes/leed/docs/mini-bar.hbs +53 -0
- package/dist/static/site/_includes/leed/docs/pagination.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/shell.hbs +56 -0
- package/dist/static/site/_includes/leed/docs/sidebar.hbs +52 -0
- package/dist/static/site/_includes/leed/docs/social-icons.hbs +81 -0
- package/dist/static/site/_includes/leed/docs/style.hbs +17 -0
- package/dist/static/site/_includes/leed/docs/toc.hbs +7 -0
- package/dist/static/site/_includes/leed/form.hbs +266 -0
- package/dist/static/site/_includes/leed/head.hbs +67 -0
- package/dist/static/site/_includes/leed/menu/builder.hbs +35 -0
- package/dist/static/site/_includes/leed/menu/item.hbs +67 -0
- package/dist/static/site/_includes/leed/menu/link.hbs +59 -0
- package/dist/static/site/_includes/leed/metadata/ogCard.hbs +40 -0
- package/dist/static/site/_includes/leed/metadata/siteMetadata.hbs +24 -0
- package/dist/static/site/_includes/leed/metadata/twitterCard.hbs +34 -0
- package/dist/static/site/_includes/leed/popup-video.hbs +21 -0
- package/dist/static/site/_includes/leed/stub-template.hbs +17 -0
- package/dist/static/site/_includes/leed/unsubscribe-form.hbs +30 -0
- package/dist/static/site/_layouts/leed-documentation.hbs +12 -0
- package/dist/static/site/leed-feed-atom.hbs +42 -0
- package/dist/static/site/leed-feed-json.hbs +56 -0
- package/dist/static/site/leed-feed-rss.hbs +39 -0
- package/dist/static/site/leed-headers.hbs +38 -0
- package/dist/static/site/leed-redirects.hbs +10 -0
- package/dist/static/site/leed-sitemap-pageType.hbs +28 -0
- package/dist/static/site/leed-sitemap.hbs +19 -0
- package/dist/static/site/leed-unsubscribe.hbs +44 -0
- package/dist/static/site/leed-unsubscribed.hbs +40 -0
- package/dist/static/tailwind/components/alerts.css +132 -0
- package/dist/static/tailwind/components/api-methods.css +39 -0
- package/dist/static/tailwind/components/breadcrumbs.css +31 -0
- package/dist/static/tailwind/components/code.css +88 -0
- package/dist/static/tailwind/components/collapsible.css +38 -0
- package/dist/static/tailwind/components/document-search.css +222 -0
- package/dist/static/tailwind/components/form.css +185 -0
- package/dist/static/tailwind/components/kbd.css +7 -0
- package/dist/static/tailwind/components/pagination.css +81 -0
- package/dist/static/tailwind/components/scroll-status-indicator.css +5 -0
- package/dist/static/tailwind/components/tab-groups.css +117 -0
- package/dist/static/tailwind/components/tables.css +0 -0
- package/dist/static/tailwind/components/toc.css +60 -0
- package/dist/static/tailwind/components.css +248 -0
- package/dist/static/tailwind/defaults.css +260 -0
- package/dist/static/tailwind/docs/api.css +701 -0
- package/dist/static/tailwind/docs/components/blockquote.css +5 -0
- package/dist/static/tailwind/docs/components/button.css +11 -0
- package/dist/static/tailwind/docs/components/docs-pagination.css +71 -0
- package/dist/static/tailwind/docs/components/mobile-bar.css +83 -0
- package/dist/static/tailwind/docs/components/navigation.css +279 -0
- package/dist/static/tailwind/docs/components/table.css +54 -0
- package/dist/static/tailwind/docs/components.css +6 -0
- package/dist/static/tailwind/docs/docs.css +427 -0
- package/dist/static/tailwind/docs/layouts/alpha.css +108 -0
- package/dist/static/tailwind/docs/layouts/bravo.css +218 -0
- package/dist/static/tailwind/docs/layouts/charlie.css +105 -0
- package/dist/static/tailwind/docs/layouts.css +3 -0
- package/dist/static/tailwind/docs/themes/amber.css +113 -0
- package/dist/static/tailwind/docs/themes/blue.css +94 -0
- package/dist/static/tailwind/docs/themes/cyan.css +111 -0
- package/dist/static/tailwind/docs/themes/emerald.css +111 -0
- package/dist/static/tailwind/docs/themes/fuchsia.css +111 -0
- package/dist/static/tailwind/docs/themes/green.css +95 -0
- package/dist/static/tailwind/docs/themes/indigo.css +111 -0
- package/dist/static/tailwind/docs/themes/lime.css +111 -0
- package/dist/static/tailwind/docs/themes/orange.css +111 -0
- package/dist/static/tailwind/docs/themes/pink.css +111 -0
- package/dist/static/tailwind/docs/themes/purple.css +111 -0
- package/dist/static/tailwind/docs/themes/red.css +111 -0
- package/dist/static/tailwind/docs/themes/rose.css +111 -0
- package/dist/static/tailwind/docs/themes/sky.css +111 -0
- package/dist/static/tailwind/docs/themes/teal.css +111 -0
- package/dist/static/tailwind/docs/themes/violet.css +111 -0
- package/dist/static/tailwind/docs/themes/yellow.css +111 -0
- package/dist/static/tailwind/docs/themes.css +84 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/brands.css +2455 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/fontawesome.css +8997 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/fonts.css +45 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/icons.json +2608 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1.css +3 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/brands.css +2215 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/fontawesome.css +19281 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/fonts.css +445 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0.css +3 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/brands.css +2455 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/fontawesome.css +20365 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/fonts.css +589 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1.css +3 -0
- package/dist/static/tailwind/fonts/all.css +6 -0
- package/dist/static/tailwind/fonts/config.jsonc +31 -0
- package/dist/static/tailwind/fonts/geist-mono.css +142 -0
- package/dist/static/tailwind/fonts/geist.css +142 -0
- package/dist/static/tailwind/fonts/inter.css +215 -0
- package/dist/static/tailwind/fonts/jetbrains-mono.css +126 -0
- package/dist/static/tailwind/fonts/noto-sans.css +134 -0
- package/dist/static/tailwind/fonts/open-sans.css +89 -0
- package/dist/static/tailwind/highlighters.css +14 -0
- package/dist/static/tailwind/hljs/README.md +53 -0
- package/dist/static/tailwind/hljs/a11y.css +96 -0
- package/dist/static/tailwind/hljs/atom-fruit.css +90 -0
- package/dist/static/tailwind/hljs/atom-one.css +164 -0
- package/dist/static/tailwind/hljs/default.css +164 -0
- package/dist/static/tailwind/hljs/github.css +101 -0
- package/dist/static/tailwind/hljs/google-code.css +112 -0
- package/dist/static/tailwind/hljs/grayscale.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-hard.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-medium.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-soft.css +115 -0
- package/dist/static/tailwind/hljs/papercolor.css +120 -0
- package/dist/static/tailwind/hljs/qt-creator.css +91 -0
- package/dist/static/tailwind/hljs/summerfruit.css +115 -0
- package/dist/static/tailwind/hljs/tomorrow.css +115 -0
- package/dist/static/tailwind/leed.css +170 -0
- package/dist/static/tailwind/site-tokens.reference.css +105 -0
- package/dist/static/tailwind/utils/icons.css +102 -0
- package/dist/static/tailwind/utils/utilities.css +105 -0
- package/dist/static/templates/pages/PAGE.hbs +27 -0
- package/dist/static/templates/pages/PAGE_LAYOUT.hbs +19 -0
- package/dist/static/templates/pages/PAGE_TYPE_INDEX.hbs +89 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_ITEM.hbs +52 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_LIST.hbs +39 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_PAGINATION.hbs +11 -0
- package/dist/static/templates/raw-content/.ci/build.sh +58 -0
- package/dist/static/templates/raw-content/README.md +179 -0
- package/dist/static/templates/raw-content/_gitignore +50 -0
- package/dist/static/templates/raw-content/src/404.hbs +21 -0
- package/dist/static/templates/raw-content/src/_data/autolink.json +1 -0
- package/dist/static/templates/raw-content/src/_data/ctaList.json +1 -0
- package/dist/static/templates/raw-content/src/_data/leedForms.json +1 -0
- package/dist/static/templates/raw-content/src/_data/menu.json +1 -0
- package/dist/static/templates/raw-content/src/_includes/footer.hbs +18 -0
- package/dist/static/templates/raw-content/src/_includes/header-includes.hbs +25 -0
- package/dist/static/templates/raw-content/src/_includes/header.hbs +5 -0
- package/dist/static/templates/raw-content/src/_includes/site-template.hbs +23 -0
- package/dist/static/templates/raw-content/src/_includes/unsubscribe-DISABLED.hbs +17 -0
- package/dist/static/templates/raw-content/src/_includes/unsubscribed-DISABLED.hbs +13 -0
- package/dist/static/templates/raw-content/src/_layouts/empty.hbs +2 -0
- package/dist/static/templates/raw-content/src/index.hbs +21 -0
- package/dist/static/templates/raw-content/src/robots.hbs +9 -0
- package/dist/static/templates/raw-content/tailwind/site/base.css +44 -0
- package/dist/static/templates/raw-content/tailwind/site.config.css +3 -0
- package/dist/static/templates/sandbox/_gitignore +50 -0
- package/dist/static/templates/sandbox/identity.json +1 -0
- package/dist/static/templates/sandbox/src/404.hbs +21 -0
- package/dist/static/templates/sandbox/src/_data/autolink.json +1 -0
- package/dist/static/templates/sandbox/src/_data/ctaList.json +1 -0
- package/dist/static/templates/sandbox/src/_data/labelList.json +9 -0
- package/dist/static/templates/sandbox/src/_data/leedForms.json +20 -0
- package/dist/static/templates/sandbox/src/_data/menu.json +19 -0
- package/dist/static/templates/sandbox/src/_data/pageTypeList.json +14 -0
- package/dist/static/templates/sandbox/src/_data/searchIndexList.json +1 -0
- package/dist/static/templates/sandbox/src/_data/userList.json +11 -0
- package/dist/static/templates/sandbox/src/_includes/footer.hbs +18 -0
- package/dist/static/templates/sandbox/src/_includes/header-includes.hbs +25 -0
- package/dist/static/templates/sandbox/src/_includes/header.hbs +5 -0
- package/dist/static/templates/sandbox/src/_includes/site-template.hbs +23 -0
- package/dist/static/templates/sandbox/src/_layouts/empty.hbs +2 -0
- package/dist/static/templates/sandbox/src/index.hbs +20 -0
- package/dist/static/templates/sandbox/src/robots.hbs +9 -0
- package/dist/static/templates/sandbox/src/src.11tydata.json +39 -0
- package/dist/static/templates/sandbox/tailwind/site/base.css +44 -0
- package/dist/static/templates/sandbox/tailwind/site.config.css +3 -0
- package/dist/thrown-sukVkp_1.js +113 -0
- package/dist/typescript-D4T0V_Hn.js +23004 -0
- package/dist/yaml-9wR8GxF_.js +5236 -0
- package/package.json +157 -4
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tab styles
|
|
3
|
+
*/
|
|
4
|
+
.leed-tabs__container {
|
|
5
|
+
@apply w-full font-medium relative mt-6! pt-0!;
|
|
6
|
+
|
|
7
|
+
&:has(.docs-tab-dropdown-button[aria-expanded="true"]) {
|
|
8
|
+
@apply z-[99999];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
pre {
|
|
12
|
+
@apply mt-0!;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.leed-tabs__wrapper {
|
|
16
|
+
@apply absolute top-0 left-[20px] z-10 z-999;
|
|
17
|
+
}
|
|
18
|
+
/* Tab list wrapper */
|
|
19
|
+
[role="tablist"] {
|
|
20
|
+
@apply border-b-0 mt-[3px]! sm:border-0 border-(--component-border-color)/10 flex flex-row flex-nowrap sm:-mb-px text-sm pl-0! font-medium;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Individual tab items */
|
|
24
|
+
[role="tab"] {
|
|
25
|
+
@apply flex px-4 py-0.5 items-center mb-0 border-b-2 border-b-transparent /* transparent default to prevent shifting */ text-(--component-text-color) hover:text-(--component-anchor-text-color) hover:bg-(--component-primary-color)/10 hover:border-(--component-anchor-text-color) cursor-pointer transition-colors duration-200;
|
|
26
|
+
|
|
27
|
+
&[aria-selected="true"] {
|
|
28
|
+
@apply font-semibold cursor-default border-(--component-current-location-text-color) text-(--component-current-location-text-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> i {
|
|
32
|
+
@apply mr-2 text-inherit;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Individual tab panel */
|
|
37
|
+
[role="tabpanel"] {
|
|
38
|
+
@apply rounded-lg transition-opacity duration-400 my-4;
|
|
39
|
+
|
|
40
|
+
pre:has(code.math) {
|
|
41
|
+
@apply p-0! bg-transparent!;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[role="tabpanel"]:not(:has(.code-block-wrapper)) {
|
|
46
|
+
@apply overflow-x-auto min-w-0 max-w-full py-3 px-4 rounded-2xl border border-(--component-code-border-color)/10 bg-(--component-code-bg-color) dark:bg-(--component-code-bg-color)/5;
|
|
47
|
+
|
|
48
|
+
& > *:first-child {
|
|
49
|
+
@apply mt-0!;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.leed-tabs__panels {
|
|
54
|
+
@apply bg-(--component-code-bg-color) border border-(--component-code-border-color)/10 rounded-2xl pt-8! px-0.5 pb-0.5;
|
|
55
|
+
|
|
56
|
+
[role="tabpanel"] {
|
|
57
|
+
@apply rounded-2xl bg-(--component-code-inner-bg-color) p-4 m-0 border-0;
|
|
58
|
+
}
|
|
59
|
+
[role="tabpanel"]:has(.code-block-wrapper) {
|
|
60
|
+
@apply p-0;
|
|
61
|
+
|
|
62
|
+
pre {
|
|
63
|
+
@apply p-0! bg-transparent! dark:bg-transparent! border-0!;
|
|
64
|
+
}
|
|
65
|
+
pre:has(code.math) {
|
|
66
|
+
@apply p-0!;
|
|
67
|
+
}
|
|
68
|
+
.copy-code-button {
|
|
69
|
+
@apply top-[-30px];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Docs tab dropdown styles - for overflowing tabs */
|
|
75
|
+
.docs-tab-dropdown {
|
|
76
|
+
@apply relative inline-block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.docs-tab-dropdown-button {
|
|
80
|
+
@apply w-auto mt-[5px]! px-2! py-1! text-xs! font-medium text-left bg-transparent border-0 border-(--component-border-color)/20 rounded-lg shadow-none! hover:bg-(--component-primary-color)/10 hover:text-(--component-primary-color) focus:outline-none! focus:ring-0! focus:ring-(--component-primary-color)/50 focus:border-(--component-primary-color) flex items-center justify-between cursor-pointer transition-colors text-(--component-text-color);
|
|
81
|
+
|
|
82
|
+
> i {
|
|
83
|
+
@apply mr-1;
|
|
84
|
+
}
|
|
85
|
+
&::after {
|
|
86
|
+
@apply fa-solid leed-icon-sort text-[10px] ml-3;
|
|
87
|
+
content: var(--fa);
|
|
88
|
+
}
|
|
89
|
+
&[aria-expanded="true"]::after {
|
|
90
|
+
transform: rotate(180deg);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.docs-tab-dropdown-menu {
|
|
95
|
+
@apply absolute z-50 w-[140px] mt-0 p-1 bg-(--component-menu-bg-color) border border-(--component-border-color)/20 rounded-lg shadow-lg max-h-[250px] overflow-auto hidden;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.docs-tab-dropdown-menu[aria-hidden="false"] {
|
|
99
|
+
@apply block;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.docs-tab-dropdown-item {
|
|
103
|
+
@apply px-2 py-2 text-xs! rounded-sm text-(--component-text-color) hover:bg-(--component-primary-color)/10 hover:text-(--component-primary-color) cursor-pointer flex items-center transition-colors;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.docs-tab-dropdown-item[aria-selected="true"] {
|
|
107
|
+
@apply text-(--component-current-location-text-color) font-semibold;
|
|
108
|
+
}
|
|
109
|
+
.docs-tab-dropdown-item i {
|
|
110
|
+
@apply mr-2;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Hide the original tablist when it has been converted to dropdown */
|
|
114
|
+
ul[role="tablist"].converted-to-dropdown {
|
|
115
|
+
@apply hidden!;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* Base TOC styling -- this is the aside tag */
|
|
2
|
+
#docs-toc-wrapper {
|
|
3
|
+
@apply hidden lg:block lg:shrink-0 lg:w-64;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
#leed-toc {
|
|
7
|
+
@apply sticky top-(--height-header) max-h-[calc(100vh-var(--height-header))] w-full pr-4 overflow-y-auto;
|
|
8
|
+
|
|
9
|
+
/* TOC heading */
|
|
10
|
+
#leed-toc-heading {
|
|
11
|
+
@apply text-sm text-(--component-header-3-color) font-semibold uppercase mb-2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Nav container */
|
|
15
|
+
.leed-nav-toc {
|
|
16
|
+
@apply text-sm border-l border-(--component-current-location-text-color) pl-3; /* Add padding to accommodate the border */
|
|
17
|
+
|
|
18
|
+
/* All ordered lists */
|
|
19
|
+
ol {
|
|
20
|
+
@apply list-none m-0 p-0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Nested ordered lists */
|
|
24
|
+
ol ol {
|
|
25
|
+
@apply ml-4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* List items - keep as normal blocks */
|
|
29
|
+
li {
|
|
30
|
+
@apply relative; /* Make relative for icon positioning */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* All links */
|
|
34
|
+
a {
|
|
35
|
+
/* Row colors are DEFAULTS a site is expected to override. Forcing them
|
|
36
|
+
made the TOC unrestylable without an unlayered file or !important —
|
|
37
|
+
the same defect the sidebar and pager had. `hidden!` below stays: it is
|
|
38
|
+
structural, not paint. Do not reinstate the `!` here. */
|
|
39
|
+
@apply block p-0 my-1 transition-colors text-(--component-text-color) hover:text-(--component-header-1-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Active link styling */
|
|
43
|
+
a[aria-current="location"] {
|
|
44
|
+
@apply font-medium text-(--component-body-link-color) bg-transparent;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.current-item {
|
|
48
|
+
@apply -left-3.5 absolute opacity-0 hidden!; /* hide by default */
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Adjust for nested icons */
|
|
52
|
+
ol ol .current-item {
|
|
53
|
+
@apply -left-7.5;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.current-item[aria-current="location"] {
|
|
57
|
+
@apply fa-solid leed-icon-caret-right opacity-0 /* only show When active */ text-(--component-current-location-text-color);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
@import "./components/alerts.css";
|
|
2
|
+
@import "./components/api-methods.css";
|
|
3
|
+
@import "./components/breadcrumbs.css";
|
|
4
|
+
@import "./components/code.css";
|
|
5
|
+
@import "./components/collapsible.css";
|
|
6
|
+
@import "./components/document-search.css";
|
|
7
|
+
@import "./components/form.css";
|
|
8
|
+
@import "./components/kbd.css";
|
|
9
|
+
@import "./components/pagination.css";
|
|
10
|
+
@import "./components/scroll-status-indicator.css";
|
|
11
|
+
@import "./components/tab-groups.css";
|
|
12
|
+
@import "./components/tables.css";
|
|
13
|
+
@import "./components/toc.css";
|
|
14
|
+
|
|
15
|
+
:root {
|
|
16
|
+
/**
|
|
17
|
+
* Default theme variables for components used outside of documentation context
|
|
18
|
+
* These provide intelligent fallback values using CSS var() fallback chains:
|
|
19
|
+
* 1. First tries --docs-* variables (for docs context)
|
|
20
|
+
* 2. Then tries --site-* variables (for site context)
|
|
21
|
+
* 3. Finally falls back to default values
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/* Component-specific primary colors with intelligent fallbacks */
|
|
25
|
+
--component-primary-color: var(--docs-primary-color, var(--site-primary-color, var(--default-primary-color)));
|
|
26
|
+
--component-primary-color-hover: var(
|
|
27
|
+
--docs-primary-color-hover,
|
|
28
|
+
var(--site-primary-color-hover, var(--default-primary-color-hover))
|
|
29
|
+
);
|
|
30
|
+
--component-primary-light: var(--docs-primary-light, var(--site-primary-light, var(--default-primary-light)));
|
|
31
|
+
|
|
32
|
+
/* Component text colors with intelligent fallbacks */
|
|
33
|
+
--component-text-color: var(--docs-text-color, var(--site-text-color, var(--default-text-color)));
|
|
34
|
+
--component-body-link-color: var(--docs-body-link-color, var(--site-body-link-color, var(--component-primary-color)));
|
|
35
|
+
--component-body-link-hover-color: var(
|
|
36
|
+
--docs-body-link-hover-color,
|
|
37
|
+
var(--site-body-link-hover-color, var(--component-primary-color-hover))
|
|
38
|
+
);
|
|
39
|
+
--component-body-link-active-color: var(
|
|
40
|
+
--docs-body-link-active-color,
|
|
41
|
+
var(--site-body-link-active-color, var(--component-primary-color-hover))
|
|
42
|
+
);
|
|
43
|
+
--component-code-math-text-color: var(
|
|
44
|
+
--docs-code-math-text-color,
|
|
45
|
+
var(--site-code-math-text-color, var(--default-text-color))
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
/* Component header colors with intelligent fallbacks */
|
|
49
|
+
--component-header-border-color: var(
|
|
50
|
+
--docs-header-border-color,
|
|
51
|
+
var(--site-header-border-color, var(--default-header-border-color))
|
|
52
|
+
);
|
|
53
|
+
--component-header-bg-color: var(--docs-header-bg-color, var(--site-header-bg-color, var(--default-header-bg-color)));
|
|
54
|
+
|
|
55
|
+
/* Component search colors with intelligent fallbacks */
|
|
56
|
+
--component-search-button-bg-color: var(
|
|
57
|
+
--docs-search-button-bg-color,
|
|
58
|
+
var(--site-search-button-bg-color, var(--default-search-button-bg-color))
|
|
59
|
+
);
|
|
60
|
+
--component-search-modal-bg-color: var(
|
|
61
|
+
--docs-search-modal-bg-color,
|
|
62
|
+
var(--site-search-modal-bg-color, var(--default-search-modal-bg-color))
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
/* The RESTING ground of one row in the search results list — the state before
|
|
66
|
+
the pointer or the keyboard selection reaches it. `transparent` is the
|
|
67
|
+
final fallback because that is literally what Leed ships: the row takes the
|
|
68
|
+
modal's own ground and `.search-result-selected` / `:hover` paint over it.
|
|
69
|
+
Every built-in theme sets --docs-search-result-bg-color to the same value
|
|
70
|
+
it gives --docs-search-modal-bg-color, so on those themes the wired value
|
|
71
|
+
and the transparent default render identically; the token exists so a site
|
|
72
|
+
that wants its rows to sit apart from the modal can say so. */
|
|
73
|
+
--component-search-result-bg-color: var(
|
|
74
|
+
--docs-search-result-bg-color,
|
|
75
|
+
var(--site-search-result-bg-color, transparent)
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
/* Component code colors with intelligent fallbacks */
|
|
79
|
+
--component-code-bg-color: var(--docs-code-bg-color, var(--site-code-bg-color, var(--default-code-bg-color)));
|
|
80
|
+
--component-code-inner-bg-color: var(
|
|
81
|
+
--docs-code-inner-bg-color,
|
|
82
|
+
var(--site-code-inner-bg-color, var(--default-code-inner-bg-color))
|
|
83
|
+
);
|
|
84
|
+
--component-code-border-color: var(
|
|
85
|
+
--docs-code-border-color,
|
|
86
|
+
var(--site-code-border-color, var(--default-code-border-color))
|
|
87
|
+
);
|
|
88
|
+
--component-code-bg-color-selection: var(
|
|
89
|
+
--docs-code-bg-color-selection,
|
|
90
|
+
var(--site-code-bg-color-selection, var(--default-code-bg-color-selection))
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/* Component form colors with intelligent fallbacks */
|
|
94
|
+
--component-form-border-color: var(
|
|
95
|
+
--docs-form-border-color,
|
|
96
|
+
var(--form-border-color, var(--default-form-border-color))
|
|
97
|
+
);
|
|
98
|
+
--component-form-border-color-hover: var(
|
|
99
|
+
--docs-form-border-color-hover,
|
|
100
|
+
var(--form-border-color-hover, var(--default-form-border-color-hover))
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
/* Component header text colors with intelligent fallbacks */
|
|
104
|
+
--component-header-1-color: var(--docs-header-1-color, var(--site-header-1-color, var(--default-header-1-color)));
|
|
105
|
+
--component-header-2-color: var(--docs-header-2-color, var(--site-header-2-color, var(--default-header-2-color)));
|
|
106
|
+
--component-header-3-color: var(--docs-header-3-color, var(--site-header-3-color, var(--default-header-3-color)));
|
|
107
|
+
--component-header-4-color: var(--docs-header-4-color, var(--site-header-4-color, var(--default-header-4-color)));
|
|
108
|
+
--component-header-5-color: var(--docs-header-5-color, var(--site-header-5-color, var(--default-header-5-color)));
|
|
109
|
+
--component-header-6-color: var(--docs-header-6-color, var(--site-header-6-color, var(--default-header-6-color)));
|
|
110
|
+
|
|
111
|
+
/* Component background color with intelligent fallback */
|
|
112
|
+
--component-bg-color: var(--docs-bg-color, var(--site-bg-color, var(--default-bg-color)));
|
|
113
|
+
|
|
114
|
+
/* The ground behind a card. docs/api.css read --docs-card-bg-color RAW, which
|
|
115
|
+
is why a site with no CMS color theme got an unpainted card rather than a
|
|
116
|
+
default one, and why there was no --site-* rung to answer it from. Routed
|
|
117
|
+
through the chain like everything else now.
|
|
118
|
+
--default-card-bg-color is `transparent` (defaults.css), which reproduces
|
|
119
|
+
the old behavior exactly: an unset --docs-card-bg-color made the card's
|
|
120
|
+
color-mix() invalid at computed-value time, and an invalid background-color
|
|
121
|
+
computes to transparent. Leed ships no card ground of its own; a theme
|
|
122
|
+
supplies one. */
|
|
123
|
+
--component-card-bg-color: var(--docs-card-bg-color, var(--site-card-bg-color, var(--default-card-bg-color)));
|
|
124
|
+
|
|
125
|
+
/* Component current location colors with intelligent fallbacks */
|
|
126
|
+
--component-current-location-text-color: var(
|
|
127
|
+
--docs-primary-color,
|
|
128
|
+
var(--site-current-location-text-color, var(--default-current-location-text-color))
|
|
129
|
+
);
|
|
130
|
+
--component-current-location-bg-color: var(
|
|
131
|
+
--docs-current-location-bg-color,
|
|
132
|
+
var(--site-current-location-bg-color, var(--default-current-location-bg-color))
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
/* The three grounds a row in the documentation sidebar can have: resting,
|
|
136
|
+
under the pointer, and the page you are on. All three used to be written
|
|
137
|
+
into docs/components/navigation.css as literals, so the four --docs-* names
|
|
138
|
+
the shipped themes declare for them resolved to nothing.
|
|
139
|
+
------------------------------------------------------------------------
|
|
140
|
+
RESTING is `transparent`, which is not a placeholder — it is what Leed
|
|
141
|
+
ships. The sidebar draws its rows on the page's own ground and lets weight
|
|
142
|
+
and color carry state, so a theme setting --docs-sidebar-link-bg-color is
|
|
143
|
+
opting INTO a tinted row rather than changing the shade of an existing one.
|
|
144
|
+
|
|
145
|
+
HOVER and CURRENT both default to a 7% wash of --component-primary-light,
|
|
146
|
+
which is the literal the two navigation.css rules carried. They are two
|
|
147
|
+
tokens rather than one because a site may want the row it is on to read
|
|
148
|
+
differently from the row under the pointer; CURRENT falls through to HOVER
|
|
149
|
+
so that a site setting only the hover ground still gets the pair in step,
|
|
150
|
+
which is the relationship the shared literal expressed.
|
|
151
|
+
|
|
152
|
+
Note that docs/layouts/charlie.css paints both of those rows
|
|
153
|
+
`bg-transparent` at higher specificity, so on charlie these two tokens are
|
|
154
|
+
inert until the site takes that override off. */
|
|
155
|
+
--component-sidebar-link-bg-color: var(--docs-sidebar-link-bg-color, var(--site-sidebar-link-bg-color, transparent));
|
|
156
|
+
--component-sidebar-link-hover-bg-color: var(
|
|
157
|
+
--docs-sidebar-link-hover-bg-color,
|
|
158
|
+
var(--site-sidebar-link-hover-bg-color, var(--component-primary-light))
|
|
159
|
+
);
|
|
160
|
+
--component-sidebar-link-current-bg-color: var(
|
|
161
|
+
--docs-sidebar-link-current-bg-color,
|
|
162
|
+
var(--site-sidebar-link-current-bg-color, var(--component-sidebar-link-hover-bg-color))
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
/* The 7% wash, restated for engines that have color-mix(). This mirrors
|
|
166
|
+
exactly what Tailwind emitted for the `bg-(--component-primary-light)/7`
|
|
167
|
+
literals these tokens replaced: the solid color above is the degraded
|
|
168
|
+
fallback, and this is the real value everywhere it is supported. Keeping
|
|
169
|
+
both halves means dropping the literal changed no pixel on either path. */
|
|
170
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
171
|
+
--component-sidebar-link-hover-bg-color: var(
|
|
172
|
+
--docs-sidebar-link-hover-bg-color,
|
|
173
|
+
var(--site-sidebar-link-hover-bg-color, color-mix(in oklab, var(--component-primary-light) 7%, transparent))
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Component anchor colors with intelligent fallbacks */
|
|
178
|
+
--component-anchor-text-color: var(
|
|
179
|
+
--docs-body-link-color,
|
|
180
|
+
var(--site-anchor-text-color, var(--default-anchor-text-color))
|
|
181
|
+
);
|
|
182
|
+
--component-anchor-text-color-hover: var(
|
|
183
|
+
--docs-body-link-hover-color,
|
|
184
|
+
var(--site-anchor-text-color-hover, var(--default-anchor-text-color-hover))
|
|
185
|
+
);
|
|
186
|
+
--component-anchor-text-color-active: var(
|
|
187
|
+
--docs-body-link-active-color,
|
|
188
|
+
var(--site-anchor-text-color-active, var(--default-anchor-text-color-active))
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
/* Component copied content colors with intelligent fallbacks */
|
|
192
|
+
--component-copied-content-bg-color: var(
|
|
193
|
+
--docs-primary-color,
|
|
194
|
+
var(--site-copied-content-bg-color, var(--default-copied-content-bg-color))
|
|
195
|
+
);
|
|
196
|
+
--component-copied-content-text-color: var(
|
|
197
|
+
--docs-copied-content-text-color,
|
|
198
|
+
var(--site-copied-content-text-color, var(--default-copied-content-text-color))
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
/* Component border colors with intelligent fallbacks */
|
|
202
|
+
--component-border-color: var(--docs-border-color, var(--site-border-color, var(--default-border-color)));
|
|
203
|
+
|
|
204
|
+
/* Component menu colors with intelligent fallbacks */
|
|
205
|
+
--component-menu-bg-color: var(--docs-menu-bg-color, var(--site-menu-bg-color, var(--default-menu-bg-color)));
|
|
206
|
+
|
|
207
|
+
/* Component button secondary colors with intelligent fallbacks */
|
|
208
|
+
--component-button-secondary-bg-color: var(
|
|
209
|
+
--docs-button-secondary-bg-color,
|
|
210
|
+
var(--site-button-secondary-bg-color, var(--default-button-secondary-bg-color))
|
|
211
|
+
);
|
|
212
|
+
--component-button-secondary-bg-hover-color: var(
|
|
213
|
+
--docs-button-secondary-bg-hover-color,
|
|
214
|
+
var(--site-button-secondary-bg-hover-color, var(--default-button-secondary-bg-hover-color))
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
/* Component pagination icon colors with intelligent fallbacks */
|
|
218
|
+
--component-pagination-icon-color: var(
|
|
219
|
+
--docs-pagination-icon-color,
|
|
220
|
+
var(--site-pagination-icon-color, var(--default-pagination-icon-color))
|
|
221
|
+
);
|
|
222
|
+
--component-pagination-icon-color-hover: var(
|
|
223
|
+
--docs-pagination-icon-color-hover,
|
|
224
|
+
var(--site-pagination-icon-color-hover, var(--default-pagination-icon-color-hover))
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
/* Component step light color with intelligent fallbacks */
|
|
228
|
+
--component-step-light-color: var(
|
|
229
|
+
--docs-step-light-color,
|
|
230
|
+
var(--site-step-light-color, var(--default-step-light-color))
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
/* Component fixed body background color with intelligent fallbacks */
|
|
234
|
+
--component-fixed-body-bg-color: var(
|
|
235
|
+
--docs-fixed-body-bg-color,
|
|
236
|
+
var(--site-fixed-body-bg-color, var(--default-fixed-body-bg-color))
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
/* Component footer social icons colors with intelligent fallbacks */
|
|
240
|
+
--component-footer-social-icons-color: var(
|
|
241
|
+
--docs-footer-social-icons-color,
|
|
242
|
+
var(--site-footer-social-icons-color, var(--component-text-color))
|
|
243
|
+
);
|
|
244
|
+
--component-footer-social-icons-hover-color: var(
|
|
245
|
+
--docs-footer-social-icons-hover-color,
|
|
246
|
+
var(--site-footer-social-icons-hover-color, var(--default-footer-social-icons-hover-color))
|
|
247
|
+
);
|
|
248
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Default color variables using Tailwind color names */
|
|
3
|
+
--default-header-1-color: var(--color-gray-900);
|
|
4
|
+
--default-header-2-color: var(--color-gray-900);
|
|
5
|
+
--default-header-3-color: var(--color-gray-800);
|
|
6
|
+
--default-header-4-color: var(--color-gray-800);
|
|
7
|
+
--default-header-5-color: var(--color-gray-800);
|
|
8
|
+
--default-header-6-color: var(--color-gray-800);
|
|
9
|
+
|
|
10
|
+
--default-primary-color: var(--color-blue-500);
|
|
11
|
+
--default-primary-color-hover: var(--color-blue-600);
|
|
12
|
+
--default-primary-light: var(--color-blue-400);
|
|
13
|
+
--default-text-color: var(--color-gray-700);
|
|
14
|
+
--default-bg-color: var(--color-white);
|
|
15
|
+
--default-header-border-color: var(--color-gray-500);
|
|
16
|
+
--default-header-bg-color: var(--color-gray-100);
|
|
17
|
+
--default-code-bg-color: var(--color-gray-100);
|
|
18
|
+
--default-code-inner-bg-color: var(--color-white);
|
|
19
|
+
--default-code-border-color: var(--color-gray-950);
|
|
20
|
+
--default-code-bg-color-selection: var(--color-blue-100);
|
|
21
|
+
--default-form-border-color: var(--color-gray-300);
|
|
22
|
+
--default-form-border-color-hover: var(--color-gray-500);
|
|
23
|
+
--default-search-button-bg-color: var(--color-white);
|
|
24
|
+
--default-search-modal-bg-color: var(--color-white);
|
|
25
|
+
--default-current-location-text-color: var(--color-sky-800);
|
|
26
|
+
--default-current-location-bg-color: var(--color-slate-50);
|
|
27
|
+
/* Deliberately transparent, and the same in both schemes. Leed ships no card
|
|
28
|
+
ground: docs/api.css used to read --docs-card-bg-color raw, so with no
|
|
29
|
+
color theme the card's background-color was invalid and computed to
|
|
30
|
+
transparent. Stating that as the default keeps the rendering identical
|
|
31
|
+
while giving --component-card-bg-color a third rung like every other
|
|
32
|
+
token. A theme that wants a card to sit apart from the page sets
|
|
33
|
+
--docs-card-bg-color; a themeless site sets --site-card-bg-color. */
|
|
34
|
+
--default-card-bg-color: transparent;
|
|
35
|
+
--default-anchor-text-color: var(--color-sky-600);
|
|
36
|
+
--default-anchor-text-color-hover: var(--color-sky-700);
|
|
37
|
+
--default-anchor-text-color-active: var(--color-sky-900);
|
|
38
|
+
--default-copied-content-bg-color: var(--color-pink-800);
|
|
39
|
+
--default-copied-content-text-color: var(--color-white);
|
|
40
|
+
--default-border-color: var(--color-slate-300);
|
|
41
|
+
--default-menu-bg-color: var(--color-white);
|
|
42
|
+
--default-step-light-color: var(--color-gray-200);
|
|
43
|
+
--default-fixed-body-bg-color: var(--color-slate-950);
|
|
44
|
+
--default-footer-social-icons-hover-color: var(--color-gray-500);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* These five had a dark-mode value and no light-mode one, so in light mode
|
|
48
|
+
* the var() chain ran off the end and the property was invalid: a
|
|
49
|
+
* secondary button had no background, the footer's social icons and the
|
|
50
|
+
* pagination arrows had no color. Stated for both modes now.
|
|
51
|
+
*/
|
|
52
|
+
--default-button-secondary-bg-color: var(--color-gray-100);
|
|
53
|
+
--default-button-secondary-bg-hover-color: var(--color-gray-200);
|
|
54
|
+
--default-footer-social-icons-color: var(--default-text-color);
|
|
55
|
+
--default-pagination-icon-color: var(--color-gray-500);
|
|
56
|
+
--default-pagination-icon-color-hover: var(--color-gray-700);
|
|
57
|
+
|
|
58
|
+
/* Icons — Font Awesome 7 glyphs, each a Free icon. Override any one with
|
|
59
|
+
--site-icon-*; see utils/icons.css. */
|
|
60
|
+
--default-icon-menu: "\f0c9"; /* bars */
|
|
61
|
+
--default-icon-close: "\f00d"; /* xmark */
|
|
62
|
+
--default-icon-search: "\f002"; /* magnifying-glass */
|
|
63
|
+
--default-icon-chevron-right: "\f054";
|
|
64
|
+
--default-icon-chevron-left: "\f053";
|
|
65
|
+
--default-icon-chevron-down: "\f078";
|
|
66
|
+
--default-icon-caret-right: "\f0da";
|
|
67
|
+
--default-icon-arrow-left: "\f060";
|
|
68
|
+
--default-icon-arrow-right: "\f061";
|
|
69
|
+
--default-icon-arrow-right-long: "\f178";
|
|
70
|
+
--default-icon-external: "\f08e"; /* arrow-up-right-from-square */
|
|
71
|
+
--default-icon-external-square: "\f14c"; /* square-arrow-up-right */
|
|
72
|
+
--default-icon-ellipsis: "\f141";
|
|
73
|
+
--default-icon-hashtag: "#";
|
|
74
|
+
--default-icon-clock: "\f017";
|
|
75
|
+
--default-icon-copy: "\f0c5";
|
|
76
|
+
--default-icon-check: "\f00c";
|
|
77
|
+
--default-icon-list: "\f0ca"; /* list-ul */
|
|
78
|
+
--default-icon-home: "\f015"; /* house */
|
|
79
|
+
--default-icon-sort: "\f338"; /* up-down */
|
|
80
|
+
--default-icon-spinner: "\f1ce"; /* circle-notch */
|
|
81
|
+
--default-icon-panel-toggle: "\f152"; /* square-caret-right */
|
|
82
|
+
--default-icon-alert-note: "\f05a"; /* circle-info */
|
|
83
|
+
--default-icon-alert-tip: "\f135"; /* rocket */
|
|
84
|
+
--default-icon-alert-info: "\f0eb"; /* lightbulb */
|
|
85
|
+
--default-icon-alert-warning: "\f071"; /* triangle-exclamation */
|
|
86
|
+
--default-icon-alert-danger: "\f714"; /* skull-crossbones */
|
|
87
|
+
|
|
88
|
+
@media (prefers-color-scheme: dark) {
|
|
89
|
+
/* Default dark mode color variables using Tailwind color names */
|
|
90
|
+
/* heading colors */
|
|
91
|
+
--default-header-1-color: var(--color-gray-200);
|
|
92
|
+
--default-header-2-color: var(--color-gray-200);
|
|
93
|
+
--default-header-3-color: var(--color-gray-100);
|
|
94
|
+
--default-header-4-color: var(--color-gray-100);
|
|
95
|
+
--default-header-5-color: var(--color-slate-100);
|
|
96
|
+
--default-header-6-color: var(--color-slate-100);
|
|
97
|
+
|
|
98
|
+
--default-primary-color: var(--color-blue-400);
|
|
99
|
+
--default-primary-color-hover: var(--color-blue-500);
|
|
100
|
+
--default-primary-light: var(--color-blue-300);
|
|
101
|
+
--default-text-color: var(--color-slate-400);
|
|
102
|
+
--default-bg-color: var(--color-slate-950);
|
|
103
|
+
--default-header-border-color: var(--color-slate-200);
|
|
104
|
+
--default-header-bg-color: var(--color-slate-900);
|
|
105
|
+
--default-code-bg-color: var(--color-slate-900);
|
|
106
|
+
--default-code-inner-bg-color: var(--color-slate-950);
|
|
107
|
+
--default-code-border-color: var(--color-white);
|
|
108
|
+
--default-code-bg-color-selection: var(--color-blue-800);
|
|
109
|
+
--default-form-border-color: var(--color-white);
|
|
110
|
+
--default-form-border-color-hover: var(--color-white);
|
|
111
|
+
--default-search-button-bg-color: var(--color-slate-950);
|
|
112
|
+
--default-search-modal-bg-color: var(--color-slate-950);
|
|
113
|
+
--default-current-location-text-color: var(--color-sky-500);
|
|
114
|
+
--default-current-location-bg-color: var(--color-slate-800);
|
|
115
|
+
--default-anchor-text-color: var(--color-sky-600);
|
|
116
|
+
--default-anchor-text-color-hover: var(--color-sky-400);
|
|
117
|
+
--default-copied-content-text-color: var(--color-white);
|
|
118
|
+
--default-copied-content-bg-color: var(--color-pink-800);
|
|
119
|
+
--default-border-color: var(--color-slate-500);
|
|
120
|
+
--default-menu-bg-color: var(--color-slate-900);
|
|
121
|
+
--default-button-secondary-bg-color: var(--color-gray-600);
|
|
122
|
+
--default-button-secondary-bg-hover-color: var(--color-gray-700);
|
|
123
|
+
--default-pagination-icon-color: var(--color-gray-400);
|
|
124
|
+
--default-pagination-icon-color-hover: var(--color-gray-200);
|
|
125
|
+
--default-step-light-color: var(--color-slate-800);
|
|
126
|
+
--default-footer-social-icons-color: var(--default-text-color);
|
|
127
|
+
--default-footer-social-icons-hover-color: var(--color-gray-400);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@layer base {
|
|
132
|
+
[x-cloak] {
|
|
133
|
+
display: none !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
img[x-zoomable]:hover {
|
|
137
|
+
@apply cursor-zoom-in;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Diagrams open the same viewer, on a delegated click rather than the
|
|
141
|
+
directive — see the note in zoomable.js. The affordance has to be here
|
|
142
|
+
because there is no attribute on them to hang it off. */
|
|
143
|
+
pre.mermaid:hover {
|
|
144
|
+
@apply cursor-zoom-in;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.zoomable-fullscreen-container {
|
|
148
|
+
@apply fixed inset-0 bg-black/90 hidden z-99999 cursor-zoom-out overflow-hidden touch-none w-screen h-dvh;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.zoomable-fullscreen-image {
|
|
152
|
+
transform: translate(-50%, -50%);
|
|
153
|
+
|
|
154
|
+
@apply absolute top-1/2 left-1/2 max-w-[90%] max-h-[90%] transition-transform duration-200 ease-in-out touch-none select-none cursor-zoom-out;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* The stage carries the page's own ground, and it is not decoration.
|
|
158
|
+
A diagram themed from CSS variables resolves them against the page it was
|
|
159
|
+
cloned out of, so its strokes and text are whatever reads well *there* —
|
|
160
|
+
ink on parchment in a light theme. Dropped straight onto the 90% black
|
|
161
|
+
backdrop, that is dark-on-dark and close to unreadable. Giving the stage
|
|
162
|
+
the same background the diagram had in the document puts it back on the
|
|
163
|
+
ground its colors were chosen for. */
|
|
164
|
+
.zoomable-fullscreen-svg {
|
|
165
|
+
@apply rounded-lg p-6;
|
|
166
|
+
|
|
167
|
+
background: var(--component-bg-color, #ffffff);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* The diagram arrives wrapped in a shallow copy of the element it sits in on
|
|
171
|
+
the page, so that a site's own `pre.mermaid svg { ... }` rules still match
|
|
172
|
+
here — see the note in zoomable.js. That carrier is present to be matched
|
|
173
|
+
by a selector, not to lay anything out, so it gives up its own box: a
|
|
174
|
+
`<pre>` would otherwise bring margins, a background and `white-space`
|
|
175
|
+
into a stage that has already set all three. */
|
|
176
|
+
.zoomable-fullscreen-svg > * {
|
|
177
|
+
@apply block w-full h-full;
|
|
178
|
+
|
|
179
|
+
margin: 0;
|
|
180
|
+
padding: 0;
|
|
181
|
+
border: 0;
|
|
182
|
+
background: none;
|
|
183
|
+
white-space: normal;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* The SVG stage is a wrapper, so the diagram inside has to be told to fill
|
|
187
|
+
it — an <svg> does not stretch to its parent the way a replaced element
|
|
188
|
+
does. `max-width: none` overrides the inline width Mermaid sizes each
|
|
189
|
+
diagram to for the column it rendered into, which would otherwise cap it
|
|
190
|
+
at that width however far it is zoomed.
|
|
191
|
+
|
|
192
|
+
A descendant selector rather than a child one, because of the carrier. */
|
|
193
|
+
.zoomable-fullscreen-svg svg {
|
|
194
|
+
@apply w-full h-full;
|
|
195
|
+
|
|
196
|
+
max-width: none !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.video-player {
|
|
200
|
+
@apply relative aspect-video w-full;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
div[data-cloudflare-video] > iframe /* old mechanism, pre markdown */,
|
|
204
|
+
.embedded-cf-video > iframe,
|
|
205
|
+
.embedded-youtube > iframe {
|
|
206
|
+
@apply border-0 top-0 left-0 w-full h-full;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/*
|
|
210
|
+
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
211
|
+
so we've added these compatibility styles to make sure everything still
|
|
212
|
+
looks the same as it did with Tailwind CSS v3.
|
|
213
|
+
|
|
214
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
215
|
+
color utility to any element that depends on these defaults.
|
|
216
|
+
*/
|
|
217
|
+
*,
|
|
218
|
+
::after,
|
|
219
|
+
::before,
|
|
220
|
+
::backdrop,
|
|
221
|
+
::file-selector-button {
|
|
222
|
+
border-color: var(--color-gray-200, currentColor);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Anchor links land below a fixed header rather than under it.
|
|
227
|
+
*
|
|
228
|
+
* --height-header and --height-toc are set at runtime by documentation.js,
|
|
229
|
+
* which only loads on documentation pages. Everywhere else both were
|
|
230
|
+
* undefined, so this calc() was invalid and the whole declaration was
|
|
231
|
+
* dropped — scroll-padding-top computed to `auto` and every in-page anchor
|
|
232
|
+
* on a non-docs site scrolled its target under the header.
|
|
233
|
+
*
|
|
234
|
+
* The fallbacks make the calc valid whatever is set, and a site with a fixed
|
|
235
|
+
* header declares its own height once:
|
|
236
|
+
*
|
|
237
|
+
* :root { --site-header-height: 68px; }
|
|
238
|
+
*/
|
|
239
|
+
html {
|
|
240
|
+
scroll-padding-top: calc(var(--height-header, var(--site-header-height, 0px)) + var(--height-toc, 0px));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
html,
|
|
244
|
+
body {
|
|
245
|
+
overscroll-behavior: none;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@layer utilities {
|
|
250
|
+
/**
|
|
251
|
+
* 567px min width
|
|
252
|
+
* 500px max height
|
|
253
|
+
*/
|
|
254
|
+
@media (min-width: 35.4375rem) and (max-height: 31.25rem) and (orientation: landscape) {
|
|
255
|
+
.leed-mobile-video {
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 100%;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|