179 lines
9.1 KiB
CSS
179 lines
9.1 KiB
CSS
:root {
|
|
--bg: #f5f6fa;
|
|
--surface: #ffffff;
|
|
--ink: #1c2036;
|
|
--ink-2: #4a4f66;
|
|
--ink-3: #8a8fa3;
|
|
--line: #e4e6ee;
|
|
--mark: #ffcc00;
|
|
--mark-soft: #fff6cc;
|
|
--ok: #138a5e;
|
|
--ok-soft: #e2f4ec;
|
|
--bad: #c8322b;
|
|
--bad-soft: #fbe7e5;
|
|
--round: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
--r-card: 18px;
|
|
--r-field: 12px;
|
|
color-scheme: light;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font: 16px/1.5 var(--sans);
|
|
font-variant-numeric: tabular-nums;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
h1, h2, h3 { font-family: var(--round); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; }
|
|
h1 { font-size: 1.85rem; }
|
|
h2 { font-size: 1.1rem; }
|
|
p { margin: 0 0 .8em; }
|
|
a { color: inherit; }
|
|
small, .muted { color: var(--ink-3); }
|
|
[hidden] { display: none !important; }
|
|
|
|
.wrap { max-width: 1060px; margin: 0 auto; padding: 20px 16px 64px; }
|
|
.narrow { max-width: 480px; }
|
|
|
|
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
|
|
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.1rem var(--round); letter-spacing: -.02em; text-decoration: none; }
|
|
.brand img { width: 28px; height: 28px; }
|
|
.brand b { font-weight: 700; color: var(--ink-3); }
|
|
|
|
.card { background: var(--surface); border-radius: var(--r-card); padding: 20px; margin-bottom: 16px; }
|
|
|
|
.grid { display: grid; gap: 16px; }
|
|
@media (min-width: 900px) { .grid.admin { grid-template-columns: 310px 1fr; align-items: start; } }
|
|
|
|
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
|
|
label.inline { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
|
|
.hint { font-size: .82rem; color: var(--ink-3); margin: 4px 0 0; }
|
|
input[type=text], input[type=number], input[type=password], select, textarea {
|
|
width: 100%; font: inherit; color: inherit; background: var(--bg);
|
|
border: 1.5px solid transparent; border-radius: var(--r-field); padding: 10px 12px;
|
|
transition: border-color .15s, background .15s;
|
|
}
|
|
input:hover, select:hover, textarea:hover { border-color: var(--line); }
|
|
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
|
|
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
|
|
textarea { min-height: 100px; resize: vertical; }
|
|
button:focus-visible, .btn:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
|
|
.row { display: flex; gap: 12px; flex-wrap: wrap; }
|
|
.row > * { flex: 1 1 120px; }
|
|
|
|
button, .btn {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
font: 600 .95rem var(--round); padding: 11px 20px; border-radius: 999px; cursor: pointer;
|
|
border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
|
|
transition: background .15s, border-color .15s, transform .1s;
|
|
}
|
|
button:hover, .btn:hover { border-color: var(--ink-3); }
|
|
button:active, .btn:active { transform: scale(.97); }
|
|
button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
|
|
.primary { background: var(--mark); border-color: var(--mark); }
|
|
.primary:hover { background: #f5c200; border-color: #f5c200; }
|
|
.go { background: var(--ink); border-color: var(--ink); color: #fff; }
|
|
.go:hover { background: #2c3150; border-color: #2c3150; }
|
|
.danger { color: var(--bad); }
|
|
.small { padding: 7px 14px; font-size: .85rem; }
|
|
.block { width: 100%; }
|
|
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
|
|
|
|
.badge {
|
|
display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
|
|
padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2);
|
|
}
|
|
.badge.open { background: var(--ok-soft); color: var(--ok); }
|
|
.badge.public { background: var(--mark-soft); color: #7a5c00; }
|
|
|
|
.notice { border-radius: var(--r-field); padding: 10px 14px; font-size: .9rem; margin: 10px 0; background: var(--bg); }
|
|
.notice.warn { background: var(--mark-soft); color: #5c4500; }
|
|
.notice.bad { background: var(--bad-soft); color: #7d1a12; }
|
|
.notice.ok { background: var(--ok-soft); color: #0b5a3c; }
|
|
.notice.info { background: var(--bg); color: var(--ink-2); }
|
|
|
|
.stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
|
|
.stat b { font: 700 2.8rem/1 var(--round); letter-spacing: -.03em; }
|
|
|
|
.q { background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 12px; border: 1.5px solid transparent; }
|
|
.q.open { border-color: var(--ink); }
|
|
.q-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
|
|
.q-head > div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
|
|
.q-text { font: 700 1.15rem/1.3 var(--round); margin: 10px 0; }
|
|
.q-opts { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); }
|
|
.q-meta { font-size: .82rem; color: var(--ink-3); margin: 4px 0; }
|
|
.focus-mark { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--mark); padding: 3px 10px; border-radius: 999px; }
|
|
.icon { flex: none; display: block; }
|
|
|
|
.templates { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
|
|
|
|
.results { margin-top: 12px; }
|
|
.bar-row { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: 12px; align-items: center; margin: 8px 0; }
|
|
.bar-label { overflow-wrap: anywhere; }
|
|
.bar-track { height: 12px; background: var(--bg); border-radius: 99px; overflow: hidden; }
|
|
.bar-fill { height: 100%; background: var(--ink-3); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
|
|
.bar-row.lead .bar-fill { background: var(--mark); }
|
|
.bar-row.lead .bar-label { font-weight: 700; }
|
|
.bar-num { font: 700 1rem var(--round); min-width: 80px; text-align: right; }
|
|
.bar-num small { font-weight: 500; }
|
|
.results-foot { font-size: .82rem; color: var(--ink-3); margin-top: 10px; }
|
|
|
|
.progress { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 6px; }
|
|
.progress > div { height: 100%; background: var(--ink); border-radius: 99px; transition: width .3s; }
|
|
|
|
.ring { display: block; overflow: visible; }
|
|
.ring .seg, .ring .fill { fill: none; stroke-linecap: round; }
|
|
.ring .seg { stroke: var(--line); }
|
|
/* empty fill sits one length ahead (offset set in js) and hidden, so the round cap dot doesn't show */
|
|
.ring .fill {
|
|
stroke: var(--ink); opacity: 0;
|
|
transition: stroke-dashoffset .5s cubic-bezier(.3, .7, .2, 1), opacity .12s, stroke .22s;
|
|
}
|
|
.ring .fill.on { opacity: 1; }
|
|
.ring .fill.last { stroke: var(--mark); }
|
|
@media (prefers-reduced-motion: reduce) { .ring .fill { transition: opacity .2s, stroke .2s; } }
|
|
.ring text { font: 700 20px var(--round); fill: var(--ink); }
|
|
|
|
.codes-print { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
|
|
.code-cell { font: 700 1.1rem var(--round); letter-spacing: .08em; text-align: center; border: 1.5px dashed var(--line); padding: 14px 6px; border-radius: var(--r-field); }
|
|
.code-cell.used { color: var(--ink-3); text-decoration: line-through; }
|
|
|
|
.linkbox { display: flex; gap: 8px; align-items: center; }
|
|
.linkbox input { font-size: .8rem; }
|
|
|
|
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(92vw, 400px); }
|
|
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; text-align: center; animation: rise .25s ease-out; }
|
|
.toast.bad { background: var(--bad); }
|
|
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
|
|
|
|
.conn { font-size: .8rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
|
|
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
|
|
.conn.online::before { background: var(--ok); }
|
|
.conn.offline::before { background: var(--bad); }
|
|
|
|
@media print {
|
|
body { background: #fff; }
|
|
.no-print, .topbar, #toasts { display: none !important; }
|
|
.card { padding: 0; }
|
|
.code-cell { break-inside: avoid; }
|
|
}
|
|
.center { text-align: center; }
|
|
|
|
/* created poll: the two windows it opens */
|
|
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 6px; }
|
|
.duo.stack { grid-template-columns: 1fr; margin-top: 12px; }
|
|
.duo .pane { display: grid; gap: 10px; background: var(--bg); border-radius: var(--r-field); padding: 14px; }
|
|
.duo .pane-head { display: flex; align-items: center; gap: 12px; }
|
|
.duo .pane .linkbox input { background: var(--surface); }
|
|
.duo p { margin: 0; display: grid; gap: 1px; min-width: 0; }
|
|
.duo b { font: 700 .92rem var(--round); }
|
|
.duo span { font-size: .78rem; color: var(--ink-3); }
|
|
details.advanced { margin-top: 14px; }
|
|
details.advanced summary { font-size: .82rem; color: var(--ink-3); cursor: pointer; width: fit-content; padding: 4px 0; }
|
|
details.advanced summary:hover { color: var(--ink-2); }
|
|
details.advanced[open] summary { color: var(--ink-2); }
|