From f4c5f93370240c28b6e7dfa41dc740ee6dbcae64 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Wed, 8 Jul 2026 12:13:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(website):=20=E4=B8=BB=E9=A2=98=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=8C=89=E9=92=AE=E7=BC=A9=E5=B0=8F,=E4=B8=8E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=AD=E5=BF=83=E4=B8=80=E8=87=B4(?= =?UTF-8?q?=E9=80=8F=E6=98=8E=E5=BA=95/=E6=97=A0=E6=A1=86/17px=20=E5=9B=BE?= =?UTF-8?q?=E6=A0=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原 38×38 圆框 + surface 底太大;改为透明底、无边框、padding 6、图标 17px, 和用户中心顶栏主题按钮同款尺寸。 Co-Authored-By: Claude Opus 4.8 --- web/website/src/styles/website.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/website/src/styles/website.css b/web/website/src/styles/website.css index 5ff90fb..718092b 100644 --- a/web/website/src/styles/website.css +++ b/web/website/src/styles/website.css @@ -43,9 +43,9 @@ img,svg{display:block} .linklogin:hover{color:var(--accent)} /* 明/暗主题切换(顶栏图标按钮,随 token 自适配) */ -.themetoggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border:1.5px solid var(--border-strong);border-radius:var(--radius-full);background:var(--surface);color:var(--fg2);cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out)} -.themetoggle:hover{border-color:var(--accent);color:var(--accent)} -.themetoggle svg{width:18px;height:18px} +.themetoggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:none;background:transparent;color:var(--fg2);cursor:pointer;padding:6px;transition:color var(--dur-fast) var(--ease-out)} +.themetoggle:hover{color:var(--accent)} +.themetoggle svg{width:17px;height:17px} /* ---------- language dropdown ---------- */ .langwrap{position:relative;display:inline-block}