Files
cmkiss/demo/css/layout.css
T
biosiasandClaude Sonnet 5 3c510ba92e Move the demo page into its own demo/ folder (AI)
index.html and its site-shell CSS (reset.css, header.css, layout.css)
now live under demo/, separate from the library's own css/, js/,
strings/, templates/, and articles/ at the repo root. Root css/ now
holds only css/components/ — the styles any embedding page actually
needs.

Fixed demo/index.html's own relative paths to the component CSS and
router.js (one level up now); its own site-shell CSS links needed no
change since they moved along with it. No BASE_URL/MARKED_URL changes
in js/config.js — those resolve from the script's own location via
import.meta.url, independent of wherever the HTML page that loaded it
lives.

Updated README.md throughout: project structure diagram, Translations'
index.html mentions, the Embedding section's site-level CSS example
paths, the nginx config's SPA location block (now /demo/ instead of
root), and Running locally's preview instructions.

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

121 lines
2.3 KiB
CSS

/* Main content wrapper and blog filter rail */
main.blog-shell {
max-width: 1180px;
margin: 3rem auto 5rem;
padding: 0 2rem;
display: grid;
grid-template-columns: minmax(0, 1fr) 270px;
gap: 4rem;
align-items: start;
}
.blog-content { min-width: 0; }
.blog-sidebar {
border: 1px solid var(--color-border);
padding: 1.5rem 1.35rem;
position: sticky;
top: 1.5rem;
background: color-mix(in srgb, var(--color-bg) 92%, white 8%);
}
.filter-section + .filter-section {
border-top: 1px solid var(--color-border);
margin-top: 1.5rem;
padding-top: 1.5rem;
}
.filter-section h2 {
color: var(--color-text-soft);
font-size: 1.05rem;
font-weight: 500;
letter-spacing: 0.08em;
margin: 0 0 1rem;
}
.filter-list {
display: grid;
gap: 0.25rem;
margin: 0;
padding: 0;
list-style: none;
}
.filter-link {
display: block;
padding: 0.35rem 0.5rem;
color: var(--color-text-muted);
text-decoration: none;
border-left: 2px solid transparent;
}
.filter-link:hover,
.filter-link:focus-visible,
.filter-link.is-active {
color: var(--color-accent);
border-left-color: var(--color-accent);
}
.filter-count {
color: var(--color-text-muted);
font-size: 0.8em;
margin-left: 0.3rem;
}
@media (max-width: 900px) {
main.blog-shell {
margin-top: 2rem;
grid-template-columns: 1fr;
gap: 2rem;
}
.blog-sidebar {
position: static;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.5rem;
}
.filter-section + .filter-section {
border-top: 0;
border-left: 1px solid var(--color-border);
margin-top: 0;
padding-top: 0;
padding-left: 1.5rem;
}
}
@media (max-width: 640px) {
main.blog-shell {
margin: 1.5rem auto 3rem;
padding: 0 1rem;
}
.blog-sidebar {
display: block;
}
.filter-section + .filter-section {
border-left: 0;
border-top: 1px solid var(--color-border);
margin-top: 1.5rem;
padding-top: 1.5rem;
padding-left: 0;
}
}
/* State messages (loading / error / empty) */
.loading {
color: var(--color-text-muted);
font-style: italic;
}
.error {
color: var(--color-error);
}
.empty {
color: var(--color-text-muted);
font-style: italic;
}