fix:[FL-169][修复登录页面颜色在暗黑主题下不兼容问题]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
chengkai3
2026-06-20 23:55:01 +08:00
parent 35c7bd4ac0
commit c7d364a894
2 changed files with 23 additions and 1 deletions
+22
View File
@@ -1319,3 +1319,25 @@ body {
:root[data-fquiz-theme="dark"] .admin-lightning-distribution-card-view-state {
color: var(--ant-color-text-secondary) !important;
}
.login-page-card {
border-color: color-mix(in srgb, var(--fquiz-theme-primary) 26%, var(--ant-color-border-secondary));
background:
linear-gradient(
180deg,
color-mix(in srgb, var(--fquiz-theme-bg-container) 96%, var(--fquiz-theme-primary) 4%) 0%,
var(--fquiz-theme-bg-container) 100%
);
box-shadow: 0 8px 18px color-mix(in srgb, var(--fquiz-theme-text-primary) 8%, transparent);
}
:root[data-fquiz-theme="dark"] .login-page-card {
border-color: color-mix(in srgb, var(--fquiz-theme-primary) 35%, var(--ant-color-border-secondary)) !important;
background:
linear-gradient(
180deg,
color-mix(in srgb, var(--ant-color-bg-container) 92%, var(--fquiz-theme-primary) 8%) 0%,
var(--ant-color-bg-container) 100%
) !important;
box-shadow: 0 8px 18px color-mix(in srgb, black 40%, transparent) !important;
}
+1 -1
View File
@@ -135,7 +135,7 @@ export default function LoginPage() {
return (
<main className="flex min-h-screen items-center justify-center bg-[var(--fquiz-theme-bg-layout)] px-4 py-8">
<Card className="w-full max-w-[360px]">
<Card className="login-page-card w-full max-w-[360px]">
<Space direction="vertical" size={20} className="w-full">
<div className="flex justify-center">
<img