Autonomous Publishing System — full stack: orchestrator, 8 vertical sites, admin dashboard, analytics, cron pipeline
This commit is contained in:
259
shared/assets/style.css
Normal file
259
shared/assets/style.css
Normal file
@@ -0,0 +1,259 @@
|
||||
/* ==========================================================================
|
||||
Autonomous Publishing System — Shared Site CSS
|
||||
Clean, readable, fast-loading design system for all vertical sites.
|
||||
========================================================================== */
|
||||
|
||||
:root {
|
||||
--bg: #ffffff;
|
||||
--bg-secondary: #f8f9fa;
|
||||
--text: #1a1a2e;
|
||||
--text-secondary: #555;
|
||||
--primary: #2563eb;
|
||||
--primary-hover: #1d4ed8;
|
||||
--border: #e5e7eb;
|
||||
--accent: #10b981;
|
||||
--card-bg: #ffffff;
|
||||
--code-bg: #1e293b;
|
||||
--code-text: #e2e8f0;
|
||||
--max-width: 800px;
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
--font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #0f172a;
|
||||
--bg-secondary: #1e293b;
|
||||
--text: #e2e8f0;
|
||||
--text-secondary: #94a3b8;
|
||||
--primary: #3b82f6;
|
||||
--primary-hover: #60a5fa;
|
||||
--border: #334155;
|
||||
--card-bg: #1e293b;
|
||||
--code-bg: #0f172a;
|
||||
}
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html { font-size: 18px; line-height: 1.7; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 0 1.5rem;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* ─── Header ─── */
|
||||
header {
|
||||
padding: 1.5rem 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.nav-links { display: flex; gap: 1.5rem; }
|
||||
.nav-links a {
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
font-size: 0.9rem;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.nav-links a:hover { color: var(--primary); }
|
||||
|
||||
.rss-link {
|
||||
background: var(--bg-secondary);
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ─── Hero ─── */
|
||||
.hero {
|
||||
padding: 3rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
|
||||
.hero p { color: var(--text-secondary); font-size: 1.1rem; }
|
||||
|
||||
/* ─── Article Cards ─── */
|
||||
.articles-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 1.5rem;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
.card:hover {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
|
||||
}
|
||||
.card h2 {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 0.25rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.card h2 a { color: var(--text); text-decoration: none; }
|
||||
.card h2 a:hover { color: var(--primary); }
|
||||
.card .meta {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.card p { color: var(--text-secondary); font-size: 0.95rem; }
|
||||
|
||||
/* ─── Article Page ─── */
|
||||
article { margin-bottom: 3rem; }
|
||||
|
||||
.article-header {
|
||||
margin-bottom: 2rem;
|
||||
padding-bottom: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.article-header h1 {
|
||||
font-size: 2rem;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
.article-header .meta {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.article-content { margin-bottom: 2rem; }
|
||||
.article-content h2 {
|
||||
font-size: 1.5rem;
|
||||
margin: 2.5rem 0 0.75rem;
|
||||
padding-bottom: 0.25rem;
|
||||
border-bottom: 2px solid var(--primary);
|
||||
display: inline-block;
|
||||
}
|
||||
.article-content h3 {
|
||||
font-size: 1.2rem;
|
||||
margin: 1.5rem 0 0.5rem;
|
||||
}
|
||||
.article-content p { margin-bottom: 1.2rem; }
|
||||
.article-content ul, .article-content ol {
|
||||
margin: 0 0 1.2rem 1.5rem;
|
||||
}
|
||||
.article-content li { margin-bottom: 0.4rem; }
|
||||
.article-content a { color: var(--primary); text-decoration: underline; }
|
||||
.article-content strong { font-weight: 600; }
|
||||
.article-content blockquote {
|
||||
border-left: 4px solid var(--primary);
|
||||
padding: 0.75rem 1.5rem;
|
||||
margin: 1.5rem 0;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 0 6px 6px 0;
|
||||
font-style: italic;
|
||||
}
|
||||
.article-content blockquote p { margin-bottom: 0; }
|
||||
|
||||
.article-content pre {
|
||||
background: var(--code-bg);
|
||||
color: var(--code-text);
|
||||
padding: 1.25rem;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
margin: 1.5rem 0;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.article-content code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85em;
|
||||
background: var(--bg-secondary);
|
||||
padding: 0.15em 0.4em;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.article-content pre code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.article-content hr {
|
||||
border: none;
|
||||
border-top: 1px solid var(--border);
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
/* ─── Tags ─── */
|
||||
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
|
||||
.tag {
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-secondary);
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.8rem;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
}
|
||||
.tag:hover { background: var(--primary); color: white; }
|
||||
|
||||
/* ─── Sources ─── */
|
||||
.sources { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
|
||||
.sources h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
|
||||
|
||||
/* ─── Related ─── */
|
||||
.related {
|
||||
margin-top: 3rem;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* ─── Footer ─── */
|
||||
.site-footer {
|
||||
margin-top: 4rem;
|
||||
padding: 1.5rem 0;
|
||||
border-top: 1px solid var(--border);
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
.site-footer nav { display: flex; gap: 1.5rem; }
|
||||
.site-footer a { color: var(--text-secondary); text-decoration: none; }
|
||||
.site-footer a:hover { color: var(--primary); }
|
||||
|
||||
/* ─── Responsive ─── */
|
||||
@media (max-width: 600px) {
|
||||
html { font-size: 16px; }
|
||||
body { padding: 0 1rem; }
|
||||
.hero h1 { font-size: 1.6rem; }
|
||||
.article-header h1 { font-size: 1.5rem; }
|
||||
nav { flex-direction: column; align-items: flex-start; }
|
||||
}
|
||||
Reference in New Issue
Block a user