Lean MV3 extension + standalone single-file ingest server that pulls watched sellers' full inventories from the Discogs API into discogs_full (mp_* schema), tracking price changes and sales over time. Successor to pliceclogs/marketwatcher; runs alongside the legacy plice server on a separate port (5057). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
115 lines
3.6 KiB
CSS
115 lines
3.6 KiB
CSS
:root {
|
|
--bg: #16181d;
|
|
--panel: #1e2128;
|
|
--panel2: #262a33;
|
|
--line: #2f343f;
|
|
--text: #e6e8ec;
|
|
--muted: #9aa3b2;
|
|
--accent: #4f9dff;
|
|
--good: #38b000;
|
|
--bad: #e5484d;
|
|
--warn: #f5a623;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
width: 380px;
|
|
margin: 0;
|
|
font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
header .logo { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
|
|
header .logo span { color: var(--accent); }
|
|
header .dot {
|
|
width: 9px; height: 9px; border-radius: 50%;
|
|
background: var(--muted); margin-left: auto;
|
|
}
|
|
header .dot.ok { background: var(--good); }
|
|
header .dot.busy { background: var(--accent); animation: pulse 1s infinite; }
|
|
header .dot.err { background: var(--bad); }
|
|
@keyframes pulse { 50% { opacity: 0.35; } }
|
|
|
|
.panel { padding: 12px 14px; border-bottom: 1px solid var(--line); }
|
|
.panel h2 {
|
|
margin: 0 0 8px; font-size: 11px; font-weight: 600;
|
|
text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted);
|
|
}
|
|
|
|
label { display: block; font-size: 11px; color: var(--muted); margin: 8px 0 3px; }
|
|
|
|
input, select {
|
|
width: 100%; padding: 7px 9px; border-radius: 7px;
|
|
border: 1px solid var(--line); background: var(--panel2);
|
|
color: var(--text); font-size: 13px;
|
|
}
|
|
input:focus, select:focus { outline: none; border-color: var(--accent); }
|
|
|
|
.row { display: flex; gap: 8px; }
|
|
.row > * { flex: 1; }
|
|
.row.tight { gap: 6px; align-items: flex-end; }
|
|
|
|
button {
|
|
padding: 7px 11px; border: none; border-radius: 7px;
|
|
background: var(--panel2); color: var(--text);
|
|
font-size: 12px; font-weight: 600; cursor: pointer;
|
|
}
|
|
button:hover { background: #30353f; }
|
|
button.primary { background: var(--accent); color: #07111f; }
|
|
button.primary:hover { filter: brightness(1.08); }
|
|
button.ghost { background: transparent; border: 1px solid var(--line); }
|
|
button.danger { background: transparent; color: var(--bad); padding: 4px 7px; }
|
|
button:disabled { opacity: 0.5; cursor: default; }
|
|
|
|
.hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
|
|
.hint a { color: var(--accent); }
|
|
|
|
.statusline {
|
|
font-size: 12px; color: var(--muted); margin-top: 10px;
|
|
display: flex; justify-content: space-between;
|
|
}
|
|
.statusline b { color: var(--text); font-weight: 600; }
|
|
|
|
/* watchlist */
|
|
#watchlist { max-height: 220px; overflow-y: auto; margin-top: 4px; }
|
|
.seller {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 7px 8px; border-radius: 7px; background: var(--panel2);
|
|
margin-bottom: 5px;
|
|
}
|
|
.seller .name { font-weight: 600; flex: 1; min-width: 0;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.seller .meta { font-size: 10px; color: var(--muted); }
|
|
.seller .count {
|
|
font-size: 11px; background: #11151c; border-radius: 10px;
|
|
padding: 2px 7px; color: var(--accent);
|
|
}
|
|
.seller .err { color: var(--bad); }
|
|
.seller button { padding: 3px 7px; font-size: 11px; }
|
|
.empty { color: var(--muted); font-size: 12px; padding: 8px 2px; }
|
|
|
|
/* stats grid */
|
|
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
|
|
.stat {
|
|
background: var(--panel2); border-radius: 8px; padding: 9px 10px;
|
|
}
|
|
.stat .n { font-size: 18px; font-weight: 700; }
|
|
.stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
|
|
|
|
.toast {
|
|
position: sticky; bottom: 0; padding: 7px 14px; font-size: 12px;
|
|
background: var(--panel2); border-top: 1px solid var(--line); display: none;
|
|
}
|
|
.toast.show { display: block; }
|
|
.toast.ok { color: var(--good); }
|
|
.toast.err { color: var(--bad); }
|