From e247341e93669ca96f44af4498f400b987898580 Mon Sep 17 00:00:00 2001 From: sendevia Date: Sun, 16 Nov 2025 17:26:23 +0800 Subject: [PATCH] opt: code quality --- .vitepress/theme/components/Button.vue | 5 ++++- .vitepress/theme/components/PageIndicator.vue | 16 ++++++++++++++-- .vitepress/theme/layouts/Article.vue | 7 ++++++- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.vitepress/theme/components/Button.vue b/.vitepress/theme/components/Button.vue index b849d0a..1926958 100644 --- a/.vitepress/theme/components/Button.vue +++ b/.vitepress/theme/components/Button.vue @@ -52,7 +52,8 @@ const props = withDefaults(defineProps(), { cursor: pointer; overflow: hidden; - transition: border-radius var(--md-sys-motion-spring-fast-spatial-duration) var(--md-sys-motion-spring-fast-spatial); + transition: border-radius var(--md-sys-motion-spring-fast-spatial-standard-duration) + var(--md-sys-motion-spring-fast-spatial-standard); &::after { content: ""; @@ -82,6 +83,8 @@ const props = withDefaults(defineProps(), { } &:active { + transition: border-radius var(--md-sys-motion-spring-fast-spatial-duration) var(--md-sys-motion-spring-fast-spatial); + &::after { background-color: var(--md-sys-state-pressed-state-layer); } diff --git a/.vitepress/theme/components/PageIndicator.vue b/.vitepress/theme/components/PageIndicator.vue index c2b85ef..70d808e 100644 --- a/.vitepress/theme/components/PageIndicator.vue +++ b/.vitepress/theme/components/PageIndicator.vue @@ -255,13 +255,25 @@ if (typeof window !== "undefined") { diff --git a/.vitepress/theme/layouts/Article.vue b/.vitepress/theme/layouts/Article.vue index c47750f..99420cd 100644 --- a/.vitepress/theme/layouts/Article.vue +++ b/.vitepress/theme/layouts/Article.vue @@ -1,5 +1,5 @@