Nekochu's picture
Smaug + Mesmer AI image check, WebGPU
4221512 verified
Raw History Blame Contribute Delete
4.5 kB
:root {
--bg: #f4f2ee; --panel: #ffffff; --ink: #1d1c1a; --muted: #6b6760; --line: #d8d4cc;
--accent: #b4441b; --accent-ink: #ffffff; --bad: #a3261b;
--real: #2f6f4f; --unsure: #a8741a; --ai: #b4441b;
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root { --bg: #151413; --panel: #1f1d1b; --ink: #ece8e1; --muted: #a29d94; --line: #3a3732;
--accent: #e0703f; --accent-ink: #151413; --bad: #ff8a7a;
--real: #6cc097; --unsure: #e2b04f; --ai: #e0703f; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main {
display: grid; gap: 10px; padding: 8px 12px 16px; max-width: 1100px; margin: 0 auto;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "line" "drop" "results" "examples" "more";
}
@media (min-width: 760px) {
main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start;
grid-template-rows: auto auto auto 1fr;
grid-template-areas: "line line" "drop results" "drop examples" "drop more"; }
}
#line { grid-area: line; margin: 0; font-size: 14px; color: var(--muted); }
#line b { color: var(--ink); font-weight: 600; font-size: 15px; }
#drop {
grid-area: drop; position: relative; display: grid; place-items: center; cursor: pointer;
min-height: 240px; background: var(--panel); border: 1.5px dashed var(--line); border-radius: 6px; overflow: hidden;
}
#drop.over { border-color: var(--accent); }
#drop img { display: none; max-width: 100%; max-height: 70vh; object-fit: contain; }
#drop.has img { display: block; }
#drop.has { border-style: solid; }
#ask { color: var(--muted); padding: 24px; text-align: center; }
#ask u { color: var(--accent); }
#drop.has #ask { position: absolute; bottom: 6px; right: 8px; padding: 2px 8px; font-size: 12px;
background: var(--panel); border-radius: 4px; opacity: .9; }
#results { grid-area: results; display: grid; gap: 8px; }
.res { display: grid; grid-template-columns: 4.8em minmax(0, 1fr); grid-template-areas: "name meter" "name val";
gap: 3px 10px; align-items: center; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.res .name { grid-area: name; font-weight: 600; color: var(--ink); text-decoration: none; align-self: start; padding-top: 1px; }
.res .name:hover { text-decoration: underline; }
.meter { grid-area: meter; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--muted); transition: width .3s; }
.val { grid-area: val; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.val b { font-weight: 600; }
.res.real .meter i { background: var(--real); } .res.real .val b { color: var(--real); }
.res.unsure .meter i { background: var(--unsure); } .res.unsure .val b { color: var(--unsure); }
.res.ai .meter i { background: var(--ai); } .res.ai .val b { color: var(--ai); }
.res.busy .meter i { background: var(--muted); opacity: .6; }
.res.bad .val { color: var(--bad); }
#examples { grid-area: examples; }
#examples p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
#thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { #thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#thumbs button { padding: 0; border: 2px solid transparent; border-radius: 5px; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
#thumbs button.on { border-color: var(--accent); }
#thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.k { color: var(--ink); }
#more { grid-area: more; color: var(--muted); font-size: 13px; }
#more p { margin: 6px 0; }
summary { cursor: pointer; }
#wipe { font: inherit; min-height: 30px; padding: 0 12px; cursor: pointer; color: var(--ink); background: transparent;
border: 1px solid var(--line); border-radius: 4px; }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:where(button, input, summary, a, label, [tabindex]):focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
#drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }