From e5e0116c846399fc56ba17400484b19db9f85d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=A4=A7=E4=BB=99?= <1900919313@qq.com> Date: Thu, 17 Oct 2024 10:18:19 +0800 Subject: [PATCH] c --- docs/.vitepress/theme/style/blockquote-no-sfx.css | 7 ------- docs/.vitepress/theme/style/rainbow.css | 10 ++++++++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/.vitepress/theme/style/blockquote-no-sfx.css b/docs/.vitepress/theme/style/blockquote-no-sfx.css index 5eb73c3..d300302 100644 --- a/docs/.vitepress/theme/style/blockquote-no-sfx.css +++ b/docs/.vitepress/theme/style/blockquote-no-sfx.css @@ -36,13 +36,6 @@ --vp-custom-block-important-bg: #230555; } -/* h1 { - background: -webkit-linear-gradient(10deg, #bd34fe 5%, #e43498 15%); - background-clip: text; - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; -} */ - /* NOTE容器:背景色、左侧 */ .custom-block.note { background-color: var(--vp-custom-block-note-bg); diff --git a/docs/.vitepress/theme/style/rainbow.css b/docs/.vitepress/theme/style/rainbow.css index 70d709c..bda1882 100644 --- a/docs/.vitepress/theme/style/rainbow.css +++ b/docs/.vitepress/theme/style/rainbow.css @@ -411,8 +411,6 @@ animation: rainbow 8s linear infinite; } - - :root { /* hero标题渐变色 */ --vp-home-hero-name-color: transparent; @@ -423,6 +421,14 @@ --vp-home-hero-image-filter: blur(80px); } +/* h1 标题 */ +h1 { + background: -webkit-linear-gradient(10deg, var(--rainbow-prev) 5%, var(--rainbow-next) 15%); + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + @media (min-width: 640px) { :root {