From a18935bfa2ea144ed9d1bafe493cdfa90b570ca2 Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 3 Nov 2026 14:06:43 +0800 Subject: [PATCH] =?UTF-8?q?style(dashboard):=20=E4=B8=AD=E6=A0=8F=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E6=94=B9=E6=88=90=E8=83=B6=E5=9B=8A=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 高度 38px、border-radius 999px,浅灰底,图标 14px - hover 边框透出主色;focus-within 主色描边 + 3px 柔光环 - 去掉原来的直角大输入框观感,样式表 ?v=9 --- custom/public/assets/css/qq-pages.css | 40 ++++++++++++++++++++++----- custom/templates/custom/header.tmpl | 6 ++-- 2 files changed, 36 insertions(+), 10 deletions(-) diff --git a/custom/public/assets/css/qq-pages.css b/custom/public/assets/css/qq-pages.css index 44740a8..36c4056 100644 --- a/custom/public/assets/css/qq-pages.css +++ b/custom/public/assets/css/qq-pages.css @@ -421,22 +421,48 @@ .qq-dash-search { display: flex; align-items: center; - gap: 9px; - margin-bottom: 18px; - padding: 10px 14px; - border: 1px solid var(--color-input-border, var(--color-secondary)); - border-radius: 10px; - background: var(--color-input-background, var(--color-box-body)); + gap: 8px; + box-sizing: border-box; + height: 38px; + margin-bottom: 16px; + padding: 0 16px 0 13px; + border: 1px solid var(--color-secondary); + border-radius: 999px; + background: color-mix(in srgb, var(--color-box-header) 70%, var(--color-box-body)); color: var(--color-text-light-2); + transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; +} + +.qq-dash-search:hover { + border-color: color-mix(in srgb, var(--color-primary) 38%, var(--color-secondary)); +} + +.qq-dash-search:focus-within { + border-color: var(--color-primary); + background: var(--color-box-body); + box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent); +} + +.qq-dash-search svg { + flex: 0 0 auto; + width: 14px; + height: 14px; + opacity: 0.72; } .qq-dash-search input { flex: 1 1 auto; min-width: 0; + height: 100%; border: 0; background: transparent; color: var(--color-text); - font-size: 13.5px; + font-size: 13px; +} + +.qq-dash-search input::placeholder { + color: var(--color-text-light-2); + opacity: 0.8; } .qq-dash-search input:focus { diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index a4ecf38..d1ca5f4 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -4,9 +4,9 @@ 注意:只做外观增强,不引入任何外部依赖,全部资源随 custom/ 一起发布 */}} - - - + + +