diff --git a/src/.vitepress/theme/Layout.vue b/src/.vitepress/theme/Layout.vue index 3c47d542..9040a20c 100644 --- a/src/.vitepress/theme/Layout.vue +++ b/src/.vitepress/theme/Layout.vue @@ -60,26 +60,6 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => { color: white; } -:root { - --vp-home-hero-name-color: transparent; - --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff); - - --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%); - --vp-home-hero-image-filter: blur(110px); -} - -@media (min-width: 640px) { - :root { - --vp-home-hero-image-filter: blur(130px); - } -} - -@media (min-width: 960px) { - :root { - --vp-home-hero-image-filter: blur(150px); - } -} - ::view-transition-old(root), ::view-transition-new(root) { animation: none; diff --git a/src/.vitepress/theme/index.css b/src/.vitepress/theme/index.css index 70241264..c05610a1 100644 --- a/src/.vitepress/theme/index.css +++ b/src/.vitepress/theme/index.css @@ -1,3 +1,29 @@ +/** + * 首页 + ------------------------------------------- */ +:root { + --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff); + + --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%); + --vp-home-hero-image-filter: blur(110px); +} + +@media (min-width: 640px) { + :root { + --vp-home-hero-image-filter: blur(130px); + } +} + +@media (min-width: 960px) { + :root { + --vp-home-hero-image-filter: blur(150px); + } +} + +/** + * 图片放大 + ------------------------------------------- */ .medium-zoom-overlay { z-index: 30; } @@ -6,6 +32,9 @@ z-index: 31; } +/** + * 图片圆角 + ------------------------------------------- */ img { border-radius: 5px; } \ No newline at end of file diff --git a/src/zh/index.md b/src/zh/index.md index d3b0ffb2..3772fe5a 100644 --- a/src/zh/index.md +++ b/src/zh/index.md @@ -39,4 +39,4 @@ features: - title: 图片审核 icon: 🔍 details: 为了防止他人上传违规图片,程序集成了阿里云、腾讯云、Nsfw.js 图片审核功能,可以选择发现违规图片后删除或直接拒绝上传。 ---- +--- \ No newline at end of file