From f42a633226c7e4b2ef25175225ca44e3d6be95fc Mon Sep 17 00:00:00 2001 From: sanbuphy Date: Sat, 28 Mar 2026 20:16:53 +0800 Subject: [PATCH] style(HomeFeatures): adjust padding and add transform-origin for cards --- docs/.vitepress/theme/components/HomeFeatures.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/theme/components/HomeFeatures.vue b/docs/.vitepress/theme/components/HomeFeatures.vue index f2a1559..6f39760 100644 --- a/docs/.vitepress/theme/components/HomeFeatures.vue +++ b/docs/.vitepress/theme/components/HomeFeatures.vue @@ -2850,7 +2850,7 @@ a { overflow-x: auto; width: calc(100% + 40px); margin: 0 -20px; - padding: 0 20px 16px; + padding: 12px 20px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; @@ -2870,6 +2870,7 @@ a { box-shadow: none; border: 1px solid rgba(0, 0, 0, 0.025); transition: transform 0.3s; + transform-origin: center top; display: block; scroll-snap-align: start; } @@ -2926,7 +2927,7 @@ a { overflow-x: auto; padding-bottom: 40px; margin: 0 -20px; - padding: 0 20px 40px; + padding: 12px 20px 40px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; @@ -2956,6 +2957,7 @@ a { display: flex; flex-direction: column; transition: transform 0.3s; + transform-origin: center top; border: 1px solid rgba(0, 0, 0, 0.025); box-shadow: none; }