Files
biosiasandClaude Sonnet 5 1dc5e16d14 Flatten cmjs/ into the repo root (AI)
The repo is already named cmjs, so the nested cmjs/ subfolder was
redundant. Moved css/, js/, strings/, templates/, and the gitignored
articles/ up to the repo root and removed the empty cmjs/ directory,
so the whole repo (or just css/js/strings/templates/articles) can be
dropped into an existing site and embedded as-is — no wrapper folder
required.

This also fixes a real bug: js/config.js's MARKED_URL previously
reached outside cmjs/ (../../js/marked.min.js) to find the vendored
marked.min.js, which already lived at the repo root as a sibling of
cmjs/ rather than inside it. Now that both files sit in the same js/
folder, MARKED_URL is a same-directory reference and no longer depends
on anything outside this one folder tree. BASE_URL's own formula is
unchanged (config.js is still exactly one level below whatever holds
articles/, strings/, and templates/ — previously that was cmjs/, now
it's the repo root).

Updated index.html, .gitignore (/cmjs/articles/ -> /articles/), and
every path reference throughout README.md (project structure diagram,
embedding instructions, nginx config, discovery/caching docs) to match.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AXSVPS3UmmASiiprPfcnUd
2026-09-12 15:20:19 +02:00

125 lines
2.3 KiB
CSS

/* -------------------------------------------------------------------------
Rendered markdown content
------------------------------------------------------------------------- */
.content {
line-height: 1.8;
}
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
margin: 1.75em 0 0.5em;
line-height: 1.25;
font-weight: 600;
color: var(--color-text);
}
.content h1 { font-size: 1.75rem; }
.content h2 { font-size: 1.4rem; }
.content h3 { font-size: 1.15rem; }
.content p {
margin: 0 0 1em;
}
.content a {
color: var(--color-accent);
}
.content a:visited {
color: var(--color-text-muted);
}
.content a:hover {
text-decoration: none;
}
.content ul,
.content ol {
padding-left: 1.6em;
margin: 0 0 1em;
}
.content li {
margin-bottom: 0.3em;
}
.content blockquote {
border-left: 4px solid var(--color-border);
margin: 0 0 1em;
padding: 0.5em 1em;
color: var(--color-text-soft);
}
.content blockquote p {
margin: 0;
}
/* Fenced code blocks */
.content pre {
background: var(--color-code-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
padding: 1em 1.25em;
overflow-x: auto;
margin: 0 0 1em;
}
.content code {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 0.875em;
}
.content pre code {
background: none;
padding: 0;
border: none;
}
/* Inline code */
.content :not(pre) > code {
background: var(--color-tag-bg);
border: 1px solid var(--color-tag-border);
border-radius: var(--radius-sm);
padding: 0.15em 0.4em;
}
.content img {
max-width: 100%;
height: auto;
border-radius: var(--radius-sm);
}
/* Tables scroll horizontally on narrow screens */
.content table {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-collapse: collapse;
min-width: max-content;
max-width: 100%;
margin: 0 0 1em;
font-size: 0.95em;
}
.content th,
.content td {
border: 1px solid var(--color-border);
padding: 0.5em 0.75em;
text-align: left;
}
.content th {
background: var(--color-code-bg);
font-weight: 600;
}
.content hr {
border: none;
border-top: 1px solid var(--color-border);
margin: 2em 0;
}