Files
openclaw-market/app/globals.css
2026-03-16 08:44:11 +08:00

251 lines
5.3 KiB
CSS

@import "tailwindcss";
/* === Cyberpunk Theme Variables === */
:root {
--bg-primary: #0a0e1a;
--bg-secondary: #111827;
--bg-card: #1a1f2e;
--bg-card-hover: #242a3d;
--border-glow: #00f0ff;
--accent-cyan: #00f0ff;
--accent-purple: #8b5cf6;
--accent-pink: #ec4899;
--accent-green: #10b981;
--accent-orange: #f59e0b;
--text-primary: #e2e8f0;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
--glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
--glow-strong: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.2);
}
/* === shadcn/ui CSS Variable Overrides === */
:root {
--background: 222.2 47.4% 6.2%;
--foreground: 210 40% 92%;
--card: 222.2 47.4% 9.2%;
--card-foreground: 210 40% 92%;
--popover: 222.2 47.4% 9.2%;
--popover-foreground: 210 40% 92%;
--primary: 187 100% 50%;
--primary-foreground: 222.2 47.4% 6.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 92%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 55.1%;
--accent: 263 70% 60%;
--accent-foreground: 210 40% 92%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 92%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 187 100% 50%;
--radius: 0.75rem;
}
/* === Base Styles === */
body {
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: var(--font-inter, "Inter", ui-sans-serif, system-ui, sans-serif);
min-height: 100vh;
}
/* === Utility Classes === */
/* Glowing cyan text */
.glow-text {
text-shadow:
0 0 10px rgba(0, 240, 255, 0.5),
0 0 20px rgba(0, 240, 255, 0.3),
0 0 40px rgba(0, 240, 255, 0.1);
}
/* Glowing cyan border */
.glow-border {
box-shadow:
0 0 10px rgba(0, 240, 255, 0.2),
0 0 20px rgba(0, 240, 255, 0.1),
inset 0 0 10px rgba(0, 240, 255, 0.05);
border: 1px solid rgba(0, 240, 255, 0.3);
}
/* Card with subtle glow and hover effect */
.glow-card {
background-color: var(--bg-card);
border: 1px solid rgba(0, 240, 255, 0.1);
box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
transition: all 0.3s ease;
}
.glow-card:hover {
background-color: var(--bg-card-hover);
border-color: rgba(0, 240, 255, 0.3);
box-shadow:
0 0 15px rgba(0, 240, 255, 0.15),
0 0 30px rgba(0, 240, 255, 0.05);
}
/* Subtle repeating grid overlay */
.cyber-grid {
background-image:
repeating-linear-gradient(
0deg,
rgba(0, 240, 255, 0.03) 0px,
rgba(0, 240, 255, 0.03) 1px,
transparent 1px,
transparent 40px
),
repeating-linear-gradient(
90deg,
rgba(0, 240, 255, 0.03) 0px,
rgba(0, 240, 255, 0.03) 1px,
transparent 1px,
transparent 40px
);
}
/* Animated gradient neon line separator */
.neon-line {
height: 1px;
background: linear-gradient(
90deg,
transparent,
var(--accent-cyan),
var(--accent-purple),
var(--accent-cyan),
transparent
);
background-size: 200% 100%;
animation: neon-sweep 3s linear infinite;
}
@keyframes neon-sweep {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
/* === Custom Scrollbar === */
* {
scrollbar-width: thin;
scrollbar-color: rgba(0, 240, 255, 0.2) transparent;
}
*::-webkit-scrollbar {
width: 6px;
height: 6px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: rgba(0, 240, 255, 0.2);
border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 240, 255, 0.4);
}
/* === MapLibre Dark Popup === */
.maplibre-dark-popup .maplibregl-popup-content {
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid rgba(0, 240, 255, 0.15);
border-radius: 0.75rem;
box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
padding: 0.75rem;
}
.maplibre-dark-popup .maplibregl-popup-tip {
border-top-color: var(--bg-card);
}
.maplibre-dark-popup .maplibregl-popup-close-button {
display: none;
}
/* === Hero Animations === */
/* Fade in animation */
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Fade in and slide up animation */
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Glowing text pulse animation */
@keyframes glow-pulse {
0%, 100% {
text-shadow:
0 0 10px rgba(0, 240, 255, 0.5),
0 0 20px rgba(0, 240, 255, 0.3),
0 0 40px rgba(0, 240, 255, 0.1);
}
50% {
text-shadow:
0 0 15px rgba(0, 240, 255, 0.6),
0 0 30px rgba(0, 240, 255, 0.4),
0 0 60px rgba(0, 240, 255, 0.2);
}
}
/* Animation utility classes */
.animate-fade-in {
animation: fade-in 0.6s ease-out forwards;
}
.animate-fade-in-up {
animation: fade-in-up 0.6s ease-out forwards;
}
/* Glowing text with pulse effect */
.glow-text-pulse {
color: var(--text-primary);
animation: glow-pulse 3s ease-in-out infinite;
}
/* Animation delays */
.animation-delay-200 {
animation-delay: 0.2s;
opacity: 0;
}
.animation-delay-400 {
animation-delay: 0.4s;
opacity: 0;
}
/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
.animate-fade-in,
.animate-fade-in-up,
.glow-text-pulse {
animation: none;
opacity: 1;
transform: none;
}
}