Files
Evection/static/css/base.css
T
ksmithandClaude Sonnet 5 3f6474ce94 Add hardening and deployment: admin dashboard, security headers, install docs
Adds an admin-only dashboard (apps/core) surfacing feeds that are failing to
fetch, with error messages, subscriber counts, and a one-click retry that
resets backoff and re-queues the fetch.

Hardens config/settings/prod.py with the remaining standard Django security
settings (HSTS preload, nosniff, referrer-policy, frame-options, SameSite
cookies) plus a Content-Security-Policy header via django-csp, as a second
layer behind nh3's HTML sanitization of feed content.

Adds docs/install.md (pip + gunicorn + systemd + nginx, SQLite and Postgres
both covered) plus the systemd units and nginx snippet it references,
LICENSE (AGPL-3.0-or-later, matching pyproject.toml), and an updated README.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-30 20:10:31 -06:00

310 lines
4.5 KiB
CSS

:root {
color-scheme: light dark;
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
body {
margin: 0;
padding: 1rem;
max-width: 48rem;
margin-inline: auto;
}
.messages {
list-style: none;
padding: 0;
}
.message {
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
margin-bottom: 0.5rem;
}
.message-success { background: #d1fae5; color: #065f46; }
.message-error { background: #fee2e2; color: #991b1b; }
.message-warning { background: #fef3c7; color: #92400e; }
.message-info { background: #dbeafe; color: #1e40af; }
form p {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
input, button {
font-size: 1rem;
padding: 0.5rem;
}
.stream-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}
.top-nav a {
margin-left: 1rem;
}
.filter-tabs {
display: flex;
gap: 0.5rem;
margin: 1rem 0;
border-bottom: 1px solid #ddd;
}
.filter-tabs a {
padding: 0.5rem 0.75rem;
text-decoration: none;
color: inherit;
border-bottom: 2px solid transparent;
}
.filter-tabs a.active {
border-bottom-color: currentColor;
font-weight: 600;
}
.article-list {
list-style: none;
padding: 0;
margin: 0;
}
.article-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 0;
border-bottom: 1px solid #eee;
flex-wrap: wrap;
}
.article-row.is-read .article-title {
opacity: 0.55;
}
.article-row-main {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
flex: 1;
}
.article-title {
font-weight: 600;
text-decoration: none;
color: inherit;
}
.article-meta {
font-size: 0.85rem;
opacity: 0.65;
}
.article-actions {
display: flex;
gap: 0.35rem;
flex-wrap: nowrap;
}
.icon-btn {
background: none;
border: 1px solid #ccc;
border-radius: 0.375rem;
cursor: pointer;
padding: 0.35rem 0.6rem;
font-size: 0.9rem;
}
.icon-btn.active {
background: #fde68a;
border-color: #f59e0b;
}
.pagination {
display: flex;
justify-content: space-between;
margin: 1rem 0;
}
.empty-state {
opacity: 0.6;
padding: 2rem 0;
text-align: center;
}
.tag-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-bottom: 1rem;
}
.tag-pill {
--tag-color: #6b7280;
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.2rem 0.6rem;
border-radius: 999px;
border: 1px solid var(--tag-color);
color: var(--tag-color);
text-decoration: none;
font-size: 0.85rem;
}
.tag-pill.active {
background: var(--tag-color);
color: #111;
}
.tag-remove {
background: none;
border: none;
color: inherit;
cursor: pointer;
padding: 0;
font-size: 1rem;
line-height: 1;
}
.article-tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.4rem;
margin: 1rem 0;
}
.add-tag-form {
display: inline-flex;
gap: 0.3rem;
}
.add-tag-form input {
padding: 0.25rem 0.5rem;
font-size: 0.85rem;
width: 8rem;
}
.tag-manage-list {
list-style: none;
padding: 0;
}
.tag-manage-list li {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
border-bottom: 1px solid #eee;
}
.inline-form {
display: inline;
}
.rule-list {
list-style: none;
padding: 0;
}
.rule-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 0.75rem 0;
border-bottom: 1px solid #eee;
flex-wrap: wrap;
}
.rule-row.is-disabled {
opacity: 0.5;
}
.rule-summary {
font-size: 0.85rem;
opacity: 0.75;
}
.rule-actions {
display: flex;
gap: 0.35rem;
}
.search-form {
display: flex;
gap: 0.5rem;
margin: 1rem 0;
}
.subscription-list {
list-style: none;
padding: 0;
}
.subscription-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 0.5rem 0;
border-bottom: 1px solid #eee;
}
.search-form input {
flex: 1;
}
.article-content {
line-height: 1.6;
margin-top: 1rem;
overflow-wrap: break-word;
word-break: break-word;
}
.article-content a {
overflow-wrap: anywhere;
}
.article-content img {
max-width: 100%;
}
@media (max-width: 480px) {
.article-row {
flex-direction: column;
align-items: flex-start;
}
}
.dashboard-stats {
list-style: none;
padding: 0;
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
margin: 1rem 0;
}
.feed-error-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}
.feed-error-table th,
.feed-error-table td {
text-align: left;
padding: 0.5rem;
border-bottom: 1px solid currentColor;
font-size: 0.9rem;
}