From 10639d6ddf210958263fa879c06a7a2f338ff220 Mon Sep 17 00:00:00 2001 From: shiran <2488252513@qq.com> Date: Fri, 20 Feb 2026 21:48:19 +0800 Subject: [PATCH] =?UTF-8?q?style(topic-cards):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AF=9D=E9=A2=98=E5=8D=A1=E7=89=87=E6=82=AC=E5=81=9C=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除旧的背景渐变效果,改用 --active_color 变量 - 简化阴影效果,从双层阴影改为单层阴影 - 添加左侧边框以增强视觉效果 - 移除悬停时的垂直位移变换效果 --- scss/topic-cards.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scss/topic-cards.scss b/scss/topic-cards.scss index 0ecc788..1846560 100644 --- a/scss/topic-cards.scss +++ b/scss/topic-cards.scss @@ -204,11 +204,9 @@ &:hover { .discourse-no-touch & { - background: oklch(from var(--d-content-background) calc(l * 1.03) calc(c * 0.75) h); - box-shadow: - 0 16px 34px -18px rgb(10 18 35 / 45%), - 0 8px 20px -10px var(--topic-card-shadow); - transform: translateY(-2px); + background: var(--active_color); + box-shadow: 4px 5px 3px 1px rgba(0, 0, 0, .2), 0 8px 20px -10px var(--topic-card-shadow); + border-left: 5px solid #0007; } }