Spaces:
Sleeping
Sleeping
Download frontend/src/index.css from shaun07/grid-backtest: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/spaces/shaun07/grid-backtest/resolve/main/frontend/src/index.css
- Command line
-
hf download hf://spaces/shaun07/grid-backtest/frontend/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/shaun07/grid-backtest/resolve/main/frontend/src/index.css
2.24 kB
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; | |
| /* 全局禁用水平滚动 */ | |
| /* overflow-x 由各页面组件自行控制 */ | |
| html, body, #root { | |
| overflow-x: visible; | |
| } | |
| @layer base { | |
| :root { | |
| --background: 210 25% 98%; | |
| --foreground: 215 20% 25%; | |
| --card: 0 0% 100%; | |
| --card-foreground: 215 20% 25%; | |
| --popover: 0 0% 100%; | |
| --popover-foreground: 215 20% 25%; | |
| --primary: 210 40% 65%; | |
| --primary-foreground: 0 0% 100%; | |
| --secondary: 210 30% 85%; | |
| --secondary-foreground: 215 20% 30%; | |
| --muted: 210 25% 92%; | |
| --muted-foreground: 215 15% 50%; | |
| --accent: 200 35% 75%; | |
| --accent-foreground: 215 20% 30%; | |
| --destructive: 0 50% 65%; | |
| --destructive-foreground: 0 0% 100%; | |
| --border: 210 20% 88%; | |
| --input: 210 20% 88%; | |
| --ring: 210 40% 65%; | |
| --radius: 0.5rem; | |
| } | |
| .dark { | |
| --background: 222.2 84% 4.9%; | |
| --foreground: 210 40% 98%; | |
| --card: 222.2 84% 4.9%; | |
| --card-foreground: 210 40% 98%; | |
| --popover: 222.2 84% 4.9%; | |
| --popover-foreground: 210 40% 98%; | |
| --primary: 217.2 91.2% 59.8%; | |
| --primary-foreground: 222.2 47.4% 11.2%; | |
| --secondary: 217.2 32.6% 17.5%; | |
| --secondary-foreground: 210 40% 98%; | |
| --muted: 217.2 32.6% 17.5%; | |
| --muted-foreground: 215 20.2% 65.1%; | |
| --accent: 217.2 32.6% 17.5%; | |
| --accent-foreground: 210 40% 98%; | |
| --destructive: 0 62.8% 30.6%; | |
| --destructive-foreground: 210 40% 98%; | |
| --border: 217.2 32.6% 17.5%; | |
| --input: 217.2 32.6% 17.5%; | |
| --ring: 224.3 76.3% 48%; | |
| } | |
| } | |
| @layer base { | |
| * { | |
| @apply border-border; | |
| } | |
| body { | |
| @apply bg-background text-foreground; | |
| } | |
| } | |
| /* 行情跑马灯动画 */ | |
| @keyframes marquee { | |
| 0% { | |
| transform: translateX(0); | |
| } | |
| 100% { | |
| transform: translateX(-50%); | |
| } | |
| } | |
| .animate-marquee { | |
| animation: marquee 30s linear infinite; | |
| } | |
| /* 卡片入场动画 */ | |
| @keyframes fadeInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .animate-fade-in-up { | |
| animation: fadeInUp 0.5s ease-out forwards; | |
| } | |
| /* 隐藏滚动条但保留功能 */ | |
| .scrollbar-none { | |
| -ms-overflow-style: none; | |
| scrollbar-width: none; | |
| } | |
| .scrollbar-none::-webkit-scrollbar { | |
| display: none; | |
| } | |