diff --git a/theme/src/client/components/Archives.vue b/theme/src/client/components/Archives.vue index 7bdbf90de..bf2189015 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 c8600f5a5..4a56e2c01 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 00b286d80..61cfd9420 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 4cf21ca99..f9dc3289d 100644 --- a/theme/src/client/components/Blog.vue +++ b/theme/src/client/components/Blog.vue @@ -24,6 +24,7 @@ const page = usePageData()