From ab1b658e8ee09b424f18bbe61d9eafc1535887c8 Mon Sep 17 00:00:00 2001 From: JinmingYang <2214962083@qq.com> Date: Sat, 20 Jul 2024 04:20:42 +0800 Subject: [PATCH] docs: fix doc hero image style --- website/.vitepress/theme/style.css | 26 ++++++++++++++++++++++++++ website/en/index.md | 22 ---------------------- website/zh/index.md | 22 ---------------------- 3 files changed, 26 insertions(+), 44 deletions(-) diff --git a/website/.vitepress/theme/style.css b/website/.vitepress/theme/style.css index 536d469..083655a 100644 --- a/website/.vitepress/theme/style.css +++ b/website/.vitepress/theme/style.css @@ -10,8 +10,34 @@ --vp-code-scrollbar-thumb-bg: hsl(0, 0%, 40%); --vp-code-line-height: 1.9; + + --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient( + 120deg, + #8c6bef 30%, + #ef7b95 + ); + + --vp-home-hero-image-background-image: linear-gradient( + -45deg, + #8c6bef 50%, + #ef7b95 50% + ); + --vp-home-hero-image-filter: blur(44px); } :root.dark { --vp-code-scrollbar-thumb-bg: hsl(0, 0%, 25%); } + +@media (min-width: 640px) { + :root { + --vp-home-hero-image-filter: blur(56px); + } +} + +@media (min-width: 960px) { + :root { + --vp-home-hero-image-filter: blur(68px); + } +} diff --git a/website/en/index.md b/website/en/index.md index df59507..636fd4a 100644 --- a/website/en/index.md +++ b/website/en/index.md @@ -27,25 +27,3 @@ hero:
- - diff --git a/website/zh/index.md b/website/zh/index.md index e6496e7..ec16d5b 100644 --- a/website/zh/index.md +++ b/website/zh/index.md @@ -27,25 +27,3 @@ hero:
- -