From df0d0ff3442173c5d6ed257e48b437180b3d6920 Mon Sep 17 00:00:00 2001 From: tbphp Date: Fri, 4 Jul 2025 09:41:07 +0800 Subject: [PATCH] feat: style --- web/src/assets/style.css | 23 ++++++++++++++--------- web/src/components/BaseInfoCard.vue | 8 ++++---- web/src/components/Layout.vue | 28 ++++++++-------------------- web/src/components/LineChart.vue | 4 ++-- web/src/components/Logout.vue | 2 +- web/src/components/NavBar.vue | 5 +++-- web/src/views/Dashboard.vue | 2 +- web/src/views/Settings.vue | 8 ++++---- 8 files changed, 37 insertions(+), 43 deletions(-) diff --git a/web/src/assets/style.css b/web/src/assets/style.css index 0cfd5e3..7b1372b 100644 --- a/web/src/assets/style.css +++ b/web/src/assets/style.css @@ -1,4 +1,6 @@ :root { + overflow-y: scroll; + scrollbar-gutter: stable; font-family: "Inter", -apple-system, @@ -51,7 +53,7 @@ body { } #app { - max-width: 1400px; + /* max-width: 1400px; */ width: 100%; margin: 0 auto; height: 100%; @@ -119,9 +121,8 @@ body { /* 动画和过渡 */ .fade-enter-active, .fade-leave-active { - transition: opacity 0.3s ease; + transition: opacity 0.2s ease; } - .fade-enter-from, .fade-leave-to { opacity: 0; @@ -129,7 +130,7 @@ body { .slide-enter-active, .slide-leave-active { - transition: transform 0.3s ease; + transition: transform 0.2s ease; } .slide-enter-from { @@ -167,7 +168,7 @@ body { border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.2); - transition: all 0.3s ease; + transition: all 0.2s ease; } .modern-card:hover { @@ -178,7 +179,7 @@ body { /* 按钮增强 */ .modern-button { border-radius: var(--border-radius-md); - transition: all 0.3s ease; + transition: all 0.2s ease; font-weight: 600; letter-spacing: 0.5px; } @@ -191,7 +192,7 @@ body { /* 输入框增强 */ .modern-input { border-radius: var(--border-radius-md); - transition: all 0.3s ease; + transition: all 0.2s ease; } .modern-input:focus { @@ -266,8 +267,8 @@ body { /* 悬停效果增强 */ .hover-lift { transition: - transform 0.3s ease, - box-shadow 0.3s ease; + transform 0.2s ease, + box-shadow 0.2s ease; } .hover-lift:hover { @@ -328,3 +329,7 @@ body { .bounce { animation: bounce 1s ease-in-out; } + +.n-layout-scroll-container { + overflow: hidden; +} diff --git a/web/src/components/BaseInfoCard.vue b/web/src/components/BaseInfoCard.vue index 4ac70e7..8160608 100644 --- a/web/src/components/BaseInfoCard.vue +++ b/web/src/components/BaseInfoCard.vue @@ -56,7 +56,7 @@ onMounted(() => { v-for="(stat, index) in stats" :key="stat.title" class="stat-card modern-card" - :style="{ animationDelay: `${index * 0.1}s` }" + :style="{ animationDelay: `${index * 0.07}s` }" >
@@ -92,7 +92,7 @@ onMounted(() => {