From fe0066299be8d4c48a1aa345b0d6aa9e35360ff2 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Feb 2026 16:24:58 +0800 Subject: [PATCH] =?UTF-8?q?style(docs):=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B8=BB=E9=A2=98=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加默认颜色变量之间的空行分隔 - 将主页英雄名称背景渐变改为 WebKit 线性渐变 - 恢复原始的紫色到蓝色渐变配色方案 - 简化主页英雄图像背景为紫色到青色渐变 - 移除自定义按钮品牌背景渐变样式 - 移除 VPFeature 悬停阴影效果样式 --- docs/.vitepress/theme/style.css | 35 ++++++--------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 70d8cea..e47a6e6 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -48,6 +48,7 @@ --vp-c-default-2: var(--vp-c-gray-2); --vp-c-default-3: var(--vp-c-gray-3); --vp-c-default-soft: var(--vp-c-gray-soft); + --vp-c-brand-1: var(--vp-c-indigo-1); --vp-c-brand-2: var(--vp-c-indigo-2); --vp-c-brand-3: var(--vp-c-indigo-3); @@ -91,30 +92,17 @@ :root { --vp-home-hero-name-color: transparent; - /*--vp-home-hero-name-background: -webkit-linear-gradient(*/ - /* 120deg,*/ - /* #bd34fe 30%,*/ - /* #41d1ff*/ - /*);*/ - --vp-home-hero-name-background: linear-gradient( + --vp-home-hero-name-background: -webkit-linear-gradient( 120deg, - #22c55e 0%, - #3b82f6 45%, - #8b5cf6 100% + #bd34fe 30%, + #41d1ff ); - /*--vp-home-hero-image-background-image: linear-gradient(*/ - /* -45deg,*/ - /* #bd34fe 50%,*/ - /* #47caff 50%*/ - /*);*/ --vp-home-hero-image-background-image: linear-gradient( -45deg, - rgba(34, 197, 94, 0.6), - rgba(59, 130, 246, 0.6), - rgba(139, 92, 246, 0.6) + #bd34fe 50%, + #47caff 50% ); - --vp-home-hero-image-filter: blur(44px); } @@ -139,16 +127,5 @@ --vp-custom-block-tip-text: var(--vp-c-text-1); --vp-custom-block-tip-bg: var(--vp-c-brand-soft); --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft); - - - --vp-button-brand-bg: linear-gradient( - 135deg, - #3b82f6, - #2563eb - ); -} -.VPFeature:hover { - box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), - 0 8px 32px rgba(59, 130, 246, 0.25); }