From 62e99025db9b2c44955fef6d7141b099a6ee25b3 Mon Sep 17 00:00:00 2001 From: sharpchen Date: Sun, 31 Dec 2023 13:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=20Impl=20blur=20navbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- docs/.vitepress/theme/custom.css | 40 ++++++++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9598acdd..bc848937 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ Thumbs.db .idea/ .vscode/ -demo \ No newline at end of file +demo +*.log \ No newline at end of file diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index f682c97f..8c0c98ac 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -18,11 +18,43 @@ --vp-c-bg-elv: #282c34; --vp-c-bg-soft: #282c34; /* inline code color */ - --vp-code-color: #2dbc24 - /*#a78cfa*/ - ; + --vp-code-color: #2dbc24; } .VPImage { border-radius: 20%; -} \ No newline at end of file +} + +/* #region impl blur bav-bar */ +:root { + --nav-c-bg: rgba(255, 255, 255, 0.5); +} + +.dark { + --nav-c-bg: rgba(30, 30, 32, 0.5); +} + +.curtain { + display: none !important; +} + +.fill { + background: transparent !important; +} + +.content-body { + background: var(--nav-c-bg) !important; +} + +.content-body::after { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + backdrop-filter: saturate(180%) blur(5px); + z-index: -1; +} + +/* #endregion */ \ No newline at end of file