From b995221721d5c85db3aa21995ee46e8ab09024d0 Mon Sep 17 00:00:00 2001 From: DoubleZ1099 <2035720340@qq.com> Date: Tue, 11 Jun 2024 16:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=9B=BF=E6=8D=A2=EF=BC=9B?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=A0=8F=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vuepress/navbar.ts | 4 ++-- src/.vuepress/public/icons/advanced.svg | 1 + src/.vuepress/public/icons/community.svg | 4 ++++ src/.vuepress/public/icons/other.svg | 1 + src/.vuepress/public/icons/project.svg | 4 ++++ src/.vuepress/sidebar.ts | 4 ++-- src/.vuepress/styles/index.scss | 14 ++++++++++++++ 7 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 src/.vuepress/public/icons/advanced.svg create mode 100644 src/.vuepress/public/icons/community.svg create mode 100644 src/.vuepress/public/icons/other.svg create mode 100644 src/.vuepress/public/icons/project.svg diff --git a/src/.vuepress/navbar.ts b/src/.vuepress/navbar.ts index 03e4630..bb5d4d8 100644 --- a/src/.vuepress/navbar.ts +++ b/src/.vuepress/navbar.ts @@ -4,7 +4,7 @@ export default navbar([ "/", { text: '项目地址', - icon: "bulb", + icon: '/icons/project.svg', children: [ { text: 'gitee', icon: '/icons/gitee.svg', link: 'https://gitee.com/dromara/warm-flow.git' }, { text: 'github', icon: '/icons/github.svg', link: 'https://github.com/dromara/warm-flow.git' } @@ -17,7 +17,7 @@ export default navbar([ }, { text: '社区贡献', - icon: 'bulb', + icon: '/icons/community.svg', children: [ { text: '社区pr', link: '/guide/pr.md' }, { text: '捐赠列表', link: '/guide/donation.md' } diff --git a/src/.vuepress/public/icons/advanced.svg b/src/.vuepress/public/icons/advanced.svg new file mode 100644 index 0000000..4b98463 --- /dev/null +++ b/src/.vuepress/public/icons/advanced.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/.vuepress/public/icons/community.svg b/src/.vuepress/public/icons/community.svg new file mode 100644 index 0000000..f6ffc58 --- /dev/null +++ b/src/.vuepress/public/icons/community.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/.vuepress/public/icons/other.svg b/src/.vuepress/public/icons/other.svg new file mode 100644 index 0000000..8545984 --- /dev/null +++ b/src/.vuepress/public/icons/other.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/.vuepress/public/icons/project.svg b/src/.vuepress/public/icons/project.svg new file mode 100644 index 0000000..8f1e0e4 --- /dev/null +++ b/src/.vuepress/public/icons/project.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/.vuepress/sidebar.ts b/src/.vuepress/sidebar.ts index 18450bc..a938448 100644 --- a/src/.vuepress/sidebar.ts +++ b/src/.vuepress/sidebar.ts @@ -18,7 +18,7 @@ export default sidebar([ }, { text: "进阶部分", - icon: "bulb", + icon: "/icons/advanced.svg", prefix: "/guide/", collapsible: false, children: [ @@ -29,7 +29,7 @@ export default sidebar([ }, { text: "其他", - icon: "bulb", + icon: "/icons/other.svg", prefix: "/guide/", collapsible: false, children: [ diff --git a/src/.vuepress/styles/index.scss b/src/.vuepress/styles/index.scss index 41628b1..190c1ad 100644 --- a/src/.vuepress/styles/index.scss +++ b/src/.vuepress/styles/index.scss @@ -12,6 +12,14 @@ color: var(--theme-color) !important; } } + .dropdown-title { + display: flex; + align-items: center; + .title { + display: flex; + align-items: center; + } + } } .theme-container { @@ -24,6 +32,12 @@ padding: 2.8rem 0; } +.vp-sidebar { + .vp-sidebar-header { + margin-inline: 0; + } +} + .vp-feature-title { display: flex; align-items: center; -- Gitee