valaxy-theme-yun 0.9.0 → 0.9.1

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.
@@ -69,7 +69,7 @@ const YunTwikoo = config.value.comment.waline.enable
69
69
  </slot>
70
70
 
71
71
  <slot name="aside">
72
- <YunAside v-if="aside" :frontmatter="frontmatter" :data="data">
72
+ <YunAside v-if="aside">
73
73
  <slot name="aside-custom" />
74
74
  </YunAside>
75
75
  </slot>
@@ -1,9 +1,10 @@
1
1
  <script lang="ts" setup>
2
2
  import { useI18n } from 'vue-i18n'
3
- import type { PageData, Post } from 'valaxy'
3
+ import { useData, useFrontmatter } from 'valaxy'
4
4
  import { useAppStore } from 'valaxy/client/stores/app'
5
5
 
6
- defineProps<{ frontmatter: Post; data: PageData }>()
6
+ const frontmatter = useFrontmatter()
7
+ const data = useData()
7
8
  const { t } = useI18n()
8
9
  const app = useAppStore()
9
10
  </script>
package/dist/index.d.ts CHANGED
@@ -132,6 +132,6 @@ interface UserOptions {
132
132
  primary: string;
133
133
  };
134
134
  }
135
- declare const _default: Promise<valaxy_dist_node.ValaxyThemePlugin | valaxy_dist_node.ThemeConfigFn>;
135
+ declare const _default: valaxy_dist_node.ThemeConfigExport;
136
136
 
137
137
  export { ThemeConfig, ThemeUserConfig, UserOptions, YunTheme, anonymousImage, _default as default, defaultThemeConfig, generateSafelist };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -28,7 +28,7 @@
28
28
  "@iconify-json/simple-icons": "^1.1.19"
29
29
  },
30
30
  "devDependencies": {
31
- "valaxy": "0.9.0"
31
+ "valaxy": "0.9.1"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "rimraf dist && tsup",
@@ -0,0 +1,27 @@
1
+ .yun-icon-btn {
2
+ cursor: pointer;
3
+
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+
8
+ border: none;
9
+ width: 3rem;
10
+ height: 3rem;
11
+
12
+ border-radius: 50%;
13
+
14
+ transition: background-color var(--va-transition-duration);
15
+
16
+ div {
17
+ font-size: 1.2rem;
18
+ }
19
+
20
+ &:hover {
21
+ background-color: rgba(var(--va-c-primary-rgb), 0.08);
22
+ }
23
+
24
+ &:active {
25
+ background-color: rgba(var(--va-c-primary-rgb), 0.16);
26
+ }
27
+ }
@@ -1,6 +1,7 @@
1
1
  @use "valaxy/client/styles/mixins" as *;
2
2
 
3
3
  .markdown-body {
4
+ --smc-font-family: var(--va-font-sans);
4
5
  --c-toc-link: var(--va-c-text-light);
5
6
  }
6
7
 
package/styles/index.scss CHANGED
@@ -1,2 +1,10 @@
1
- @use './layout' as *;
2
- @use './markdown' as *;
1
+ @use "./layout" as *;
2
+
3
+ @use "./common/button.scss" as *;
4
+ @use "./common/markdown.scss" as *;
5
+
6
+ @forward "star-markdown-css/src/scss/theme/yun.scss" with (
7
+ $colors: (
8
+ "primary": $c-primary,
9
+ )
10
+ );
package/unocss.config.ts CHANGED
@@ -5,4 +5,12 @@ export default defineConfig({
5
5
  ['yun-main', 'lt-md:pl-0'],
6
6
  ['yun-card', 'm-auto transition yun-transition shadow hover:shadow-lg'],
7
7
  ],
8
+ rules: [
9
+ ['yun-text-light', {
10
+ color: 'var(--va-c-text-light)',
11
+ }],
12
+ ['yun-transition', {
13
+ 'transition-duration': 'var(--va-transition-duration)',
14
+ }],
15
+ ],
8
16
  })