valaxy-theme-yun 0.22.8 → 0.22.9
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/docs/zh-CN/config.md +15 -3
- package/package.json +3 -3
- package/styles/index.ts +2 -0
- /package/styles/{index.scss → main.scss} +0 -0
package/docs/zh-CN/config.md
CHANGED
@@ -38,12 +38,18 @@ export default defineConfig<ThemeConfig>({
|
|
38
38
|
> 如果您想要更改云的色彩,请更改 `var(--yun-c-cloud)` 的值
|
39
39
|
|
40
40
|
```scss
|
41
|
-
// 新建 styles/
|
41
|
+
// 新建 styles/vars.css 文件
|
42
42
|
:root {
|
43
43
|
--yun-c-cloud: red;
|
44
44
|
}
|
45
45
|
```
|
46
46
|
|
47
|
+
新建 `styles/index.ts` 文件,引入 `vars.css`。
|
48
|
+
|
49
|
+
```ts
|
50
|
+
import './vars.css'
|
51
|
+
```
|
52
|
+
|
47
53
|
## 自定义友情链接
|
48
54
|
|
49
55
|
新建 `pages/links/index.md` 文件。
|
@@ -88,9 +94,15 @@ random: true
|
|
88
94
|
|
89
95
|
### 覆盖背景、侧边栏图片
|
90
96
|
|
91
|
-
|
97
|
+
您可以新建样式文件并引入,以覆盖默认 CSS 变量。
|
92
98
|
|
93
|
-
```
|
99
|
+
```ts
|
100
|
+
// styles/index.ts
|
101
|
+
import './vars.scss'
|
102
|
+
```
|
103
|
+
|
104
|
+
```scss
|
105
|
+
// styles/vars.scss
|
94
106
|
:root {
|
95
107
|
/* 背景图片 */
|
96
108
|
--yun-bg-img: url("https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg");
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.22.
|
4
|
+
"version": "0.22.9",
|
5
5
|
"author": {
|
6
6
|
"email": "me@yunyoujun.cn",
|
7
7
|
"name": "YunYouJun",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"@ctrl/tinycolor": "^4.1.0",
|
25
25
|
"@explosions/fireworks": "^0.1.0",
|
26
26
|
"@iconify-json/ant-design": "^1.2.5",
|
27
|
-
"@iconify-json/simple-icons": "^1.2.
|
27
|
+
"@iconify-json/simple-icons": "^1.2.25",
|
28
28
|
"@vueuse/motion": "^2.2.6",
|
29
29
|
"animejs": "^3.2.2",
|
30
30
|
"gsap": "^3.12.7",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/animejs": "^3.1.13",
|
35
|
-
"valaxy": "0.22.
|
35
|
+
"valaxy": "0.22.9",
|
36
36
|
"valaxy-addon-waline": "0.2.0"
|
37
37
|
},
|
38
38
|
"scripts": {
|
package/styles/index.ts
ADDED
File without changes
|