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
45 lines
1.0 KiB
CSS
45 lines
1.0 KiB
CSS
/* Pagination nav — shown below the article list when there is more than one page */
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.pagination a {
|
|
padding: 0.4rem 0.9rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
transition: background 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.pagination a:hover {
|
|
background: var(--color-tag-bg);
|
|
border-color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Disabled state — at first or last page */
|
|
.pagination a.disabled {
|
|
color: var(--color-border);
|
|
border-color: var(--color-border);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.pagination .page-info {
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.pagination { gap: 0.5rem; }
|
|
.pagination a { padding: 0.4rem 0.6rem; }
|
|
}
|