Spaces:
Running on Zero

Cognigraph / frontend /src /index.css
Manoj Kumar Thapa
feat: green answer highlights and README fixes
4366444
Raw History Blame Contribute Delete
3.64 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
color-scheme: dark;
--ink-950: #05070d;
--ink-900: #0a0e18;
--line: rgba(148, 163, 184, 0.14);
--line-strong: rgba(148, 163, 184, 0.24);
--text: #e7ebf3;
--muted: #8b93a7;
--teal: #5eead4;
--violet: #a78bfa;
--signal: #4ade80;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--ink-950);
color: var(--text);
overflow: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::selection {
background: rgba(94, 234, 212, 0.28);
}
@layer components {
/* Frosted panel floating over the graph */
.glass {
background: linear-gradient(180deg, rgba(19, 26, 42, 0.82), rgba(10, 14, 24, 0.82));
backdrop-filter: blur(18px) saturate(140%);
-webkit-backdrop-filter: blur(18px) saturate(140%);
border: 1px solid var(--line);
box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.aurora-text {
background: linear-gradient(100deg, var(--teal) 0%, #93c5fd 45%, var(--violet) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.icon-btn {
@apply inline-flex h-9 w-9 items-center justify-center rounded-xl text-slate-400 transition-colors duration-200 hover:bg-white/[0.06] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aurora-teal/60;
}
.eyebrow {
@apply font-mono text-[10.5px] uppercase tracking-[0.18em] text-slate-500;
}
}
/* Animated gradient border used by the upload portal */
.portal {
position: relative;
isolation: isolate;
}
.portal::before {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
padding: 1px;
background: conic-gradient(from var(--portal-angle, 0deg), rgba(94, 234, 212, 0.9), rgba(167, 139, 250, 0.15) 30%, rgba(167, 139, 250, 0.9) 55%, rgba(94, 234, 212, 0.15) 80%, rgba(94, 234, 212, 0.9));
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
animation: portal-spin 6s linear infinite;
opacity: 0.55;
transition: opacity 0.3s;
}
.portal:hover::before,
.portal[data-active='true']::before {
opacity: 1;
}
@property --portal-angle {
syntax: '<angle>';
initial-value: 0deg;
inherits: false;
}
@keyframes portal-spin {
to {
--portal-angle: 360deg;
}
}
/* Faint dot grid behind the graph and welcome screen */
.dot-grid {
background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px);
background-size: 28px 28px;
}
.thin-scroll {
scrollbar-width: thin;
scrollbar-color: rgba(148, 163, 184, 0.2) transparent;
}
.thin-scroll::-webkit-scrollbar {
width: 6px;
}
.thin-scroll::-webkit-scrollbar-thumb {
background: rgba(148, 163, 184, 0.2);
border-radius: 999px;
}
/* Graph tooltips injected by react-force-graph */
.scene-tooltip {
font-family: 'Inter', system-ui, sans-serif !important;
}
.graph-tip {
padding: 6px 10px;
border-radius: 10px;
background: rgba(10, 14, 24, 0.92);
border: 1px solid rgba(148, 163, 184, 0.2);
font-size: 12px;
line-height: 1.4;
color: #e7ebf3;
max-width: 260px;
}
.graph-tip .rel {
color: #4ade80;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}