From a44a6ad2eecf593eeb2f482d93b41e40af1fff4b Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sun, 4 Feb 2024 10:17:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=E5=8D=9A=E5=AE=A2=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20=E5=A4=96=E8=A7=82=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=BF=87=E6=B8=A1=E6=95=88=E6=9E=9C=EF=BC=8Chover=20=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/src/client/components/Archives.vue | 7 ++++++ theme/src/client/components/BackToTop.vue | 6 ++--- theme/src/client/components/Backdrop.vue | 2 +- theme/src/client/components/Blog.vue | 7 ++++++ theme/src/client/components/BlogAside.vue | 25 ++++++++++++++++++++- theme/src/client/components/BlogExtract.vue | 3 +++ theme/src/client/components/Tags.vue | 13 +++++++++-- 7 files changed, 56 insertions(+), 7 deletions(-) diff --git a/theme/src/client/components/Archives.vue b/theme/src/client/components/Archives.vue index 7bdbf90d..bf218901 100644 --- a/theme/src/client/components/Archives.vue +++ b/theme/src/client/components/Archives.vue @@ -80,6 +80,12 @@ const { archives } = useArchives() background-color: var(--vp-c-bg); border-bottom: none; border-radius: 8px; + box-shadow: var(--vp-shadow-1); + transition: var(--t-color); + transition-property: border-bottom, box-shadow, background-color; + } + + .archive:hover { box-shadow: var(--vp-shadow-2); } @@ -87,6 +93,7 @@ const { archives } = useArchives() padding-bottom: 10px; margin-top: 0; border-bottom: solid 1px var(--vp-c-divider); + transition: border-bottom var(--t-color); } } diff --git a/theme/src/client/components/BackToTop.vue b/theme/src/client/components/BackToTop.vue index c8600f5a..4a56e2c0 100644 --- a/theme/src/client/components/BackToTop.vue +++ b/theme/src/client/components/BackToTop.vue @@ -86,8 +86,8 @@ function handleClick() { border-radius: 100%; box-shadow: var(--vp-shadow-2); transition: - background-color 0.25s ease, - box-shadow 0.25s ease; + background-color var(--t-color), + box-shadow var(--t-color); } .back-to-top-button .percent, @@ -96,7 +96,7 @@ function handleClick() { top: 0; left: 0; opacity: 0; - transition: opacity 0.5s ease; + transition: opacity 0.5s ease, color var(--t-color); } .back-to-top-button .percent.show, diff --git a/theme/src/client/components/Backdrop.vue b/theme/src/client/components/Backdrop.vue index 00b286d8..61cfd942 100644 --- a/theme/src/client/components/Backdrop.vue +++ b/theme/src/client/components/Backdrop.vue @@ -23,7 +23,7 @@ defineProps<{ left: 0; z-index: var(--vp-z-index-backdrop); background: var(--vp-backdrop-bg-color); - transition: opacity 0.5s; + transition: opacity var(--t-color); } .backdrop.fade-enter-from, diff --git a/theme/src/client/components/Blog.vue b/theme/src/client/components/Blog.vue index 4cf21ca9..f9dc3289 100644 --- a/theme/src/client/components/Blog.vue +++ b/theme/src/client/components/Blog.vue @@ -24,6 +24,7 @@ const page = usePageData()