Files
soleprint/docs/docs.css
2026-04-14 10:32:05 -03:00

348 lines
6.7 KiB
CSS

/* soleprint docs — minimal-neon */
:root {
--bg: #0a0a0a;
--surface: #1a1a1a;
--border: #333;
--text: #e5e5e5;
--text-muted: #a3a3a3;
--text-dim: #666;
--amber: #d4a574;
--amber-dim: #b8956a;
--artery: #b91c1c;
--artery-text: #fca5a5;
--atlas: #15803d;
--atlas-text: #86efac;
--station: #1d4ed8;
--station-text: #93c5fd;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
/* Layout */
.layout {
display: flex;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
width: 220px;
flex-shrink: 0;
background: var(--surface);
border-right: 1px solid var(--border);
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
padding: 1.5rem 0;
}
/* Hide sidebar scrollbar */
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar { scrollbar-width: none; }
.sidebar-header {
padding: 0 1rem 1rem;
border-bottom: 1px solid var(--border);
margin-bottom: 0.5rem;
}
.sidebar-header a {
text-decoration: none;
color: inherit;
}
.sidebar-header h1 {
font-size: 1rem;
font-weight: 600;
color: var(--text);
letter-spacing: 0.5px;
}
.sidebar-header span {
font-size: 0.75rem;
color: var(--text-dim);
}
.sidebar-item {
display: block;
padding: 0.4rem 1rem;
font-size: 0.85rem;
color: var(--text-muted);
text-decoration: none;
border-left: 2px solid transparent;
cursor: pointer;
transition: all 0.15s;
}
.sidebar-item:hover {
color: var(--text);
background: rgba(255,255,255,0.03);
}
.sidebar-item.active {
color: var(--amber);
border-left-color: var(--amber);
background: rgba(212,165,116,0.05);
}
.sidebar-chevron {
display: inline-block;
margin-right: 0.3rem;
transition: transform 0.15s;
font-size: 0.7rem;
color: var(--text-dim);
}
.sidebar-chevron.expanded {
transform: rotate(90deg);
}
.sidebar-sub {
padding-left: 1.75rem;
font-size: 0.8rem;
border-left-color: transparent;
color: var(--text-dim);
}
.sidebar-sub:hover {
color: var(--text-muted);
}
.sidebar-sub.active {
color: var(--amber);
border-left-color: var(--amber);
background: rgba(212,165,116,0.05);
}
/* System-colored sidebar items */
.sidebar-item[href*="artery"]:hover,
.sidebar-sub[href*="artery"]:hover { color: var(--artery-text); }
.sidebar-item[href*="artery"].active,
.sidebar-sub[href*="artery"].active { color: var(--artery-text); border-left-color: var(--artery); }
.sidebar-item[href*="atlas"]:hover,
.sidebar-sub[href*="atlas"]:hover { color: var(--atlas-text); }
.sidebar-item[href*="atlas"].active,
.sidebar-sub[href*="atlas"].active { color: var(--atlas-text); border-left-color: var(--atlas); }
.sidebar-item[href*="station"]:hover,
.sidebar-sub[href*="station"]:hover { color: var(--station-text); }
.sidebar-item[href*="station"].active,
.sidebar-sub[href*="station"].active { color: var(--station-text); border-left-color: var(--station); }
/* Content */
.content {
flex: 1;
min-width: 0;
max-width: 800px;
padding: 2rem 3rem;
}
.loading {
color: var(--text-dim);
}
/* Markdown rendering */
.content h1 {
font-size: 1.5rem;
font-weight: 600;
color: var(--amber);
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border);
}
.content h2 {
font-size: 1.1rem;
font-weight: 600;
color: var(--text);
margin-top: 2rem;
margin-bottom: 0.75rem;
}
.content h3 {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-muted);
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}
.content p {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 0.75rem;
line-height: 1.7;
}
.content strong {
color: var(--text);
font-weight: 600;
}
.content a {
color: var(--amber);
text-decoration: none;
}
.content a:hover {
text-decoration: underline;
}
.content blockquote {
border-left: 3px solid var(--amber);
padding: 0.75rem 1.25rem;
margin: 1rem 0;
background: var(--surface);
border-radius: 0 8px 8px 0;
}
.content blockquote p {
margin-bottom: 0;
color: var(--amber);
font-size: 0.9rem;
}
.content ul, .content ol {
padding-left: 0;
margin: 0.75rem 0;
list-style: none;
}
.content li {
font-size: 0.9rem;
color: var(--text-muted);
padding-left: 1.25rem;
margin-bottom: 0.4rem;
position: relative;
line-height: 1.6;
}
.content li::before {
content: ">";
position: absolute;
left: 0;
color: var(--amber);
font-weight: 600;
}
.content hr {
border: none;
border-top: 1px solid var(--border);
margin: 2rem 0;
}
.content pre {
background: var(--surface);
border: 1px solid var(--border);
padding: 1rem;
margin: 1rem 0;
overflow-x: auto;
border-radius: 8px;
font-size: 0.85rem;
line-height: 1.5;
}
.content code {
font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
color: var(--amber);
font-size: 0.85rem;
}
.content pre code {
color: var(--text);
}
/* Tables */
.content table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
font-size: 0.85rem;
}
.content th {
text-align: left;
padding: 0.5rem 0.75rem;
border-bottom: 2px solid var(--border);
color: var(--amber);
font-weight: 600;
white-space: nowrap;
}
.content td {
padding: 0.4rem 0.75rem;
border-bottom: 1px solid var(--border);
color: var(--text-muted);
line-height: 1.5;
}
.content tr:hover td {
background: var(--surface);
}
/* Graph images inline */
.content img {
max-width: 100%;
height: auto;
border: 1px solid var(--border);
border-radius: 8px;
margin: 1rem 0;
}
/* Responsive */
@media (max-width: 768px) {
.layout {
flex-direction: column;
}
.sidebar {
width: 100%;
height: auto;
position: static;
display: flex;
overflow-x: auto;
gap: 0;
border-right: none;
border-bottom: 1px solid var(--border);
padding: 0.5rem 0;
}
.sidebar-header { display: none; }
.sidebar-item {
border-left: none;
border-bottom: 2px solid transparent;
white-space: nowrap;
padding: 0.5rem 0.75rem;
font-size: 0.8rem;
}
.sidebar-item.active {
border-bottom-color: var(--amber);
border-left: none;
background: transparent;
}
.sidebar-sub {
padding-left: 0.75rem;
border-left: none;
font-size: 0.75rem;
}
.content {
padding: 1.5rem 1rem;
}
}