Perps-Terminal / frontend /src /index.css
Naufal Arhab
feat(mobile): add mobile bottom navigation, native pair picker in AI terminal, and touch optimizations
c132c62
Raw History Blame Contribute Delete
2.56 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
* {
box-sizing: border-box;
scrollbar-width: thin;
scrollbar-color: #1f2937 transparent;
}
*::-webkit-scrollbar {
width: 6px;
height: 6px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: #1f2937;
border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
background-color: #374151;
}
html, body {
margin: 0;
padding: 0;
background-color: #0a0e1a;
color: #f9fafb;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
min-height: 100vh;
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overscroll-behavior-y: none;
}
button, a, input, select, textarea {
touch-action: manipulation;
}
#root {
min-height: 100vh;
display: flex;
flex-direction: column;
}
}
@layer components {
.skeleton {
background: linear-gradient(
90deg,
#1f2937 0%,
#374151 50%,
#1f2937 100%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite linear;
border-radius: 4px;
}
.glow-long {
box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.glow-short {
box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}
/* GPU-Accelerated Off-Screen Virtualization (Native browser rendering skip for off-screen cards) */
.signal-card-container {
content-visibility: auto;
contain-intrinsic-size: 1px 310px;
will-change: transform;
}
.card {
@apply bg-bg-card border border-border rounded-xl;
}
.btn-primary {
@apply bg-accent-blue hover:bg-blue-600 text-white font-medium px-4 py-2 rounded-lg transition-colors duration-150 text-sm;
}
.btn-ghost {
@apply bg-transparent hover:bg-bg-elevated text-text-secondary hover:text-text-primary border border-border px-4 py-2 rounded-lg transition-colors duration-150 text-sm;
}
.input-field {
@apply bg-bg-elevated border border-border text-text-primary placeholder-text-muted rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-accent-blue focus:ring-1 focus:ring-accent-blue transition-colors;
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.pb-safe {
padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
.momentum-scroll {
-webkit-overflow-scrolling: touch;
}
}