kmcom-nuxt-layers 1.6.12 → 1.6.15
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.
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
* same Tailwind pass as all utility generation (avoids HMR regeneration shift).
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
/* --- Theme Transition --- */
|
|
10
|
+
@layer utilities {
|
|
11
|
+
.theme-transition {
|
|
12
|
+
transition-property: color, background-color, border-color, fill, stroke, box-shadow;
|
|
13
|
+
transition-duration: 700ms;
|
|
14
|
+
transition-delay: 0ms;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
/* --- Reduced Motion --- */
|
|
10
19
|
[data-theme-motion='reduced'] *,
|
|
11
20
|
[data-theme-motion='reduced'] *::before,
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { splitSpaces } from '../../utils/regex'
|
|
3
|
-
|
|
4
|
-
defineProps<{
|
|
5
|
-
siteTitle: string
|
|
6
|
-
tag: string
|
|
7
|
-
titleVariant: string
|
|
8
|
-
}>()
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
1
|
<template>
|
|
12
|
-
<
|
|
13
|
-
{{
|
|
14
|
-
</
|
|
2
|
+
<span v-for="(word, index) in useSite().titleWords" :key="index" class="site-word">
|
|
3
|
+
{{ word }}
|
|
4
|
+
</span>
|
|
15
5
|
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { splitSpaces } from '../utils/regex'
|
|
2
|
+
|
|
3
|
+
export function useSite() {
|
|
4
|
+
const config = useAppConfig().site
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
title: config.title as string,
|
|
8
|
+
titleWords: splitSpaces(config.title as string) as string[],
|
|
9
|
+
subtitle: config.subtitle as string,
|
|
10
|
+
subtitleWords: splitSpaces(config.subtitle as string) as string[],
|
|
11
|
+
description: config.description as string,
|
|
12
|
+
}
|
|
13
|
+
}
|