diff --git a/public/admin.html b/public/admin.html index dd8578e..c965d4c 100644 --- a/public/admin.html +++ b/public/admin.html @@ -124,6 +124,83 @@ .btn-edit:hover { border-color: var(--amber); color: #fcd34d; } .btn-row { display: flex; gap: 6px; flex-shrink: 0; } + /* Editor */ + .editor-card { + background: var(--surface); + border: 1px solid var(--border); + border-radius: 12px; + padding: 18px; + margin-bottom: 24px; + } + .editor-card.hidden { display: none; } + .editor-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 12px; + margin-top: 14px; + } + .editor-grid .full { grid-column: 1 / -1; } + .editor-card label { + display: flex; + flex-direction: column; + gap: 6px; + font-size: 0.72rem; + color: var(--text-muted); + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.4px; + } + .editor-card input, + .editor-card select, + .editor-card textarea { + width: 100%; + background: var(--surface2); + border: 1px solid var(--border); + border-radius: 8px; + color: var(--text); + padding: 10px 12px; + font-size: 0.88rem; + outline: none; + } + .editor-card textarea { + min-height: 110px; + resize: vertical; + } + .editor-card input:focus, + .editor-card select:focus, + .editor-card textarea:focus { + border-color: var(--accent); + } + .editor-meta { + font-size: 0.78rem; + color: var(--text-muted); + margin-top: 4px; + } + .checkbox-row { + display: flex; + align-items: center; + gap: 8px; + font-size: 0.82rem; + color: var(--text); + margin-top: 6px; + } + .checkbox-row input { width: auto; } + .editor-actions { + display: flex; + gap: 8px; + justify-content: flex-end; + margin-top: 14px; + } + .btn-secondary { + background: transparent; + border: 1px solid var(--border); + color: var(--text-muted); + } + .btn-secondary:hover { + border-color: var(--text-muted); + color: var(--text); + } + /* Toast */ .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); @@ -142,6 +219,8 @@ @media (max-width: 600px) { .option-row { flex-wrap: wrap; } .btn-row { width: 100%; justify-content: flex-end; } + .editor-grid { grid-template-columns: 1fr; } + .editor-actions { justify-content: stretch; } } @@ -187,6 +266,44 @@ +
+