feat(web): overhaul frontend with cyber-intelligence design and interactive topology
CI / typecheck + tests (push) Canceled after 0s
CI / build + deploy (Nix) — api (push) Canceled after 0s
CI / build + deploy (Nix) — mcp (push) Canceled after 0s
CI / build + deploy (Nix) — worker (push) Canceled after 0s
CI / build + deploy (web) (push) Canceled after 0s
CI / typecheck + tests (push) Canceled after 0s
CI / build + deploy (Nix) — api (push) Canceled after 0s
CI / build + deploy (Nix) — mcp (push) Canceled after 0s
CI / build + deploy (Nix) — worker (push) Canceled after 0s
CI / build + deploy (web) (push) Canceled after 0s
This commit is contained in:
+158
-154
@@ -20,13 +20,15 @@
|
||||
|
||||
--brand: #4f46e5;
|
||||
--brand-hover: #4338ca;
|
||||
--brand-glow: rgba(79, 70, 229, 0.15);
|
||||
--accent: #4f46e5;
|
||||
--accent-hover: #4338ca;
|
||||
--cyan-accent: #0284c7;
|
||||
|
||||
--nav-bg: rgba(255, 255, 255, 0.88);
|
||||
--nav-bg: rgba(255, 255, 255, 0.85);
|
||||
|
||||
/* Code & Syntax variables (Light Mode) */
|
||||
--code-bg: #f1f5f9;
|
||||
--code-bg: #f8fafc;
|
||||
--code-block-bg: #f8fafc;
|
||||
--code-header-bg: #f1f5f9;
|
||||
--border-code: #e2e8f0;
|
||||
@@ -53,47 +55,52 @@
|
||||
--hl-operator: #57606a;
|
||||
--hl-variable: #953800;
|
||||
--hl-meta: #6e7781;
|
||||
|
||||
/* Grid overlay */
|
||||
--grid-pattern: rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
/* Dark mode overrides (html.dark) */
|
||||
html.dark {
|
||||
color-scheme: dark;
|
||||
--bg-app: #08090a;
|
||||
--bg-surface: #0f1011;
|
||||
--bg-surface-hover: #131415;
|
||||
--bg-elevated: #141517;
|
||||
--bg-elevated-hover: #1b1d20;
|
||||
--border-color: #1f2022;
|
||||
--bg-app: #08090d;
|
||||
--bg-surface: #0e1117;
|
||||
--bg-surface-hover: #141822;
|
||||
--bg-elevated: #151a26;
|
||||
--bg-elevated-hover: #1e2436;
|
||||
--border-color: #1e2536;
|
||||
--border-subtle: rgba(255, 255, 255, 0.06);
|
||||
--border-card: #1f2022;
|
||||
--border-card: #1e2536;
|
||||
|
||||
--text-primary: #f7f8f8;
|
||||
--text-secondary: #d0d6e0;
|
||||
--text-muted: #8a8f98;
|
||||
--text-dim: #62666d;
|
||||
--text-primary: #f8fafc;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-muted: #8492a6;
|
||||
--text-dim: #505c70;
|
||||
|
||||
--brand: #5e6ad2;
|
||||
--brand-hover: #7170ff;
|
||||
--accent: #7170ff;
|
||||
--accent-hover: #828fff;
|
||||
--brand: #6366f1;
|
||||
--brand-hover: #818cf8;
|
||||
--brand-glow: rgba(99, 102, 241, 0.22);
|
||||
--accent: #818cf8;
|
||||
--accent-hover: #a5b4fc;
|
||||
--cyan-accent: #38bdf8;
|
||||
|
||||
--nav-bg: rgba(8, 9, 10, 0.85);
|
||||
--nav-bg: rgba(8, 9, 13, 0.85);
|
||||
|
||||
/* Code & Syntax variables (Dark Mode) */
|
||||
--code-bg: #141517;
|
||||
--code-block-bg: #0d1117;
|
||||
--code-header-bg: #161b22;
|
||||
--border-code: #30363d;
|
||||
--code-button-bg: #21262d;
|
||||
--code-button-hover-bg: #30363d;
|
||||
--pre-text: #e6edf3;
|
||||
--code-inline-bg: #161b22;
|
||||
--code-inline-text: #e6edf3;
|
||||
--code-inline-border: #30363d;
|
||||
--code-bg: #0b0e14;
|
||||
--code-block-bg: #0a0d14;
|
||||
--code-header-bg: #111520;
|
||||
--border-code: #202738;
|
||||
--code-button-bg: #151a26;
|
||||
--code-button-hover-bg: #202738;
|
||||
--pre-text: #e2e8f0;
|
||||
--code-inline-bg: #131722;
|
||||
--code-inline-text: #e2e8f0;
|
||||
--code-inline-border: #202738;
|
||||
|
||||
--table-zebra: rgba(255, 255, 255, 0.02);
|
||||
--scrollbar-thumb: #23252a;
|
||||
--scrollbar-thumb-hover: #383b42;
|
||||
--scrollbar-thumb: #1e2536;
|
||||
--scrollbar-thumb-hover: #313c54;
|
||||
--shadow-card: none;
|
||||
|
||||
/* Syntax Highlighting (Dark Mode) */
|
||||
@@ -107,6 +114,9 @@ html.dark {
|
||||
--hl-operator: #8b949e;
|
||||
--hl-variable: #ffa657;
|
||||
--hl-meta: #8b949e;
|
||||
|
||||
/* Grid overlay */
|
||||
--grid-pattern: rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
@@ -141,10 +151,19 @@ body {
|
||||
background-color: var(--bg-app);
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font-sans);
|
||||
font-feature-settings: "cv01", "ss03";
|
||||
font-feature-settings: "cv01", "ss03", "zero";
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
transition: background-color 0.2s ease, color 0.2s ease;
|
||||
transition: background-color 0.25s ease, color 0.25s ease;
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Background subtle tech grid */
|
||||
.tech-grid-bg {
|
||||
background-size: 32px 32px;
|
||||
background-image: linear-gradient(to right, var(--grid-pattern) 1px, transparent 1px),
|
||||
linear-gradient(to bottom, var(--grid-pattern) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
/* Custom scrollbar */
|
||||
@@ -169,44 +188,100 @@ body {
|
||||
/* Glassmorphism helpers */
|
||||
.glass-panel {
|
||||
background: var(--bg-surface);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.glass-nav {
|
||||
background: var(--nav-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
}
|
||||
|
||||
.glow-card {
|
||||
position: relative;
|
||||
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.glow-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--brand);
|
||||
box-shadow: 0 8px 30px -10px var(--brand-glow);
|
||||
}
|
||||
|
||||
/* Callout Alert Styles */
|
||||
.callout {
|
||||
border-left-width: 4px;
|
||||
border-radius: 0 0.5rem 0.5rem 0;
|
||||
padding: 1rem 1.25rem;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.callout-note {
|
||||
border-left-color: #6366f1;
|
||||
background-color: rgba(99, 102, 241, 0.08);
|
||||
}
|
||||
|
||||
.callout-tip {
|
||||
border-left-color: #10b981;
|
||||
background-color: rgba(16, 185, 129, 0.08);
|
||||
}
|
||||
|
||||
.callout-important {
|
||||
border-left-color: #8b5cf6;
|
||||
background-color: rgba(139, 92, 246, 0.08);
|
||||
}
|
||||
|
||||
.callout-warning {
|
||||
border-left-color: #f59e0b;
|
||||
background-color: rgba(245, 158, 11, 0.08);
|
||||
}
|
||||
|
||||
.callout-caution {
|
||||
border-left-color: #ef4444;
|
||||
background-color: rgba(239, 68, 68, 0.08);
|
||||
}
|
||||
|
||||
/* Prose markdown typography for both Light and Dark modes */
|
||||
.prose {
|
||||
color: var(--text-secondary) !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.prose h1, .prose h2, .prose h3, .prose h4, .prose strong {
|
||||
color: var(--text-primary) !important;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.prose a {
|
||||
color: var(--accent) !important;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.prose a:hover {
|
||||
color: var(--accent-hover) !important;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.prose table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
margin: 1.75rem 0;
|
||||
margin: 2rem 0;
|
||||
font-size: 0.875rem;
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 0.75rem;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--bg-surface);
|
||||
}
|
||||
|
||||
.prose th,
|
||||
.prose td {
|
||||
padding: 0.75rem 1rem;
|
||||
padding: 0.875rem 1.125rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
@@ -217,7 +292,8 @@ body {
|
||||
font-weight: 600;
|
||||
font-size: 0.8125rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
letter-spacing: 0.06em;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.prose td {
|
||||
@@ -228,6 +304,10 @@ body {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.prose tbody tr:hover {
|
||||
background: var(--bg-elevated-hover);
|
||||
}
|
||||
|
||||
.prose tbody tr:nth-child(even) {
|
||||
background: var(--table-zebra);
|
||||
}
|
||||
@@ -237,10 +317,11 @@ body {
|
||||
color: var(--pre-text) !important;
|
||||
border: 1px solid var(--border-code);
|
||||
border-radius: 0.75rem;
|
||||
padding: 1rem 1.25rem;
|
||||
padding: 1.25rem;
|
||||
overflow-x: auto;
|
||||
position: relative;
|
||||
font-family: var(--font-mono);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.prose code {
|
||||
@@ -252,7 +333,7 @@ body {
|
||||
background: var(--code-inline-bg);
|
||||
color: var(--code-inline-text);
|
||||
border: 1px solid var(--code-inline-border);
|
||||
padding: 0.15rem 0.375rem;
|
||||
padding: 0.15rem 0.4rem;
|
||||
border-radius: 0.375rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -264,12 +345,12 @@ body {
|
||||
|
||||
.prose blockquote {
|
||||
border-left: 3px solid var(--brand);
|
||||
background: rgba(94, 106, 210, 0.08);
|
||||
border-radius: 0 0.375rem 0.375rem 0;
|
||||
margin: 1.5em 0;
|
||||
padding: 0.75em 1.25em;
|
||||
background: rgba(99, 102, 241, 0.08);
|
||||
border-radius: 0 0.5rem 0.5rem 0;
|
||||
margin: 1.75em 0;
|
||||
padding: 0.875em 1.25em;
|
||||
font-style: normal;
|
||||
color: var(--text-muted);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.prose hr {
|
||||
@@ -346,14 +427,14 @@ body {
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
color: #1a7f37;
|
||||
background-color: rgba(46, 160, 67, 0.15);
|
||||
color: #10b981;
|
||||
background-color: rgba(16, 185, 129, 0.15);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
color: #cf222e;
|
||||
background-color: rgba(248, 81, 73, 0.15);
|
||||
color: #ef4444;
|
||||
background-color: rgba(239, 68, 68, 0.15);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
@@ -365,37 +446,50 @@ body {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
/* Keyframes & Animation utilities */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(4px); }
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.animate-fade-in {
|
||||
animation: fadeIn 0.2s ease-out forwards;
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Print & PDF Export Stylesheet
|
||||
Optimized for publication-grade PDF generation via browser / window.print()
|
||||
========================================================================== */
|
||||
@keyframes pulseGlow {
|
||||
0%, 100% { opacity: 0.6; }
|
||||
50% { opacity: 1; filter: drop-shadow(0 0 8px var(--brand)); }
|
||||
}
|
||||
|
||||
.animate-fade-in {
|
||||
animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
.animate-slide-down {
|
||||
animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
.animate-pulse-glow {
|
||||
animation: pulseGlow 2.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Print & PDF Export Stylesheet */
|
||||
@media print {
|
||||
@page {
|
||||
size: A4 portrait;
|
||||
margin: 18mm 15mm 18mm 15mm;
|
||||
}
|
||||
|
||||
/* Force exact background colors and graphics */
|
||||
*, *::before, *::after {
|
||||
-webkit-print-color-adjust: exact !important;
|
||||
print-color-adjust: exact !important;
|
||||
}
|
||||
|
||||
/* Reset document canvas to white for crisp printing & ink economy */
|
||||
html, body {
|
||||
background-color: #ffffff !important;
|
||||
color: #0f172a !important;
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
|
||||
font-size: 10pt !important;
|
||||
line-height: 1.5 !important;
|
||||
margin: 0 !important;
|
||||
@@ -403,9 +497,9 @@ body {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
/* Hide app navigation, headers, sidebars, interactive controls */
|
||||
header,
|
||||
aside,
|
||||
footer,
|
||||
nav.site-header,
|
||||
.no-print,
|
||||
.export-toolbar,
|
||||
@@ -413,7 +507,6 @@ body {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Full width container in print */
|
||||
main,
|
||||
.print-container {
|
||||
max-width: 100% !important;
|
||||
@@ -425,7 +518,6 @@ body {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
/* Page break rules */
|
||||
.page-break-before,
|
||||
.chapter-page,
|
||||
.challenge-entry {
|
||||
@@ -433,14 +525,6 @@ body {
|
||||
page-break-before: always !important;
|
||||
}
|
||||
|
||||
.page-break-after,
|
||||
.cover-page,
|
||||
.scoreboard-page,
|
||||
.toc-page {
|
||||
break-after: page !important;
|
||||
page-break-after: always !important;
|
||||
}
|
||||
|
||||
.avoid-break-inside,
|
||||
.code-block-wrapper,
|
||||
.code-block-container,
|
||||
@@ -459,7 +543,6 @@ body {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
/* Code block wrapping and styling in print */
|
||||
.code-block-wrapper,
|
||||
.code-block-container {
|
||||
break-inside: avoid !important;
|
||||
@@ -492,87 +575,8 @@ body {
|
||||
white-space: pre-wrap !important;
|
||||
word-break: break-all !important;
|
||||
overflow-wrap: anywhere !important;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
|
||||
font-size: 8.5pt !important;
|
||||
line-height: 1.4 !important;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: #f1f5f9 !important;
|
||||
color: #0f172a !important;
|
||||
padding: 1pt 3pt !important;
|
||||
border-radius: 3px !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #f8fafc !important;
|
||||
color: #0f172a !important;
|
||||
border: 1px solid #cbd5e1 !important;
|
||||
border-radius: 4px !important;
|
||||
padding: 8pt 10pt !important;
|
||||
margin: 8pt 0 !important;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background-color: transparent !important;
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* Typography tweaks for formal print */
|
||||
.prose {
|
||||
color: #0f172a !important;
|
||||
font-size: 10pt !important;
|
||||
}
|
||||
|
||||
.prose h1,
|
||||
.prose h2,
|
||||
.prose h3,
|
||||
.prose h4,
|
||||
.prose h5,
|
||||
.prose h6 {
|
||||
color: #020617 !important;
|
||||
font-weight: 700 !important;
|
||||
page-break-after: avoid !important;
|
||||
break-after: avoid !important;
|
||||
}
|
||||
|
||||
.prose p,
|
||||
.prose li {
|
||||
color: #334155 !important;
|
||||
}
|
||||
|
||||
.prose a {
|
||||
color: #0f172a !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
.prose blockquote {
|
||||
background-color: #f8fafc !important;
|
||||
border-left: 3pt solid #334155 !important;
|
||||
color: #334155 !important;
|
||||
padding: 6pt 10pt !important;
|
||||
margin: 8pt 0 !important;
|
||||
}
|
||||
|
||||
.prose table {
|
||||
border: 1px solid #cbd5e1 !important;
|
||||
font-size: 9pt !important;
|
||||
width: 100% !important;
|
||||
border-collapse: collapse !important;
|
||||
}
|
||||
|
||||
.prose th {
|
||||
background-color: #f1f5f9 !important;
|
||||
color: #0f172a !important;
|
||||
font-weight: 600 !important;
|
||||
border-bottom: 1.5px solid #94a3b8 !important;
|
||||
padding: 4pt 6pt !important;
|
||||
}
|
||||
|
||||
.prose td {
|
||||
border-bottom: 1px solid #e2e8f0 !important;
|
||||
padding: 4pt 6pt !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user