From c1dff0e222a468292bbf3686a27d5adaabf8e333 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 02:46:24 +0000 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B410=E6=9C=8817=E6=97=A5=2010:46?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/theme/style/blur.css | 43 +++++++++++++++++++++++++++ docs/.vitepress/theme/style/index.css | 1 + 2 files changed, 44 insertions(+) create mode 100644 docs/.vitepress/theme/style/blur.css diff --git a/docs/.vitepress/theme/style/blur.css b/docs/.vitepress/theme/style/blur.css new file mode 100644 index 0000000..03df3e3 --- /dev/null +++ b/docs/.vitepress/theme/style/blur.css @@ -0,0 +1,43 @@ +:root { + + /* 首页下滑后导航透明 */ + .VPNavBar:not(.has-sidebar):not(.home.top) { + background-color: rgba(255, 255, 255, 0); + backdrop-filter: blur(10px); + } + + /* 搜索框透明 */ + .DocSearch-Button { + background-color: rgba(255, 255, 255, 0); + backdrop-filter: blur(10px); + } + + /* Feature透明 */ + .VPFeature { + border: none; + box-shadow: 0 10px 30px 0 rgb(0 0 0 / 15%); + background-color: transparent; + } + + /* 文档页侧边栏顶部透明 */ + .curtain { + background-color: rgba(255, 255, 255, 0); + backdrop-filter: blur(10px); + } + + @media (min-width: 960px) { + + /* 文档页导航中间透明 */ + .VPNavBar:not(.home.top) .content-body { + background-color: rgba(255, 255, 255, 0); + backdrop-filter: blur(10px); + } + } + + /* 移动端大纲栏透明 */ + .VPLocalNav { + background-color: rgba(255, 255, 255, 0); + backdrop-filter: blur(10px); + } + +} \ No newline at end of file diff --git a/docs/.vitepress/theme/style/index.css b/docs/.vitepress/theme/style/index.css index 233ce09..d22d4f4 100644 --- a/docs/.vitepress/theme/style/index.css +++ b/docs/.vitepress/theme/style/index.css @@ -2,4 +2,5 @@ @import './vp-code-group.css'; @import './blockquote-no-sfx.css'; @import './var.css'; +@import './blur.css'; @import './rainbow.css'; \ No newline at end of file