Files
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

84 lines
1.6 KiB
CSS

/* Site header and title link */
body > header {
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
padding: 1rem 2rem;
display: flex;
align-items: center;
gap: 1.5rem;
}
#site-title {
font-size: 1.35rem;
font-weight: 700;
color: var(--color-text);
text-decoration: none;
letter-spacing: -0.01em;
flex-shrink: 0;
}
#site-title:hover {
color: var(--color-text-soft);
}
/* Search form — sits in the header, grows to fill available space */
#search-form {
flex: 1;
max-width: 360px;
display: flex;
gap: 0.5rem;
}
#search-input {
width: 100%;
padding: 0.55rem 0.8rem;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
background: var(--color-bg);
color: var(--color-text);
font-size: 0.9rem;
font-family: inherit;
min-width: 0;
}
#search-form button {
border: 1px solid var(--color-accent);
border-radius: var(--radius-sm);
padding: 0.55rem 0.9rem;
background: var(--color-accent);
color: #fff;
font: inherit;
cursor: pointer;
}
#search-form button:hover,
#search-form button:focus-visible {
filter: brightness(1.12);
}
#search-input::placeholder {
color: var(--color-text-muted);
}
#search-input:hover {
border-color: var(--color-text-muted);
}
#search-input:focus-visible {
border-color: var(--color-accent);
outline-offset: 0;
}
@media (max-width: 640px) {
body > header {
flex-wrap: wrap;
gap: 0.75rem;
padding: 0.8rem 1rem;
}
#search-form {
max-width: 100%;
flex-basis: 100%;
}
}