nuxtseo-shared 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content.d.mts +39 -39
- package/dist/content.mjs +56 -29
- package/dist/devtools.d.mts +10 -10
- package/dist/devtools.mjs +37 -43
- package/dist/i18n.d.mts +29 -17
- package/dist/i18n.mjs +109 -108
- package/dist/index.d.mts +3 -7
- package/dist/index.mjs +3 -7
- package/dist/kit.d.mts +22 -12
- package/dist/kit.mjs +79 -73
- package/dist/layer-devtools/app.config.ts +27 -0
- package/dist/layer-devtools/assets/css/global.css +377 -0
- package/dist/layer-devtools/components/DevtoolsError.vue +78 -0
- package/dist/layer-devtools/components/DevtoolsLoading.vue +8 -0
- package/dist/layer-devtools/components/DevtoolsProductionError.vue +41 -0
- package/dist/layer-devtools/components/OCodeBlock.vue +23 -0
- package/{src/client → dist/layer-devtools}/components/OSectionBlock.vue +13 -22
- package/dist/layer-devtools/composables/rpc.ts +39 -0
- package/dist/layer-devtools/composables/shiki.ts +46 -0
- package/dist/layer-devtools/composables/state.ts +33 -0
- package/dist/layer-devtools/nuxt.config.ts +22 -0
- package/dist/module.d.mts +14 -0
- package/dist/module.mjs +33 -0
- package/dist/pro.d.mts +6 -7
- package/dist/pro.mjs +64 -64
- package/dist/telemetry.d.mts +11 -0
- package/dist/telemetry.mjs +49 -0
- package/package.json +22 -47
- package/dist/client/composables/rpc.d.mts +0 -21
- package/dist/client/composables/rpc.d.ts +0 -21
- package/dist/client/composables/rpc.mjs +0 -25
- package/dist/client/composables/shiki.d.mts +0 -13
- package/dist/client/composables/shiki.d.ts +0 -13
- package/dist/client/composables/shiki.mjs +0 -39
- package/dist/client/index.d.mts +0 -7
- package/dist/client/index.d.ts +0 -7
- package/dist/client/index.mjs +0 -6
- package/dist/content.d.ts +0 -82
- package/dist/devtools.d.ts +0 -14
- package/dist/i18n.d.ts +0 -32
- package/dist/index.d.ts +0 -7
- package/dist/kit.d.ts +0 -32
- package/dist/pro.d.ts +0 -18
- package/dist/runtime/server/kit.d.mts +0 -7
- package/dist/runtime/server/kit.d.ts +0 -7
- package/dist/runtime/server/kit.mjs +0 -27
- package/src/client/components/OCodeBlock.vue +0 -28
- /package/{src/client → dist/layer-devtools}/components/NuxtSeoLogo.vue +0 -0
package/dist/kit.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { NuxtModule, NuxtPage } from "nuxt/schema";
|
|
2
|
+
import { Nuxt as Nuxt$1 } from "@nuxt/schema";
|
|
3
|
+
import { Nitro } from "nitropack";
|
|
4
|
+
import { NitroConfig } from "nitropack/types";
|
|
5
5
|
|
|
6
|
+
//#region src/kit.d.ts
|
|
6
7
|
declare function detectTarget(options?: {
|
|
7
|
-
|
|
8
|
+
static?: boolean;
|
|
8
9
|
}): string | undefined;
|
|
9
10
|
declare function resolveNitroPreset(nitroConfig?: NitroConfig): string;
|
|
10
11
|
/**
|
|
@@ -12,21 +13,30 @@ declare function resolveNitroPreset(nitroConfig?: NitroConfig): string;
|
|
|
12
13
|
*
|
|
13
14
|
* These options may not be the resolved options that the module actually uses.
|
|
14
15
|
*/
|
|
15
|
-
declare function getNuxtModuleOptions(module: string | NuxtModule, nuxt?: Nuxt): Promise<Record<string, any>>;
|
|
16
|
-
declare function isNuxtGenerate(nuxt?: Nuxt): boolean;
|
|
16
|
+
declare function getNuxtModuleOptions(module: string | NuxtModule, nuxt?: Nuxt$1): Promise<Record<string, any>>;
|
|
17
|
+
declare function isNuxtGenerate(nuxt?: Nuxt$1): boolean;
|
|
17
18
|
/**
|
|
18
19
|
* Generate TypeScript type augmentations for a Nuxt module.
|
|
19
20
|
*/
|
|
20
21
|
declare function extendTypes(module: string, template: (options: {
|
|
21
|
-
|
|
22
|
+
typesPath: string;
|
|
22
23
|
}) => string | Promise<string>): void;
|
|
23
24
|
/**
|
|
24
25
|
* Create a promise that resolves when Nuxt pages are resolved.
|
|
25
26
|
*/
|
|
26
|
-
declare function createPagesPromise(nuxt?: Nuxt): Promise<NuxtPage[]>;
|
|
27
|
+
declare function createPagesPromise(nuxt?: Nuxt$1): Promise<NuxtPage[]>;
|
|
27
28
|
/**
|
|
28
29
|
* Create a promise that resolves when Nitro is initialized.
|
|
29
30
|
*/
|
|
30
|
-
declare function createNitroPromise(nuxt?: Nuxt): Promise<Nitro>;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
declare function createNitroPromise(nuxt?: Nuxt$1): Promise<Nitro>;
|
|
32
|
+
interface NuxtContentVersion {
|
|
33
|
+
version: 2 | 3;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Detect which version of @nuxt/content is installed.
|
|
37
|
+
*
|
|
38
|
+
* Returns `false` when @nuxt/content is not installed or the version is unrecognised.
|
|
39
|
+
*/
|
|
40
|
+
declare function resolveNuxtContentVersion(): Promise<false | NuxtContentVersion>;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { NuxtContentVersion, createNitroPromise, createPagesPromise, detectTarget, extendTypes, getNuxtModuleOptions, isNuxtGenerate, resolveNitroPreset, resolveNuxtContentVersion };
|
package/dist/kit.mjs
CHANGED
|
@@ -1,91 +1,97 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { relative } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { addTemplate, createResolver, hasNuxtModule, hasNuxtModuleCompatibility, loadNuxtModuleInstance, tryUseNuxt, useNuxt } from "@nuxt/kit";
|
|
2
|
+
import { relative } from "pathe";
|
|
3
|
+
import { env, provider } from "std-env";
|
|
4
|
+
//#region src/kit.ts
|
|
5
5
|
const autodetectableProviders = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
azure_static: "azure",
|
|
7
|
+
cloudflare_pages: "cloudflare-pages",
|
|
8
|
+
netlify: "netlify",
|
|
9
|
+
stormkit: "stormkit",
|
|
10
|
+
vercel: "vercel",
|
|
11
|
+
cleavr: "cleavr",
|
|
12
|
+
stackblitz: "stackblitz"
|
|
13
13
|
};
|
|
14
14
|
const autodetectableStaticProviders = {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
netlify: "netlify-static",
|
|
16
|
+
vercel: "vercel-static"
|
|
17
17
|
};
|
|
18
18
|
function detectTarget(options = {}) {
|
|
19
|
-
|
|
19
|
+
return options?.static ? autodetectableStaticProviders[provider] : autodetectableProviders[provider];
|
|
20
20
|
}
|
|
21
21
|
function resolveNitroPreset(nitroConfig) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (!preset)
|
|
29
|
-
preset = env.NITRO_PRESET || env.SERVER_PRESET || detectTarget() || "node-server";
|
|
30
|
-
return preset.replace("_", "-");
|
|
22
|
+
nitroConfig = nitroConfig || tryUseNuxt()?.options?.nitro;
|
|
23
|
+
if (provider === "stackblitz" || provider === "codesandbox") return provider;
|
|
24
|
+
let preset;
|
|
25
|
+
if (nitroConfig && nitroConfig?.preset) preset = nitroConfig.preset;
|
|
26
|
+
if (!preset) preset = env.NITRO_PRESET || env.SERVER_PRESET || detectTarget() || "node-server";
|
|
27
|
+
return preset.replace("_", "-");
|
|
31
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Get the user provided options for a Nuxt module.
|
|
31
|
+
*
|
|
32
|
+
* These options may not be the resolved options that the module actually uses.
|
|
33
|
+
*/
|
|
32
34
|
async function getNuxtModuleOptions(module, nuxt = useNuxt()) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
let inlineOptions = {};
|
|
45
|
-
if (moduleEntry)
|
|
46
|
-
inlineOptions = moduleEntry[1];
|
|
47
|
-
if (nuxtModule.getOptions)
|
|
48
|
-
return nuxtModule.getOptions(inlineOptions, nuxt);
|
|
49
|
-
return inlineOptions;
|
|
35
|
+
const moduleMeta = (typeof module === "string" ? { name: module } : await module.getMeta?.()) || {};
|
|
36
|
+
const { nuxtModule } = await loadNuxtModuleInstance(module, nuxt);
|
|
37
|
+
let moduleEntry;
|
|
38
|
+
for (const m of nuxt.options.modules) if (Array.isArray(m) && m.length >= 2) {
|
|
39
|
+
const _module = m[0];
|
|
40
|
+
if ((typeof _module === "string" ? _module : (await _module.getMeta?.())?.name || "") === moduleMeta.name) moduleEntry = m;
|
|
41
|
+
}
|
|
42
|
+
let inlineOptions = {};
|
|
43
|
+
if (moduleEntry) inlineOptions = moduleEntry[1];
|
|
44
|
+
if (nuxtModule.getOptions) return nuxtModule.getOptions(inlineOptions, nuxt);
|
|
45
|
+
return inlineOptions;
|
|
50
46
|
}
|
|
51
47
|
function isNuxtGenerate(nuxt = useNuxt()) {
|
|
52
|
-
|
|
53
|
-
"static",
|
|
54
|
-
"github-pages"
|
|
55
|
-
].includes(resolveNitroPreset(nuxt.options.nitro));
|
|
48
|
+
return nuxt.options.nitro.static || nuxt.options._generate || ["static", "github-pages"].includes(resolveNitroPreset(nuxt.options.nitro));
|
|
56
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Generate TypeScript type augmentations for a Nuxt module.
|
|
52
|
+
*/
|
|
57
53
|
function extendTypes(module, template) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
nuxt.hooks.hook("prepare:types", ({ references }) => {
|
|
72
|
-
references.push({ path: resolve(nuxt.options.buildDir, `module/${module}.d.ts`) });
|
|
73
|
-
});
|
|
54
|
+
const nuxt = useNuxt();
|
|
55
|
+
const { resolve } = createResolver(import.meta.url);
|
|
56
|
+
addTemplate({
|
|
57
|
+
filename: `module/${module}.d.ts`,
|
|
58
|
+
getContents: async () => {
|
|
59
|
+
return `// Generated by ${module}\n${await template({ typesPath: relative(resolve(nuxt.options.rootDir, nuxt.options.buildDir, "module"), resolve("runtime/types")) })}\nexport {}\n`;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
nuxt.hooks.hook("prepare:types", ({ references }) => {
|
|
63
|
+
references.push({ path: resolve(nuxt.options.buildDir, `module/${module}.d.ts`) });
|
|
64
|
+
});
|
|
74
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Create a promise that resolves when Nuxt pages are resolved.
|
|
68
|
+
*/
|
|
75
69
|
function createPagesPromise(nuxt = useNuxt()) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
83
|
-
});
|
|
70
|
+
return new Promise((resolve) => {
|
|
71
|
+
nuxt.hooks.hook("modules:done", () => {
|
|
72
|
+
if (typeof nuxt.options.pages === "boolean" && nuxt.options.pages === false || typeof nuxt.options.pages === "object" && !nuxt.options.pages.enabled) return resolve([]);
|
|
73
|
+
nuxt.hook("pages:resolved", (pages) => resolve(pages));
|
|
74
|
+
});
|
|
75
|
+
});
|
|
84
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Create a promise that resolves when Nitro is initialized.
|
|
79
|
+
*/
|
|
85
80
|
function createNitroPromise(nuxt = useNuxt()) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
return new Promise((resolve) => {
|
|
82
|
+
nuxt.hooks.hook("nitro:init", (nitro) => resolve(nitro));
|
|
83
|
+
});
|
|
89
84
|
}
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Detect which version of @nuxt/content is installed.
|
|
87
|
+
*
|
|
88
|
+
* Returns `false` when @nuxt/content is not installed or the version is unrecognised.
|
|
89
|
+
*/
|
|
90
|
+
async function resolveNuxtContentVersion() {
|
|
91
|
+
if (!hasNuxtModule("@nuxt/content")) return false;
|
|
92
|
+
if (await hasNuxtModuleCompatibility("@nuxt/content", "^3")) return { version: 3 };
|
|
93
|
+
if (await hasNuxtModuleCompatibility("@nuxt/content", "^2")) return { version: 2 };
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { createNitroPromise, createPagesPromise, detectTarget, extendTypes, getNuxtModuleOptions, isNuxtGenerate, resolveNitroPreset, resolveNuxtContentVersion };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default defineAppConfig({
|
|
2
|
+
ui: {
|
|
3
|
+
colors: {
|
|
4
|
+
primary: 'green',
|
|
5
|
+
neutral: 'neutral',
|
|
6
|
+
},
|
|
7
|
+
button: {
|
|
8
|
+
defaultVariants: {
|
|
9
|
+
color: 'neutral',
|
|
10
|
+
variant: 'ghost',
|
|
11
|
+
size: 'sm',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
badge: {
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
color: 'neutral',
|
|
17
|
+
variant: 'subtle',
|
|
18
|
+
size: 'xs',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
tooltip: {
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
delayDuration: 0,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
})
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "@nuxt/ui";
|
|
3
|
+
|
|
4
|
+
@theme {
|
|
5
|
+
--font-sans: 'Hubot Sans', ui-sans-serif, system-ui, sans-serif;
|
|
6
|
+
--font-mono: 'Fira Code', ui-monospace, monospace;
|
|
7
|
+
|
|
8
|
+
/* Neutral palette, true gray with minimal chroma */
|
|
9
|
+
--color-neutral-50: oklch(98% 0.002 260);
|
|
10
|
+
--color-neutral-100: oklch(96% 0.003 260);
|
|
11
|
+
--color-neutral-200: oklch(91% 0.005 260);
|
|
12
|
+
--color-neutral-300: oklch(85% 0.008 260);
|
|
13
|
+
--color-neutral-400: oklch(65% 0.015 260);
|
|
14
|
+
--color-neutral-500: oklch(50% 0.018 260);
|
|
15
|
+
--color-neutral-600: oklch(40% 0.015 260);
|
|
16
|
+
--color-neutral-700: oklch(30% 0.012 260);
|
|
17
|
+
--color-neutral-800: oklch(20% 0.01 260);
|
|
18
|
+
--color-neutral-900: oklch(14% 0.008 260);
|
|
19
|
+
--color-neutral-950: oklch(9% 0.005 260);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:root {
|
|
23
|
+
/* Brand colors - Nuxt SEO green */
|
|
24
|
+
--seo-green: oklch(65% 0.2 145);
|
|
25
|
+
|
|
26
|
+
/* Semantic colors */
|
|
27
|
+
--color-surface: var(--color-neutral-50);
|
|
28
|
+
--color-surface-elevated: white;
|
|
29
|
+
--color-surface-sunken: var(--color-neutral-100);
|
|
30
|
+
--color-border: var(--color-neutral-200);
|
|
31
|
+
--color-border-subtle: var(--color-neutral-100);
|
|
32
|
+
--color-text: var(--color-neutral-900);
|
|
33
|
+
--color-text-muted: var(--color-neutral-500);
|
|
34
|
+
--color-text-subtle: var(--color-neutral-400);
|
|
35
|
+
|
|
36
|
+
--radius-sm: 6px;
|
|
37
|
+
--radius-md: 10px;
|
|
38
|
+
--radius-lg: 14px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dark {
|
|
42
|
+
--color-surface: var(--color-neutral-950);
|
|
43
|
+
--color-surface-elevated: var(--color-neutral-900);
|
|
44
|
+
--color-surface-sunken: oklch(7% 0.004 260);
|
|
45
|
+
--color-border: var(--color-neutral-800);
|
|
46
|
+
--color-border-subtle: oklch(16% 0.008 260);
|
|
47
|
+
--color-text: var(--color-neutral-100);
|
|
48
|
+
--color-text-muted: var(--color-neutral-400);
|
|
49
|
+
--color-text-subtle: var(--color-neutral-500);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Base styles */
|
|
53
|
+
body {
|
|
54
|
+
-webkit-font-smoothing: antialiased;
|
|
55
|
+
-moz-osx-font-smoothing: grayscale;
|
|
56
|
+
font-family: var(--font-sans);
|
|
57
|
+
font-feature-settings: 'liga' 1, 'calt' 1;
|
|
58
|
+
background: var(--color-surface);
|
|
59
|
+
color: var(--color-text);
|
|
60
|
+
line-height: 1.6;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Typography */
|
|
64
|
+
p, h1, h2, h3, h4, h5, h6 {
|
|
65
|
+
overflow-wrap: break-word;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
p {
|
|
69
|
+
text-wrap: pretty;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h1, h2, h3, h4, h5, h6 {
|
|
73
|
+
text-wrap: balance;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
letter-spacing: -0.01em;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Scrollbar styling */
|
|
79
|
+
* {
|
|
80
|
+
scrollbar-width: thin;
|
|
81
|
+
scrollbar-color: oklch(50% 0.015 260 / 0.25) transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
::-webkit-scrollbar {
|
|
85
|
+
width: 8px;
|
|
86
|
+
height: 8px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
::-webkit-scrollbar-track {
|
|
90
|
+
background: transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
::-webkit-scrollbar-thumb {
|
|
94
|
+
background-color: oklch(50% 0.015 260 / 0.25);
|
|
95
|
+
border-radius: 4px;
|
|
96
|
+
border: 2px solid transparent;
|
|
97
|
+
background-clip: content-box;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
::-webkit-scrollbar-thumb:hover {
|
|
101
|
+
background-color: oklch(50% 0.015 260 / 0.4);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dark ::-webkit-scrollbar-thumb {
|
|
105
|
+
background-color: oklch(55% 0.015 260 / 0.2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dark ::-webkit-scrollbar-thumb:hover {
|
|
109
|
+
background-color: oklch(55% 0.015 260 / 0.35);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Gradient background effect */
|
|
113
|
+
.gradient-bg {
|
|
114
|
+
position: fixed;
|
|
115
|
+
inset: 0;
|
|
116
|
+
z-index: -1;
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
opacity: 0.6;
|
|
119
|
+
background:
|
|
120
|
+
radial-gradient(ellipse 80% 50% at 50% -20%, oklch(85% 0.12 145 / 0.15), transparent),
|
|
121
|
+
radial-gradient(ellipse 60% 40% at 100% 0%, oklch(80% 0.1 200 / 0.08), transparent);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.dark .gradient-bg {
|
|
125
|
+
opacity: 0.4;
|
|
126
|
+
background:
|
|
127
|
+
radial-gradient(ellipse 80% 50% at 50% -20%, oklch(40% 0.1 145 / 0.2), transparent),
|
|
128
|
+
radial-gradient(ellipse 60% 40% at 100% 0%, oklch(35% 0.08 200 / 0.15), transparent);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Animation utilities */
|
|
132
|
+
@keyframes fade-up {
|
|
133
|
+
from {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transform: translateY(8px);
|
|
136
|
+
}
|
|
137
|
+
to {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
transform: translateY(0);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@keyframes scale-in {
|
|
144
|
+
from {
|
|
145
|
+
opacity: 0;
|
|
146
|
+
transform: scale(0.95);
|
|
147
|
+
}
|
|
148
|
+
to {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
transform: scale(1);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes spin {
|
|
155
|
+
from { transform: rotate(0deg); }
|
|
156
|
+
to { transform: rotate(360deg); }
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.animate-fade-up {
|
|
160
|
+
animation: fade-up 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.animate-scale-in {
|
|
164
|
+
animation: scale-in 300ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.animate-spin {
|
|
168
|
+
animation: spin 1s linear infinite;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Stagger children animations */
|
|
172
|
+
.stagger-children > * {
|
|
173
|
+
animation: fade-up 400ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
|
|
174
|
+
}
|
|
175
|
+
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
|
|
176
|
+
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
|
|
177
|
+
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
|
|
178
|
+
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
|
|
179
|
+
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
|
|
180
|
+
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }
|
|
181
|
+
|
|
182
|
+
/* Focus styles */
|
|
183
|
+
:focus-visible {
|
|
184
|
+
outline: 2px solid var(--seo-green);
|
|
185
|
+
outline-offset: 2px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Base backgrounds */
|
|
189
|
+
.bg-base {
|
|
190
|
+
background: var(--color-surface);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Card styling */
|
|
194
|
+
.card {
|
|
195
|
+
background: var(--color-surface-elevated);
|
|
196
|
+
border: 1px solid var(--color-border);
|
|
197
|
+
border-radius: var(--radius-lg);
|
|
198
|
+
transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.card:hover {
|
|
202
|
+
border-color: var(--color-neutral-300);
|
|
203
|
+
box-shadow: 0 4px 20px oklch(0% 0 0 / 0.06);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.dark .card:hover {
|
|
207
|
+
border-color: var(--color-neutral-700);
|
|
208
|
+
box-shadow: 0 4px 20px oklch(0% 0 0 / 0.3);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Glass effect */
|
|
212
|
+
.glass {
|
|
213
|
+
background: oklch(100% 0 0 / 0.8);
|
|
214
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
215
|
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.dark .glass {
|
|
219
|
+
background: oklch(9% 0.005 260 / 0.85);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Code block styling */
|
|
223
|
+
.code-block {
|
|
224
|
+
background: var(--color-surface-sunken);
|
|
225
|
+
border: 1px solid var(--color-border-subtle);
|
|
226
|
+
border-radius: var(--radius-md);
|
|
227
|
+
overflow-x: auto;
|
|
228
|
+
font-family: var(--font-mono);
|
|
229
|
+
font-size: 13px;
|
|
230
|
+
line-height: 1.7;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.code-block .shiki {
|
|
234
|
+
background: transparent !important;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.dark .shiki,
|
|
238
|
+
.dark .shiki span {
|
|
239
|
+
color: var(--shiki-dark) !important;
|
|
240
|
+
background-color: transparent !important;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.code-block-lines .shiki code .line::before {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Status indicators */
|
|
248
|
+
.status-enabled {
|
|
249
|
+
display: inline-flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
gap: 0.375rem;
|
|
252
|
+
padding: 0.25rem 0.625rem;
|
|
253
|
+
font-size: 0.75rem;
|
|
254
|
+
font-weight: 500;
|
|
255
|
+
border-radius: var(--radius-sm);
|
|
256
|
+
background: oklch(75% 0.15 145 / 0.12);
|
|
257
|
+
color: oklch(50% 0.15 145);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.dark .status-enabled {
|
|
261
|
+
background: oklch(50% 0.15 145 / 0.15);
|
|
262
|
+
color: oklch(75% 0.18 145);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.status-disabled {
|
|
266
|
+
display: inline-flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
gap: 0.375rem;
|
|
269
|
+
padding: 0.25rem 0.625rem;
|
|
270
|
+
font-size: 0.75rem;
|
|
271
|
+
font-weight: 500;
|
|
272
|
+
border-radius: var(--radius-sm);
|
|
273
|
+
background: oklch(65% 0.12 25 / 0.1);
|
|
274
|
+
color: oklch(55% 0.15 25);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.dark .status-disabled {
|
|
278
|
+
background: oklch(45% 0.1 25 / 0.15);
|
|
279
|
+
color: oklch(70% 0.12 25);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* Link with external indicator */
|
|
283
|
+
.link-external {
|
|
284
|
+
display: inline-flex;
|
|
285
|
+
align-items: center;
|
|
286
|
+
gap: 0.25rem;
|
|
287
|
+
color: var(--seo-green);
|
|
288
|
+
text-decoration: none;
|
|
289
|
+
font-weight: 500;
|
|
290
|
+
transition: all 150ms ease;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.link-external:hover {
|
|
294
|
+
text-decoration: underline;
|
|
295
|
+
text-underline-offset: 2px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.link-external::after {
|
|
299
|
+
content: '\2197';
|
|
300
|
+
font-size: 0.75em;
|
|
301
|
+
opacity: 0.6;
|
|
302
|
+
transition: transform 150ms ease;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.link-external:hover::after {
|
|
306
|
+
transform: translate(1px, -1px);
|
|
307
|
+
opacity: 1;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* Hint/tip callout */
|
|
311
|
+
.hint-callout {
|
|
312
|
+
display: flex;
|
|
313
|
+
gap: 0.75rem;
|
|
314
|
+
padding: 0.875rem 1rem;
|
|
315
|
+
border-radius: var(--radius-md);
|
|
316
|
+
background: oklch(85% 0.08 200 / 0.08);
|
|
317
|
+
border: 1px solid oklch(70% 0.08 200 / 0.15);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.dark .hint-callout {
|
|
321
|
+
background: oklch(30% 0.05 200 / 0.15);
|
|
322
|
+
border-color: oklch(45% 0.06 200 / 0.2);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.hint-callout-icon {
|
|
326
|
+
flex-shrink: 0;
|
|
327
|
+
color: oklch(55% 0.12 200);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.dark .hint-callout-icon {
|
|
331
|
+
color: oklch(70% 0.1 200);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* Panel grid pattern background with radial fade */
|
|
335
|
+
.panel-grids {
|
|
336
|
+
background-color: var(--color-surface-sunken);
|
|
337
|
+
position: relative;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.panel-grids::before {
|
|
341
|
+
content: '';
|
|
342
|
+
position: absolute;
|
|
343
|
+
inset: 0;
|
|
344
|
+
z-index: 0;
|
|
345
|
+
background-image:
|
|
346
|
+
linear-gradient(var(--color-border-subtle) 1px, transparent 1px),
|
|
347
|
+
linear-gradient(90deg, var(--color-border-subtle) 1px, transparent 1px);
|
|
348
|
+
background-size: 24px 24px;
|
|
349
|
+
background-position: -1px -1px;
|
|
350
|
+
mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
|
|
351
|
+
-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
|
|
352
|
+
pointer-events: none;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.panel-grids > * {
|
|
356
|
+
position: relative;
|
|
357
|
+
z-index: 1;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* Reduced motion */
|
|
361
|
+
@media (prefers-reduced-motion: reduce) {
|
|
362
|
+
.animate-fade-up,
|
|
363
|
+
.animate-scale-in,
|
|
364
|
+
.animate-spin,
|
|
365
|
+
.stagger-children > * {
|
|
366
|
+
animation: none;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* Subtle text selection */
|
|
371
|
+
::selection {
|
|
372
|
+
background: oklch(65% 0.2 145 / 0.25);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.dark ::selection {
|
|
376
|
+
background: oklch(65% 0.2 145 / 0.35);
|
|
377
|
+
}
|