From c6df703b967cf9988384fb7773b5e8a0ba4ff4ad Mon Sep 17 00:00:00 2001 From: freefire Date: Thu, 27 Aug 2026 19:01:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=A0=E4=BD=8D=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=99=BD=E5=AD=97=E5=B9=B6=E4=BF=9D=E7=95=99?= =?UTF-8?q?=20hover=20=E6=8F=8F=E8=BE=B9=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 user-link inherit 覆盖 post-avatar 白字的问题,头像链接 hover 时用淡绿描边替代变绿字。 Co-authored-by: Cursor --- frontend/src/styles/global.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/styles/global.css b/frontend/src/styles/global.css index 00dbd61..75b557a 100644 --- a/frontend/src/styles/global.css +++ b/frontend/src/styles/global.css @@ -7511,10 +7511,16 @@ button.profile-signature--editable:focus-visible .profile-signature-edit { flex-shrink: 0; } -a.user-link--avatar-only:hover, -a.user-link--avatar-only:focus-visible { +/* 占位头像链接:避免 .user-link inherit 盖掉绿底白字 */ +a.user-link.user-link--avatar-only { color: #fff; - outline: none; +} + +a.user-link.user-link--avatar-only:hover, +a.user-link.user-link--avatar-only:focus-visible { + color: #fff; + outline: 2px solid color-mix(in srgb, var(--j13-green) 45%, transparent); + outline-offset: 2px; } .post-meta-user {