add documentation

This commit is contained in:
Auto
2026-02-01 17:34:07 +02:00
parent 016eead8b4
commit b2ab1ecc7a
23 changed files with 3290 additions and 37 deletions

View File

@@ -1134,6 +1134,143 @@
}
}
/* ============================================================================
Documentation Prose Typography
============================================================================ */
.docs-prose {
line-height: 1.7;
color: var(--muted-foreground);
}
.docs-prose h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--foreground);
margin-top: 3rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border);
scroll-margin-top: 5rem;
}
.docs-prose h2:first-child {
margin-top: 0;
}
.docs-prose h3 {
font-size: 1.15rem;
font-weight: 600;
color: var(--foreground);
margin-top: 2rem;
margin-bottom: 0.75rem;
scroll-margin-top: 5rem;
}
.docs-prose p {
margin-bottom: 1rem;
max-width: 65ch;
}
.docs-prose ul,
.docs-prose ol {
margin-bottom: 1rem;
padding-left: 1.5rem;
}
.docs-prose ul {
list-style-type: disc;
}
.docs-prose ol {
list-style-type: decimal;
}
.docs-prose li {
margin-bottom: 0.375rem;
}
.docs-prose li > ul,
.docs-prose li > ol {
margin-top: 0.375rem;
margin-bottom: 0;
}
.docs-prose pre {
background: var(--muted);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem;
overflow-x: auto;
margin-bottom: 1rem;
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.6;
}
.docs-prose code:not(pre code) {
background: var(--muted);
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
font-family: var(--font-mono);
font-size: 0.8125rem;
}
.docs-prose table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
font-size: 0.875rem;
}
.docs-prose th {
background: var(--muted);
font-weight: 600;
color: var(--foreground);
text-align: left;
padding: 0.5rem 0.75rem;
border: 1px solid var(--border);
}
.docs-prose td {
padding: 0.5rem 0.75rem;
border: 1px solid var(--border);
}
.docs-prose tr:nth-child(even) td {
background: var(--muted);
opacity: 0.5;
}
.docs-prose blockquote {
border-left: 4px solid var(--primary);
padding-left: 1rem;
margin-bottom: 1rem;
font-style: italic;
color: var(--muted-foreground);
}
.docs-prose a {
color: var(--primary);
text-decoration: underline;
text-underline-offset: 2px;
}
.docs-prose a:hover {
opacity: 0.8;
}
.docs-prose strong {
color: var(--foreground);
font-weight: 600;
}
.docs-prose hr {
border: none;
border-top: 1px solid var(--border);
margin: 2rem 0;
}
/* ============================================================================
Scrollbar Styling
============================================================================ */