优化样式设置,将背景颜色改为透明,提升界面整洁性。同时在 App 组件中添加毛玻璃蒙版层,增强视觉效果。

This commit is contained in:
wood chen 2025-06-16 10:48:59 +08:00
parent d9995fab5f
commit 4e3d24975c
3 changed files with 12 additions and 4 deletions

View File

@ -25,15 +25,15 @@
}
html {
background-color: var(--bg) !important;
background: transparent !important;
}
body {
background-color: var(--bg) !important;
background: transparent !important;
}
#root {
background-color: var(--bg) !important;
background: transparent !important;
visibility: hidden;
}

View File

@ -66,6 +66,13 @@ const App: React.FC = () => {
zIndex: -1
}}
/>
{/* 毛玻璃蒙版层 */}
<div
className="fixed inset-0 backdrop-blur-sm bg-black/80"
style={{
zIndex: -1
}}
/>
<main className="relative flex min-h-screen flex-col gap-2 p-2 md:p-6 md:pt-4 bg-transparent">
<RefreshToast />

View File

@ -92,7 +92,8 @@
@apply scroll-smooth;
}
body {
@apply bg-background text-foreground;
@apply text-foreground;
background: transparent !important;
/* font-feature-settings: "rlig" 1, "calt" 1; */
font-synthesis-weight: none;
text-rendering: optimizeLegibility;