valaxy-theme-yun 0.14.33 → 0.14.35
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/components/YunBanner.vue +3 -5
- package/package.json +2 -2
- package/valaxy.config.ts +2 -0
package/components/YunBanner.vue
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import type { CSSProperties } from 'vue'
|
9
|
-
import { computed
|
9
|
+
import { computed } from 'vue'
|
10
10
|
import { random } from 'valaxy'
|
11
11
|
import { useThemeConfig } from '../composables'
|
12
12
|
|
@@ -23,10 +23,8 @@ const chars = computed(() => {
|
|
23
23
|
// height of top/bottom line
|
24
24
|
const lineH = computed(() => chars.value.reduce((a, b) => a + b, 0) / 2)
|
25
25
|
|
26
|
-
const bannerStyles =
|
27
|
-
|
28
|
-
bannerStyles.value = {
|
29
|
-
'--banner-height': `${window.innerHeight}px`,
|
26
|
+
const bannerStyles = computed<CSSProperties>(() => {
|
27
|
+
return {
|
30
28
|
'--banner-line-height': `calc(var(--banner-height, 100vh) / 2 - ${lineH.value}rem)`,
|
31
29
|
}
|
32
30
|
})
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.35",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -24,6 +24,6 @@
|
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/animejs": "^3.1.7",
|
27
|
-
"valaxy": "0.14.
|
27
|
+
"valaxy": "0.14.35"
|
28
28
|
}
|
29
29
|
}
|
package/valaxy.config.ts
CHANGED
@@ -36,7 +36,9 @@ export default defineValaxyTheme<ThemeConfig>((options) => {
|
|
36
36
|
// add on demand external
|
37
37
|
external: [
|
38
38
|
'valaxy-addon-algolia',
|
39
|
+
// adapt for twikoo
|
39
40
|
'valaxy-addon-twikoo',
|
41
|
+
'valaxy-addon-twikoo/client/styles/index.scss',
|
40
42
|
'valaxy-addon-waline',
|
41
43
|
],
|
42
44
|
},
|