Files
stupid-apis/www/css/markdown-dark.css
2025-08-13 13:05:31 +02:00

195 lines
4.5 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* markdown-dark.css */
/* Basis: neutraler Dark-Mode mit guter Lesbarkeit und sauberem Tabellenlayout */
:root {
--bg: #0d1117;
--bg-muted: #161b22;
--text: #c9d1d9;
--text-muted: #8b949e;
--border: #30363d;
--link: #58a6ff;
--code-bg: #161b22;
--code-text: #f0f6fc;
--kbd-bg: #0b1020;
--kbd-border: #30363d;
--accent: #1f6feb;
}
html, body {
background: var(--bg);
color: var(--text);
margin: 0;
padding: 0;
}
.markdown-body {
box-sizing: border-box;
max-width: 900px;
margin: 0 auto;
padding: 24px;
line-height: 1.65;
font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
}
/* Überschriften */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
color: var(--text);
margin: 1.6em 0 .6em;
font-weight: 700;
line-height: 1.25;
border-bottom: 1px solid var(--border);
padding-bottom: .3em;
}
.markdown-body h1 { font-size: 2rem; }
.markdown-body h2 { font-size: 1.6rem; }
.markdown-body h3 { font-size: 1.35rem; border-bottom: none; }
.markdown-body h4 { font-size: 1.15rem; border-bottom: none; }
.markdown-body h5 { font-size: 1rem; border-bottom: none; }
.markdown-body h6 { font-size: .95rem; color: var(--text-muted); border-bottom: none; }
/* Text & Links */
.markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body blockquote, .markdown-body pre, .markdown-body table {
margin: 1em 0;
}
.markdown-body a {
color: var(--link);
text-decoration: none;
}
.markdown-body a:hover, .markdown-body a:focus {
text-decoration: underline;
}
/* Listen */
.markdown-body ul, .markdown-body ol {
padding-left: 1.5em;
}
.markdown-body li + li {
margin-top: .25em;
}
/* Code */
.markdown-body code,
.markdown-body tt {
background: var(--code-bg);
color: var(--code-text);
padding: .15em .35em;
border-radius: 6px;
border: 1px solid var(--border);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: .95em;
}
.markdown-body pre {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px 14px;
overflow: auto;
}
.markdown-body pre code {
background: transparent;
border: 0;
padding: 0;
color: var(--text);
}
/* Blockquote */
.markdown-body blockquote {
border-left: 4px solid var(--border);
padding: .5em 1em;
margin-left: 0;
color: var(--text-muted);
background: rgba(22,27,34,.35);
border-radius: 6px;
}
/* Tabellen wichtig für sauberes Layout */
.markdown-body table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
overflow: auto;
display: block;
}
.markdown-body thead {
background: var(--bg-muted);
}
.markdown-body th, .markdown-body td {
border: 1px solid var(--border);
padding: 8px 12px;
text-align: left;
vertical-align: top;
}
.markdown-body th {
font-weight: 600;
}
.markdown-body tr:nth-child(even) td {
background: rgba(22,27,34,.5);
}
/* HR */
.markdown-body hr {
height: 1px;
border: 0;
background: var(--border);
margin: 2em 0;
}
/* Bilder */
.markdown-body img {
max-width: 100%;
height: auto;
border-radius: 6px;
}
/* Details/Summary */
.markdown-body details {
background: var(--bg-muted);
border: 1px solid var(--border);
border-radius: 6px;
padding: .6em .9em;
}
.markdown-body summary {
cursor: pointer;
font-weight: 600;
}
/* Markierung, KBD */
.markdown-body mark {
background: #99700066;
color: var(--text);
padding: 0 .2em;
border-radius: 3px;
}
.markdown-body kbd {
background: var(--kbd-bg);
border: 1px solid var(--kbd-border);
border-bottom-width: 2px;
border-radius: 6px;
padding: .1em .4em;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: .85em;
}
/* Zitate/Callouts (Admonitions via blockquote) */
.markdown-body blockquote > :first-child { margin-top: 0; }
.markdown-body blockquote > :last-child { margin-bottom: 0; }
/* Inline-Abstände */
.markdown-body strong { color: var(--text); }
.markdown-body em { color: var(--text); }
/* Code-Block Scrollbar etwas dezenter */
.markdown-body pre::-webkit-scrollbar,
.markdown-body table::-webkit-scrollbar {
height: 10px;
}
.markdown-body pre::-webkit-scrollbar-thumb,
.markdown-body table::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 6px;
}