style(topic-cards): 优化卡片样式和过渡效果
Discourse Theme / ci (push) Failing after 1s

- 将过渡属性从特定属性改为 all 以简化动画效果
- 移除复杂的径向渐变背景和遮罩组合效果
- 添加列表容器的基础样式定义
- 为列表容器添加半透明白色背景层
This commit is contained in:
2026-02-20 13:11:43 +08:00
parent d3bb44d636
commit ddf40963aa
+18 -17
View File
@@ -84,8 +84,7 @@
border-radius: var(--d-border-radius); border-radius: var(--d-border-radius);
cursor: pointer; cursor: pointer;
transition: transition:
box-shadow 0.2s ease, all 0.2s ease;
transform 0.2s ease;
&::before { &::before {
content: ""; content: "";
@@ -93,21 +92,6 @@
inset: 0; inset: 0;
border-radius: inherit; border-radius: inherit;
padding: 1px; padding: 1px;
background:
radial-gradient(
120% 90% at 0% 0%,
oklch(from var(--accent-color) calc(l * 1.12) calc(c * 0.55) h / 0.5),
transparent 55%
),
radial-gradient(
120% 90% at 100% 100%,
oklch(from var(--accent-color) calc(l * 1.05) calc(c * 0.45) h / 0.35),
transparent 58%
);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude; mask-composite: exclude;
pointer-events: none; pointer-events: none;
} }
@@ -780,3 +764,20 @@ body.user-messages-page {
display: inline-flex; display: inline-flex;
position: relative; position: relative;
} }
.container.list-container{
position: relative;
}
.container.list-container::before{
position: absolute;
content: "";
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
width: 100%;
height: 100%;
background-color: #fff9;
}