Skip to content

Commit 455eae6

Browse files
committed
♻️refactor: Lumen采用单独导入主题方式避免 nav 下拉菜单透明问题
在index.ts中将图片描述的导入路径更改为'@theojs/lumen/pic',以确保正确加载样式。同时,在style.css中移除了不再使用的背景颜色变量定义,提升了样式的可维护性。此外,在文档中添加了新的图片引用,丰富了内容展示。确保了文档的准确性和可读性。 Co-authored-by: COYG⚡️ <67215517+1411430556@users.noreply.github.com>
1 parent 278f57c commit 455eae6

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import MouseFollower from './components/MouseFollower.vue'
1515
// 字数及阅读时间
1616
import ArticleMetadata from "./components/ArticleMetadata.vue"
1717
// 图片描述
18-
import '@theojs/lumen/style'
18+
import '@theojs/lumen/pic'
1919
// 代码组图标
2020
import 'virtual:group-icons.css'
2121
import './style.css'

docs/.vitepress/theme/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
--vp-c-danger-2: var(--vp-c-red-2);
6969
--vp-c-danger-3: var(--vp-c-red-3);
7070
--vp-c-danger-soft: var(--vp-c-red-soft);
71-
--vp-c-bg-elv: #ffffff;
7271
}
7372

7473
/**

docs/文档/5-示例展示.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,8 @@ $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
9898

9999
![深色模式](https://i.theojs.cn/logo/github-dark.svg#dark)
100100

101-
![浅色模式](https://i.theojs.cn/logo/github.svg#light)
101+
![浅色模式](https://i.theojs.cn/logo/github.svg#light)
102+
103+
![偷偷](../public/蒙面人小偷.svg#light)
104+
105+
![日记](../public/蒙面人小偷.svg#dark)

0 commit comments

Comments
 (0)