Skip to content

Commit c7e7a5a

Browse files
longsizhuoCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent e372dc8 commit c7e7a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/globals.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@
291291
/* 针对不同颜色类型的 hover 变深效果 */
292292
.hover-darken-bg {
293293
transition: all 0.2s ease-in-out;
294+
--hover-darken-bg-color: #f0f0f0;
294295
}
295296

296297
.hover-darken-bg:hover {
297-
background-color: #f0f0f0 !important;
298+
background-color: var(--hover-darken-bg-color);
298299
transform: scale(1.02);
299300
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
300301
}

0 commit comments

Comments
 (0)