:root {
--fg: #24292f;
--fg-muted: #57606a;
--bg: #ffffff;
--bg-muted: #f6f8fa;
--border: #d0d7de;
--link: #0969da;
--code-bg: #f6f8fa;
--quote-border: #d0d7de;
--hl-keyword: #cf222e;
--hl-string: #0a3069;
--hl-comment: #6e7781;
--hl-number: #0550ae;
--hl-type: #953800;
--hl-function: #8250df;
--hl-attribute: #116329;
--font-size: 16px;
--line-height: 1.5;
--space-block: 1rem;
--space-tight: 0.5rem;
--space-section: 2rem;
}
@media screen and (prefers-color-scheme: dark) {
:root {
--fg: #c9d1d9;
--fg-muted: #8b949e;
--bg: #0d1117;
--bg-muted: #161b22;
--border: #30363d;
--link: #58a6ff;
--code-bg: #161b22;
--quote-border: #3b434b;
--hl-keyword: #ff7b72;
--hl-string: #a5d6ff;
--hl-comment: #8b949e;
--hl-number: #79c0ff;
--hl-type: #ffa657;
--hl-function: #d2a8ff;
--hl-attribute: #7ee787;
}
}
html {
background: var(--bg);
color: var(--fg);
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
Helvetica, Arial, sans-serif;
font-size: var(--font-size);
line-height: var(--line-height);
overflow-wrap: break-word;
}
@media screen {
main.markdown-body {
box-sizing: content-box;
max-width: 900px;
margin: 0 auto;
padding: 2rem clamp(1rem, 4vw, 2rem);
}
}
main.markdown-body > :first-child { margin-top: 0; }
main.markdown-body > :last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.25;
margin: var(--space-section) 0 var(--space-tight);
}
h1 { font-size: 2em; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h2 { font-size: 1.5em; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h3 { font-size: 1.25em; }
h4 { font-size: 1em; }
h5 { font-size: 0.875em; }
h6 { font-size: 0.85em; color: var(--fg-muted); }
p, ul, ol, dl, blockquote, pre, table, figure {
margin: 0 0 var(--space-block);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
em { font-style: italic; }
del, s { color: var(--fg-muted); }
hr {
border: 0;
border-top: 1px solid var(--border);
margin: var(--space-section) 0;
}
ul, ol { padding-left: 2em; }
li + li { margin-top: 0.25em; }
li > p { margin-bottom: var(--space-tight); }
ul.contains-task-list,
ol.contains-task-list { list-style: none; }
li.task-list-item > input[type="checkbox"] {
margin: 0 0.5em 0 -1.4em;
vertical-align: middle;
}
blockquote {
padding: 0 1em;
color: var(--fg-muted);
border-left: 0.25em solid var(--quote-border);
}
blockquote > :first-child { margin-top: 0; }
blockquote > :last-child { margin-bottom: 0; }
code, pre, kbd, samp {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
"Liberation Mono", monospace;
font-size: 0.9em;
}
code {
background: var(--code-bg);
border-radius: 4px;
padding: 0.15em 0.35em;
}
pre {
background: var(--code-bg);
border-radius: 6px;
padding: 1em;
overflow: auto;
line-height: 1.45;
}
pre > code {
background: transparent;
padding: 0;
border-radius: 0;
font-size: 1em;
white-space: pre;
}
.hl-keyword { color: var(--hl-keyword); }
.hl-string { color: var(--hl-string); }
.hl-comment { color: var(--hl-comment); font-style: italic; }
.hl-number { color: var(--hl-number); }
.hl-type { color: var(--hl-type); }
.hl-function { color: var(--hl-function); }
.hl-attribute { color: var(--hl-attribute); }
table {
border-collapse: collapse;
display: block;
width: 100%;
max-width: 100%;
overflow: auto;
}
th, td {
border: 1px solid var(--border);
padding: 0.4em 0.8em;
}
th {
background: var(--bg-muted);
font-weight: 600;
text-align: left;
}
tr:nth-child(2n) td {
background: var(--bg-muted);
}
img {
max-width: 100%;
height: auto;
background: var(--bg);
border-radius: 4px;
}
.footnote-definition {
font-size: 0.9em;
color: var(--fg-muted);
}
.footnote-definition p { display: inline; margin: 0; }
sup.footnote-reference a {
text-decoration: none;
padding: 0 0.2em;
}
sup.footnote-reference a::before { content: "["; }
sup.footnote-reference a::after { content: "]"; }
figure.mermaid-diagram,
figure.math-formula {
margin: var(--space-block) 0;
text-align: center;
}
figure.mermaid-diagram img,
figure.math-formula img {
max-width: 100%;
height: auto;
}
@media screen and (prefers-color-scheme: dark) {
figure.mermaid-diagram img,
figure.math-formula img {
box-sizing: border-box;
padding: var(--space-tight);
background: #ffffff;
border-radius: 4px;
}
}
@page {
margin: 1in;
}
@media print {
:root {
--fg: #000000;
--fg-muted: #444444;
--bg: #ffffff;
--bg-muted: #f2f2f2;
--border: #999999;
--code-bg: #f2f2f2;
--quote-border: #999999;
--font-size: 11pt;
}
p, li, blockquote { orphans: 2; widows: 2; }
h1, h2, h3, h4, h5, h6 {
break-after: avoid;
page-break-after: avoid;
break-inside: avoid;
page-break-inside: avoid;
}
pre, blockquote, figure, img, tr, .footnote-definition {
break-inside: avoid;
page-break-inside: avoid;
}
pre {
overflow: visible;
white-space: pre-wrap;
word-wrap: break-word;
}
pre > code { white-space: inherit; }
table { display: table; overflow: visible; }
thead { display: table-header-group; }
img { max-height: 8in; }
}