fix: category number color in dark mode, close #500

This commit is contained in:
YunYouJun 2025-01-24 17:51:50 +08:00
parent 9af2022675
commit d61f6ea303
12 changed files with 1152 additions and 558 deletions

View File

@ -13,6 +13,6 @@
"typedoc": "^0.27.6",
"typedoc-plugin-markdown": "^4.4.1",
"typedoc-vitepress-theme": "^1.1.2",
"vitepress": "^1.5.0"
"vitepress": "^1.6.3"
}
}

View File

@ -17,7 +17,7 @@
"valaxy": "link:../packages/valaxy",
"valaxy-addon-algolia": "link:../packages/valaxy-addon-algolia",
"valaxy-addon-components": "workspace:*",
"valaxy-addon-git-log": "^0.2.0",
"valaxy-addon-git-log": "^0.2.1",
"valaxy-theme-press": "link:../packages/valaxy-theme-press"
},
"devDependencies": {

View File

@ -71,3 +71,49 @@ For example, you can override the default font in 'styles/css-vars.scss'.
--va-font-mono: Menlo, Monaco, Consolas, "Courier New", monospace;
}
```
## 示例
### 自定义光标 {lang="zh-CN"}
### Custom Cursor {lang="en"}
::: warning
编写中...
:::
替换鼠标光标,默认关闭。
例如使用 [Material Design Cursors](https://www.deviantart.com/rosea92/art/Material-Design-Cursors-Dark-756850032)。
- `default`: 默认状态下图标。
- `pointer`: 指针(即链接状态下)图标。
- `text`: 文本选择图标。
```scss
// $cursor-default = hexo-config('cursor.default');
// $cursor-pointer = hexo-config('cursor.pointer');
// $cursor-text = hexo-config('cursor.text');
body {
cursor: url($cursor-default), auto;
}
a {
cursor: url($cursor-pointer), auto;
&:hover {
cursor: url($cursor-pointer), auto;
}
}
.hty-icon-button {
cursor: url($cursor-pointer), pointer;
}
input {
cursor: url($cursor-text), auto;
}
```

View File

@ -82,36 +82,36 @@
"valaxy-theme-yun": "workspace:*"
},
"devDependencies": {
"@antfu/eslint-config": "^3.14.0",
"@antfu/eslint-config": "^3.16.0",
"@iconify-json/logos": "catalog:",
"@iconify-json/vscode-icons": "catalog:",
"@microsoft/api-extractor": "^7.49.1",
"@playwright/test": "^1.49.1",
"@playwright/test": "^1.50.0",
"@types/debug": "^4.1.12",
"@types/markdown-it-attrs": "^4.1.3",
"@types/markdown-it-container": "^2.0.10",
"@types/markdown-it-emoji": "^3.0.1",
"@types/node": "^22.10.7",
"@types/node": "^22.10.10",
"@types/prompts": "^2.4.9",
"@types/resolve": "^1.20.6",
"bumpp": "^9.10.1",
"bumpp": "^9.10.2",
"cross-env": "^7.0.3",
"eslint": "^9.18.0",
"https-localhost": "^4.7.1",
"husky": "^9.1.7",
"lint-staged": "^15.4.1",
"lint-staged": "^15.4.2",
"npm-run-all": "^4.1.5",
"prompts": "^2.4.2",
"rimraf": "^6.0.1",
"stylelint": "^16.13.2",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-recommended-vue": "^1.6.0",
"stylelint-config-standard-scss": "^14.0.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "catalog:",
"unbuild": "catalog:",
"vite-node": "^3.0.2",
"vitest": "^3.0.2",
"vite-node": "^3.0.4",
"vitest": "^3.0.4",
"vue-tsc": "2.2.0",
"zx": "catalog:"
},

View File

@ -58,7 +58,7 @@
"splitpanes": "^3.1.8",
"typescript": "catalog:",
"unbuild": "catalog:",
"unplugin-vue-router": "^0.10.9",
"unplugin-vue-router": "^0.11.1",
"vite": "catalog:",
"vue-i18n": "catalog:",
"zod": "^3.24.1"

View File

@ -16,7 +16,7 @@
"valaxy": "latest"
},
"dependencies": {
"@docsearch/css": "^3.8.2",
"@docsearch/js": "^3.8.2"
"@docsearch/css": "^3.8.3",
"@docsearch/js": "^3.8.3"
}
}

View File

@ -22,8 +22,8 @@
"main": "node/index.ts",
"types": "types/index.d.ts",
"dependencies": {
"@docsearch/css": "^3.8.2",
"@docsearch/js": "^3.8.2"
"@docsearch/css": "^3.8.3",
"@docsearch/js": "^3.8.3"
},
"devDependencies": {
"valaxy": "workspace:*"

View File

@ -81,7 +81,7 @@ if (props.level === 1) {
<span>
{{ category.name === 'Uncategorized' ? t('category.uncategorized') : category.name }}
</span>
<span class="rounded-full px-1.5 bg-black/5 shadow-sm" text="xs black/55">
<span class="rounded-full px-1.5 bg-black/5 shadow-sm op-60" text="xs">
{{ category.total }}
</span>
</span>

View File

@ -34,7 +34,7 @@
"primevue": "^4.2.5"
},
"devDependencies": {
"@types/animejs": "^3.1.12",
"@types/animejs": "^3.1.13",
"valaxy": "workspace:*",
"valaxy-addon-waline": "workspace:*"
}

View File

@ -72,7 +72,7 @@
"@valaxyjs/devtools": "workspace:*",
"@valaxyjs/utils": "workspace:*",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/devtools-api": "^7.7.0",
"@vue/devtools-api": "^7.7.1",
"@vueuse/core": "12.0.0-beta.1",
"@vueuse/integrations": "12.0.0-beta.1",
"beasties": "^0.2.0",
@ -104,7 +104,7 @@
"markdown-it-emoji": "^3.0.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-image-figures": "^2.1.1",
"markdown-it-table-of-contents": "^0.8.0",
"markdown-it-table-of-contents": "^0.9.0",
"markdown-it-task-lists": "^2.1.1",
"medium-zoom": "^1.1.0",
"mermaid": "^11.4.1",
@ -114,20 +114,20 @@
"ora": "^8.1.1",
"pascalcase": "^2.0.0",
"pathe": "^2.0.2",
"pinia": "^2.3.0",
"pinia": "^2.3.1",
"qrcode": "^1.5.4",
"resolve-global": "^2.0.0",
"sass": "^1.83.4",
"shiki": "^1.27.2",
"shiki": "^2.1.0",
"star-markdown-css": "^0.5.3",
"unocss": "^65.4.2",
"unocss": "^65.4.3",
"unplugin-vue-components": "^28.0.0",
"unplugin-vue-markdown": "^28.1.0",
"unplugin-vue-router": "^0.10.9",
"unplugin-vue-router": "^0.11.1",
"vanilla-lazyload": "^19.1.3",
"vite": "catalog:",
"vite-dev-rpc": "^1.0.7",
"vite-plugin-vue-devtools": "^7.7.0",
"vite-plugin-vue-devtools": "^7.7.1",
"vite-plugin-vue-layouts": "^0.11.0",
"vite-ssg": "^25.0.0",
"vite-ssg-sitemap": "^0.8.1",

File diff suppressed because it is too large Load Diff

View File

@ -11,10 +11,10 @@ catalog:
'@iconify-json/carbon': ^1.2.5
'@iconify-json/logos': ^1.2.4
'@iconify-json/ri': ^1.2.5
'@iconify-json/simple-icons': ^1.2.20
'@iconify-json/simple-icons': ^1.2.21
'@iconify-json/vscode-icons': ^1.2.10
typescript: ^5.7.3
unbuild: ^3.3.1
vite: ^6.0.7
vite: ^6.0.11
vue-i18n: ^11.0.1
zx: ^8.3.0