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 {