valaxy-theme-hairy 1.1.6 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
package/App.vue CHANGED
@@ -7,7 +7,7 @@ import 'element-plus/theme-chalk/el-timeline.css'
7
7
  import 'element-plus/theme-chalk/el-timeline-item.css'
8
8
  import 'element-plus/theme-chalk/el-tag.css'
9
9
 
10
- onMounted(setupDefaultDark)
10
+ setupDefaultDark()
11
11
  </script>
12
12
 
13
13
  <template>
@@ -1,13 +1,16 @@
1
1
  import { useAppStore, useThemeConfig } from 'valaxy'
2
+ import { onMounted } from 'vue'
2
3
  import { useLocalStorage } from '@vueuse/core'
3
4
  import type { ThemeConfig } from 'valaxy-theme-hairy'
4
5
 
5
6
  export function setupDefaultDark() {
6
7
  const theme = useThemeConfig<ThemeConfig>()
7
- const { toggleDark } = useAppStore()
8
+ const appStore = useAppStore()
8
9
  const local = useLocalStorage('--hairy-mode', '')
9
- if (theme.value.theme && !local.value) {
10
- local.value = theme.value.theme
11
- toggleDark()
12
- }
10
+ onMounted(() => {
11
+ if (theme.value.theme && !local.value) {
12
+ appStore.isDark = theme.value.theme === 'dark'
13
+ local.value = theme.value.theme
14
+ }
15
+ })
13
16
  }
@@ -4,7 +4,7 @@
4
4
  left: 0;
5
5
  bottom: 0;
6
6
  right: 0;
7
- z-index: 100;
7
+ z-index: 1001;
8
8
 
9
9
  background: #eee;
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-hairy",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "packageManager": "pnpm@8.15.8",
5
5
  "author": {
6
6
  "email": "wwu710632@gmail.com",
@@ -84,8 +84,6 @@ html.dark {
84
84
  }
85
85
  }
86
86
 
87
- .custom-block.tip {
88
- background-color: rgba(200, 200, 200, 0.1);
87
+ .markdown-body blockquote {
89
88
  border-color: var(--hy-c-primary);
90
- padding: 0.5rem 1rem;
91
89
  }
@@ -52,6 +52,8 @@
52
52
  --hy-c-indigo-darker: #14212e;
53
53
 
54
54
  --va-c-bg: #fafafa;
55
+
56
+ --un-prose-links: var(--hy-c-primary)
55
57
  }
56
58
 
57
59
  .dark {