生产管理系统前端 - 瓦力提交代码&文档更新

This commit is contained in:
2025-10-25 16:11:15 +08:00
parent 7615ca9895
commit 1f1d94ed84
336 changed files with 189684 additions and 5161 deletions

View File

@@ -42,40 +42,253 @@
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.145 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.145 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.985 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.396 0.141 25.723);
--destructive-foreground: oklch(0.637 0.237 25.331);
--border: oklch(0.269 0 0);
--input: oklch(0.269 0 0);
--ring: oklch(0.439 0 0);
--background: #0f1419;
--foreground: #e7e9ea;
--card: #1a1f26;
--card-foreground: #e7e9ea;
--popover: #1a1f26;
--popover-foreground: #e7e9ea;
--primary: #22c55e;
--primary-foreground: #0f1419;
--secondary: #374151;
--secondary-foreground: #e7e9ea;
--muted: #374151;
--muted-foreground: #9ca3af;
--accent: #1f2937;
--accent-foreground: #e7e9ea;
--destructive: #ef4444;
--destructive-foreground: #fecaca;
--border: rgba(255, 255, 255, 0.1);
--input: rgba(255, 255, 255, 0.05);
--input-background: #1f2937;
--switch-background: #4b5563;
--ring: rgba(34, 197, 94, 0.5);
--font-weight-medium: 500;
--font-weight-normal: 400;
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(0.269 0 0);
--sidebar-ring: oklch(0.439 0 0);
--chart-1: #22c55e;
--chart-2: #3b82f6;
--chart-3: #f59e0b;
--chart-4: #8b5cf6;
--chart-5: #ec4899;
--sidebar: #1a1f26;
--sidebar-foreground: #e7e9ea;
--sidebar-primary: #22c55e;
--sidebar-primary-foreground: #0f1419;
--sidebar-accent: #1f2937;
--sidebar-accent-foreground: #e7e9ea;
--sidebar-border: rgba(255, 255, 255, 0.1);
--sidebar-ring: rgba(34, 197, 94, 0.5);
}
/* Dark mode color utilities */
.dark {
/* Additional color shades for gradients and backgrounds */
color-scheme: dark;
}
.dark .bg-gray-50 {
background-color: #1f2937;
}
.dark .bg-gray-100 {
background-color: #374151;
}
.dark .bg-gray-200 {
background-color: #4b5563;
}
.dark .text-gray-900 {
color: #e7e9ea;
}
.dark .text-gray-800 {
color: #d1d5db;
}
.dark .text-gray-700 {
color: #9ca3af;
}
/* Green theme variations for dark mode */
.dark .bg-green-50 {
background-color: rgba(34, 197, 94, 0.1);
}
.dark .bg-green-100 {
background-color: rgba(34, 197, 94, 0.2);
}
.dark .text-green-800 {
color: #4ade80;
}
.dark .text-green-700 {
color: #4ade80;
}
.dark .text-green-600 {
color: #22c55e;
}
/* Blue theme variations for dark mode */
.dark .bg-blue-50 {
background-color: rgba(59, 130, 246, 0.1);
}
.dark .bg-blue-100 {
background-color: rgba(59, 130, 246, 0.2);
}
.dark .text-blue-800 {
color: #60a5fa;
}
.dark .text-blue-700 {
color: #60a5fa;
}
.dark .text-blue-600 {
color: #3b82f6;
}
.dark .text-blue-900 {
color: #93c5fd;
}
/* Red theme variations for dark mode */
.dark .bg-red-50 {
background-color: rgba(239, 68, 68, 0.1);
}
.dark .bg-red-100 {
background-color: rgba(239, 68, 68, 0.2);
}
.dark .text-red-800 {
color: #f87171;
}
.dark .text-red-700 {
color: #f87171;
}
.dark .text-red-600 {
color: #ef4444;
}
/* Orange theme variations for dark mode */
.dark .bg-orange-50 {
background-color: rgba(249, 115, 22, 0.1);
}
.dark .bg-orange-100 {
background-color: rgba(249, 115, 22, 0.2);
}
.dark .text-orange-800 {
color: #fb923c;
}
.dark .text-orange-700 {
color: #fb923c;
}
.dark .text-orange-600 {
color: #f97316;
}
/* Yellow theme variations for dark mode */
.dark .bg-yellow-50 {
background-color: rgba(234, 179, 8, 0.1);
}
.dark .bg-yellow-100 {
background-color: rgba(234, 179, 8, 0.2);
}
.dark .text-yellow-800 {
color: #fbbf24;
}
.dark .text-yellow-700 {
color: #fbbf24;
}
/* Purple theme variations for dark mode */
.dark .bg-purple-50 {
background-color: rgba(139, 92, 246, 0.1);
}
.dark .bg-purple-100 {
background-color: rgba(139, 92, 246, 0.2);
}
.dark .text-purple-800 {
color: #a78bfa;
}
.dark .text-purple-700 {
color: #a78bfa;
}
.dark .text-purple-600 {
color: #8b5cf6;
}
.dark .text-purple-900 {
color: #c4b5fd;
}
/* Pink theme variations for dark mode */
.dark .bg-pink-50 {
background-color: rgba(236, 72, 153, 0.1);
}
.dark .bg-pink-100 {
background-color: rgba(236, 72, 153, 0.2);
}
.dark .text-pink-800 {
color: #f472b6;
}
.dark .text-pink-700 {
color: #f472b6;
}
/* Cyan/Teal theme variations for dark mode */
.dark .bg-cyan-50 {
background-color: rgba(6, 182, 212, 0.1);
}
.dark .bg-teal-50 {
background-color: rgba(20, 184, 166, 0.1);
}
.dark .text-cyan-800 {
color: #22d3ee;
}
/* Border color variations for dark mode */
.dark .border-green-200 {
border-color: rgba(34, 197, 94, 0.3);
}
.dark .border-blue-200 {
border-color: rgba(59, 130, 246, 0.3);
}
.dark .border-red-200 {
border-color: rgba(239, 68, 68, 0.3);
}
.dark .border-orange-200 {
border-color: rgba(249, 115, 22, 0.3);
}
.dark .border-purple-200 {
border-color: rgba(139, 92, 246, 0.3);
}
@theme inline {
@@ -195,10 +408,186 @@ html {
/* Field value styling for forms and detail views */
@layer components {
.field-value {
@apply mt-2 text-base text-foreground px-3 py-2 bg-gray-50 rounded-md min-h-[2.5rem] flex items-center;
@apply mt-2 text-base text-foreground px-3 py-2 bg-gray-50 dark:bg-gray-800 rounded-md min-h-[2.5rem] flex items-center transition-colors;
}
.field-value-inline {
@apply mt-2 text-base text-foreground;
}
}
/* Water wave animation for fertilizer tank - Enhanced sloshing effect */
@keyframes wave-flow {
0% {
transform: translateX(0) translateZ(0) scaleY(1) rotate(0deg);
}
25% {
transform: translateX(-15%) translateZ(0) scaleY(0.92) rotate(-1deg);
}
50% {
transform: translateX(-25%) translateZ(0) scaleY(0.88) rotate(0deg);
}
75% {
transform: translateX(-40%) translateZ(0) scaleY(0.93) rotate(1deg);
}
100% {
transform: translateX(-50%) translateZ(0) scaleY(1) rotate(0deg);
}
}
@keyframes wave-flow-reverse {
0% {
transform: translateX(0) translateZ(0) scaleY(1) rotate(0deg);
}
25% {
transform: translateX(15%) translateZ(0) scaleY(0.93) rotate(1deg);
}
50% {
transform: translateX(25%) translateZ(0) scaleY(0.85) rotate(0deg);
}
75% {
transform: translateX(40%) translateZ(0) scaleY(0.91) rotate(-1deg);
}
100% {
transform: translateX(50%) translateZ(0) scaleY(1) rotate(0deg);
}
}
@keyframes wave-sloshing {
0% {
transform: translateX(0) translateY(0) scaleX(1);
}
25% {
transform: translateX(-3%) translateY(-2%) scaleX(1.02);
}
50% {
transform: translateX(0) translateY(0) scaleX(1);
}
75% {
transform: translateX(3%) translateY(-2%) scaleX(0.98);
}
100% {
transform: translateX(0) translateY(0) scaleX(1);
}
}
@keyframes shimmer {
0% {
background-position: -200% center;
}
100% {
background-position: 200% center;
}
}
.water-wave {
position: relative;
overflow: hidden;
animation: wave-sloshing 2s ease-in-out infinite;
}
.water-wave::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.4) 0%,
rgba(255, 255, 255, 0.2) 50%,
transparent 100%
);
animation: wave-flow 2.5s ease-in-out infinite;
will-change: transform;
}
.water-wave::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.3) 0%,
rgba(255, 255, 255, 0.1) 50%,
transparent 100%
);
animation: wave-flow-reverse 2s ease-in-out infinite;
animation-delay: 0.3s;
will-change: transform;
}
.water-shimmer {
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.3) 50%,
transparent 100%
);
background-size: 200% 100%;
animation: shimmer 3s linear infinite;
}
.water-ripple {
position: absolute;
border-radius: 50%;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.4) 0%,
rgba(255, 255, 255, 0.1) 50%,
transparent 100%
);
animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
0% {
width: 0;
height: 0;
opacity: 1;
}
100% {
width: 100px;
height: 100px;
opacity: 0;
}
}
/* Auth page background animations */
@keyframes blob {
0% {
transform: translate(0px, 0px) scale(1);
}
33% {
transform: translate(30px, -50px) scale(1.1);
}
66% {
transform: translate(-20px, 20px) scale(0.9);
}
100% {
transform: translate(0px, 0px) scale(1);
}
}
.animate-blob {
animation: blob 7s infinite;
}
.animation-delay-2000 {
animation-delay: 2s;
}
.animation-delay-4000 {
animation-delay: 4s;
}
/* Grid pattern background */
.bg-grid-pattern {
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
background-size: 40px 40px;
}