556 lines
11 KiB
CSS
556 lines
11 KiB
CSS
:root {
|
|
--bg: #f4f5f7;
|
|
--surface: #ffffff;
|
|
--border: #e2e5ea;
|
|
--border-strong: #d1d5db;
|
|
--text: #1f2328;
|
|
--text-muted: #4b5563;
|
|
--text-faint: #6b7280;
|
|
--accent: #2563eb;
|
|
--accent-hover: #1d4ed8;
|
|
--accent-soft: #eef2ff;
|
|
--accent-soft-border: #c7d2fe;
|
|
--accent-soft-hover: #e0e7ff;
|
|
--danger: #dc2626;
|
|
--danger-hover: #b91c1c;
|
|
--danger-text: #b91c1c;
|
|
--success-bg: #ecfdf3;
|
|
--success-border: #a7e3bb;
|
|
--success-text: #14532d;
|
|
--warn-bg: #fffbeb;
|
|
--warn-border: #fde68a;
|
|
--warn-text: #78350f;
|
|
--error-bg: #fef2f2;
|
|
--error-border: #f3b4b4;
|
|
--error-text: #7f1d1d;
|
|
--table-head: #f9fafb;
|
|
--badge-bg: #f3f4f6;
|
|
--badge-text: #374151;
|
|
--input-bg: #ffffff;
|
|
--published-surface: #fafefb;
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--bg: #0f172a;
|
|
--surface: #1e293b;
|
|
--border: #334155;
|
|
--border-strong: #475569;
|
|
--text: #e2e8f0;
|
|
--text-muted: #94a3b8;
|
|
--text-faint: #94a3b8;
|
|
--accent: #60a5fa;
|
|
--accent-hover: #93c5fd;
|
|
--accent-soft: #172554;
|
|
--accent-soft-border: #1e40af;
|
|
--accent-soft-hover: #1e3a8a;
|
|
--danger: #ef4444;
|
|
--danger-hover: #f87171;
|
|
--danger-text: #f87171;
|
|
--success-bg: #064e3b;
|
|
--success-border: #059669;
|
|
--success-text: #a7f3d0;
|
|
--warn-bg: #451a03;
|
|
--warn-border: #b45309;
|
|
--warn-text: #fde68a;
|
|
--error-bg: #450a0a;
|
|
--error-border: #991b1b;
|
|
--error-text: #fecaca;
|
|
--table-head: #243244;
|
|
--badge-bg: #334155;
|
|
--badge-text: #e2e8f0;
|
|
--input-bg: #0f172a;
|
|
--published-surface: #0b2e22;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme]) {
|
|
--bg: #0f172a;
|
|
--surface: #1e293b;
|
|
--border: #334155;
|
|
--border-strong: #475569;
|
|
--text: #e2e8f0;
|
|
--text-muted: #94a3b8;
|
|
--text-faint: #94a3b8;
|
|
--accent: #60a5fa;
|
|
--accent-hover: #93c5fd;
|
|
--accent-soft: #172554;
|
|
--accent-soft-border: #1e40af;
|
|
--accent-soft-hover: #1e3a8a;
|
|
--danger: #ef4444;
|
|
--danger-hover: #f87171;
|
|
--danger-text: #f87171;
|
|
--success-bg: #064e3b;
|
|
--success-border: #059669;
|
|
--success-text: #a7f3d0;
|
|
--warn-bg: #451a03;
|
|
--warn-border: #b45309;
|
|
--warn-text: #fde68a;
|
|
--error-bg: #450a0a;
|
|
--error-border: #991b1b;
|
|
--error-text: #fecaca;
|
|
--table-head: #243244;
|
|
--badge-bg: #334155;
|
|
--badge-text: #e2e8f0;
|
|
--input-bg: #0f172a;
|
|
--published-surface: #0b2e22;
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 14px 20px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.topbar .brand {
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.topbar nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: none;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 4px 10px;
|
|
font-size: 1rem;
|
|
line-height: 1.4;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background: var(--accent-soft);
|
|
border-color: var(--accent-soft-border);
|
|
}
|
|
|
|
.inline-form {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
|
|
.link-button {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
font: inherit;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.link-button:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.container {
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
padding: 24px 20px 60px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.15rem;
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 16px 18px;
|
|
margin-bottom: 16px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.card p {
|
|
margin: 6px 0;
|
|
}
|
|
|
|
.result {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.flash {
|
|
background: var(--success-bg);
|
|
border: 1px solid var(--success-border);
|
|
color: var(--success-text);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.errors {
|
|
background: var(--error-bg);
|
|
border: 1px solid var(--error-border);
|
|
color: var(--error-text);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.errors ul {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.form label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form input,
|
|
.form select,
|
|
.form textarea {
|
|
font: inherit;
|
|
padding: 9px 11px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.form input:focus,
|
|
.form select:focus,
|
|
.form textarea:focus {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.form button,
|
|
.button-danger {
|
|
align-self: flex-start;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 18px;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form button:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.button-danger {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.button-danger:hover {
|
|
background: var(--danger-hover);
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.tile {
|
|
display: block;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 18px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.tile:hover {
|
|
border-color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.tile-danger {
|
|
color: var(--danger-text);
|
|
}
|
|
|
|
.post-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.post-meta {
|
|
font-size: 0.85rem;
|
|
color: var(--text-faint);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.post-content {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
text-align: left;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.table th {
|
|
background: var(--table-head);
|
|
}
|
|
|
|
/* === Действия с постами / планом === */
|
|
|
|
.post-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.copy-btn {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
border: 1px solid var(--accent-soft-border);
|
|
border-radius: 8px;
|
|
padding: 7px 12px;
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background: var(--accent-soft-hover);
|
|
}
|
|
|
|
.button-link {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.button-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.button-link-danger {
|
|
color: var(--danger-text);
|
|
}
|
|
|
|
.post-notes {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px dashed var(--border);
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* === Контент-план === */
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.chip {
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.chip-published {
|
|
background: var(--success-bg);
|
|
border-color: var(--success-border);
|
|
color: var(--success-text);
|
|
}
|
|
|
|
.chip-postponed {
|
|
background: var(--warn-bg);
|
|
border-color: var(--warn-border);
|
|
color: var(--warn-text);
|
|
}
|
|
|
|
.plan-item-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.plan-day {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.plan-platform {
|
|
font-size: 0.9rem;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.plan-idea {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 0.8rem;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
background: var(--badge-bg);
|
|
color: var(--badge-text);
|
|
}
|
|
|
|
.status-badge.status-published {
|
|
background: var(--success-bg);
|
|
color: var(--success-text);
|
|
}
|
|
|
|
.status-badge.status-postponed {
|
|
background: var(--warn-bg);
|
|
color: var(--warn-text);
|
|
}
|
|
|
|
.plan-item.status-published {
|
|
background: var(--published-surface);
|
|
}
|
|
|
|
.status-select {
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* === Медиа-библиотека === */
|
|
|
|
.media-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.media-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.media-card a.media-link {
|
|
display: block;
|
|
line-height: 0;
|
|
}
|
|
|
|
.media-thumb {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
background: var(--table-head);
|
|
display: block;
|
|
}
|
|
|
|
.media-body {
|
|
padding: 10px 12px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.media-prompt {
|
|
font-size: 0.9rem;
|
|
line-height: 1.35;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 0.85rem;
|
|
color: var(--text-faint);
|
|
margin: 0;
|
|
}
|