From 106062da8280ea5697ad49b19c4874223c080810 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 18 May 2026 13:58:00 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=BB=9F=E4=B8=80=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E6=8A=AC=E5=A4=B4=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/resource.vue | 191 ++++++++--------------------------------- 1 file changed, 34 insertions(+), 157 deletions(-) diff --git a/src/pages/resource.vue b/src/pages/resource.vue index ff0f9cdb..0579fa70 100644 --- a/src/pages/resource.vue +++ b/src/pages/resource.vue @@ -1207,68 +1207,49 @@ onUnmounted(() => {
- - + {{ t('resource.refreshSearch') }} - + -
-
- - - - {{ t('resource.aiRecommend') }} - - +
@@ -1516,7 +1497,7 @@ onUnmounted(() => { .resource-page-header__subtitle { overflow: hidden; - margin-block-start: -4px; + margin-block-start: -8px; margin-inline: 16px 12px; color: rgba(var(--v-theme-on-surface), 0.62); font-size: 0.875rem; @@ -1535,83 +1516,6 @@ onUnmounted(() => { font-size: 0.75rem; } -/* 重新搜索按钮 */ -.refresh-search-btn { - border-radius: 8px !important; - background-color: rgba(var(--v-theme-surface-variant), 0.1); - block-size: 44px !important; - inline-size: 44px !important; -} - -/* AI按钮组样式 */ -.ai-toggle-container { - position: relative; -} - -.ai-toggle-buttons { - display: flex; - overflow: hidden; - align-items: center; - padding: 0; - border-radius: 8px; - background-color: rgba(var(--v-theme-surface-variant), 0.1); - block-size: 44px; /* 36px(btn) + 4px*2(padding) to match right side exactly */ -} - -.ai-recommend-btn { - margin: 0; - block-size: 100% !important; - transition: all 0.3s ease; -} - -/* 仅为激活的按钮添加背景 */ -.ai-recommend-btn.ai-active { - z-index: 1; - background-color: rgba(var(--v-theme-primary), 0.15); -} - -/* 图标基础样式 */ -.ai-icon { - color: rgba(var(--v-theme-on-surface), 0.6); - transform: translateZ(0); - transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); -} - -/* 激活状态图标:变色 + 辉光 */ -.ai-icon-active { - color: rgb(var(--v-theme-primary)); - filter: drop-shadow(0 0 4px rgba(var(--v-theme-primary), 0.5)); -} - -/* 文字基础样式 */ -.ai-text { - color: rgba(var(--v-theme-on-surface), 0.6); - font-size: 0.85rem; - font-weight: 600; /* 保持一致的字重防止位移 */ - transform: translateZ(0); - transition: color 0.3s ease; -} - -/* 激活状态文字 */ -.ai-text-active { - color: rgb(var(--v-theme-primary)); -} - -/* 刷新图标样式 */ -.ai-refresh-icon { - color: rgba(var(--v-theme-on-surface), 0.6); - transition: color 0.3s ease; -} - -.ai-divider { - z-index: 0; - flex-shrink: 0; - block-size: 20px; - border-inline-start: 1px solid rgba(var(--v-theme-on-surface), 0.12); /* 使用边框显示线条 */ - inline-size: 0; /* 宽度设为0,不占用空间 */ - transition: opacity 0.3s ease; -} - .search-results-container { position: relative; min-block-size: 50vh; @@ -1650,7 +1554,7 @@ onUnmounted(() => { .resource-page-header__subtitle { display: -webkit-box; overflow: hidden; - margin-inline: 8px ; + margin-inline: 16px 0; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; @@ -1694,32 +1598,5 @@ onUnmounted(() => { .search-skeleton-grid { grid-template-columns: 1fr; } - - .refresh-search-btn { - block-size: 36px !important; - inline-size: 36px !important; - } - - .ai-toggle-buttons { - block-size: 36px; - } - - .ai-text { - font-size: 0.8rem; - } - - .ai-recommend-btn, - .ai-toggle-buttons .v-btn { - block-size: 36px !important; - min-inline-size: unset !important; - } - - .ai-recommend-btn { - padding-inline: 12px 8px !important; - } - - .ai-toggle-buttons .v-btn:last-child { - min-inline-size: 32px !important; - } }