Files
aishare/client/src/styles.css
T
2026-07-06 11:25:57 +00:00

64 lines
3.2 KiB
CSS

:root {
color-scheme: light dark;
--bg: #f6f7f9;
--panel: #ffffff;
--text: #1f2328;
--muted: #6b7280;
--border: #d9dee7;
--accent: #0f766e;
--danger: #b42318;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #18181b;
--panel: #242428;
--text: #f4f4f5;
--muted: #a1a1aa;
--border: #3f3f46;
--accent: #14b8a6;
--danger: #f87171;
}
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; }
button, input { font: inherit; }
.shell { max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; }
.header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: 0; }
h2 { font-size: 18px; }
.header p, .sub, .status-line { color: var(--muted); margin-top: 6px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.row, .capture-form, .table-head, .actions, .pager { display: flex; gap: 10px; align-items: end; }
.capture-form { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(160px, 260px) auto; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input { width: 100%; min-height: 40px; border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; background: var(--panel); color: var(--text); }
button, .small.link { min-height: 38px; border: 1px solid var(--border); border-radius: 7px; padding: 8px 12px; background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
button[type="submit"] { background: var(--accent); border-color: var(--accent); color: white; }
.danger { color: var(--danger); }
.icon-button { min-height: 34px; }
.table-head { justify-content: space-between; align-items: center; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.title-cell { font-weight: 650; max-width: 420px; overflow-wrap: anywhere; }
.error { color: var(--danger); margin-top: 6px; max-width: 520px; }
.pill { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 3px 9px; font-size: 12px; border: 1px solid var(--border); }
.pill.ready { color: var(--accent); }
.pill.failed { color: var(--danger); }
.pill.queued, .pill.capturing, .pill.rendering { color: #b7791f; }
.small { min-height: 32px; padding: 6px 9px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pager { justify-content: flex-end; margin-top: 12px; color: var(--muted); }
@media (max-width: 760px) {
.shell { padding: 20px 14px 36px; }
.header, .table-head, .actions, .pager { align-items: stretch; flex-direction: column; }
.capture-form { grid-template-columns: 1fr; }
button { width: 100%; }
}