From c472e537a3893b9989daa3fa235df1a2425cc015 Mon Sep 17 00:00:00 2001 From: shiran <2488252513@qq.com> Date: Sat, 21 Feb 2026 10:11:28 +0800 Subject: [PATCH] =?UTF-8?q?style(topic-cards):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E5=8D=A1=E7=89=87=E6=A0=B7=E5=BC=8F=E4=BB=A5?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=96=B0=E7=9A=84=E9=A2=9C=E8=89=B2=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=92=8C=E9=98=B4=E5=BD=B1=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将背景渐变从 --d-sidebar-active-background 替换为 --active-color - 更新悬停状态的背景色为 --active-color - 修改盒阴影语法以提高兼容性 - 调整悬停状态的边框颜色透明度 - 简化了阴影效果的数值表示方式 --- scss/topic-cards.scss | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scss/topic-cards.scss b/scss/topic-cards.scss index 82fb50e..2cba580 100644 --- a/scss/topic-cards.scss +++ b/scss/topic-cards.scss @@ -68,10 +68,8 @@ .topic-list-body .topic-list-item { position: relative; - background: linear-gradient(45deg, var(--d-sidebar-active-background), #ffffff63); - box-shadow: - 0 10px 30px -18px rgb(10 18 35 / 38%), - 0 6px 16px -10px var(--topic-card-shadow); + background: linear-gradient(45deg, var(--active-color), rgb(255 255 255 / 25%)); + box-shadow: 4px 4px 6px 0px rgba(10, 18, 35, .38), 0 6px 16px -10px var(--topic-card-shadow); text-overflow: ellipsis; padding: var(--space-3); border: none; @@ -155,9 +153,9 @@ &:hover { .discourse-no-touch & { - background: var(--d-sidebar-active-background); - box-shadow: 4px 5px 3px 1px #0003, 0 8px 20px -10px var(--topic-card-shadow); - border-left: 5px solid #0008; + 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 #0006; } }