mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-24 18:52:47 +08:00
feat(web): bring the Senbei workbench to the browser
Add folder scanning, Android library and package recovery, and the localized desktop-style workbench. Keep browser-refused outputs in a fallback ZIP and include logs with folder and ZIP exports. Align the desktop and web modal transitions and polish the desktop About and legal dialogs.
This commit is contained in:
1 parent
20a68b1c73
commit
21236e8b98
59 files changed
+11612
-3436
No files matched your search
+486
-435
@@ -1,491 +1,542 @@
|
||||
/* Senbei in the browser. The look is the desktop workbench, measure for
|
||||
measure: flat fills, 1px strokes, small radii, panels and tables. No
|
||||
gradients, blur, or transitions. */
|
||||
|
||||
@font-face {
|
||||
font-family: "Asul";
|
||||
src: url("assets/Asul-Bold.woff2") format("woff2");
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #14161a;
|
||||
--panel: #1d2026;
|
||||
--black: #0c0e11;
|
||||
--panel-2: #23272e;
|
||||
--well: #0c0e11;
|
||||
--border: #2e323b;
|
||||
--border-strong: #3c414c;
|
||||
--text: #e4e7ec;
|
||||
--dim: #9aa3b0;
|
||||
--faint: #808896;
|
||||
--accent: #e8b64c;
|
||||
--accent-hover: #f0c463;
|
||||
--accent-ink: #1a1408;
|
||||
--blue: #3b82f6;
|
||||
--blue-deep: #1d4ed8;
|
||||
--ok: #1e6b34;
|
||||
--ok-bright: #6fcf7c;
|
||||
--err: #7a2828;
|
||||
--err-bright: #e06c6c;
|
||||
--sel: rgba(59, 130, 246, 0.20);
|
||||
--hover: rgba(255, 255, 255, 0.035);
|
||||
--hover-fill: #2a2f37;
|
||||
--hover-stroke: #566070;
|
||||
--ok: #6fcf7c;
|
||||
--ok-soft: rgba(111, 207, 124, 0.13);
|
||||
--err: #e06c6c;
|
||||
--err-soft: rgba(224, 108, 108, 0.13);
|
||||
--warn: #e8b64c;
|
||||
--warn-soft: rgba(232, 182, 76, 0.13);
|
||||
--skip: #8b93a1;
|
||||
--info: #7aa7f7;
|
||||
--info-soft: rgba(59, 130, 246, 0.14);
|
||||
--r: 4px;
|
||||
|
||||
--ui: "Segoe UI", system-ui, sans-serif;
|
||||
--mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", Menlo, monospace;
|
||||
--title: "Asul", var(--ui);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
/* The locale's own system font comes first, so Han characters and CJK
|
||||
punctuation take that locale's glyphs. No CJK font is downloaded. */
|
||||
html[lang="zh-CN"] { --ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif; }
|
||||
html[lang="zh-TW"] { --ui: "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Segoe UI", system-ui, sans-serif; }
|
||||
html[lang="ja"] { --ui: "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Noto Sans CJK JP", "Segoe UI", system-ui, sans-serif; }
|
||||
html[lang="ko"] { --ui: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Segoe UI", system-ui, sans-serif; }
|
||||
|
||||
/* display rules below (inline-flex etc.) would otherwise beat the hidden
|
||||
attribute's UA display:none — the badge/download icons must stay hidden. */
|
||||
* { box-sizing: border-box; }
|
||||
[hidden] { display: none !important; }
|
||||
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
|
||||
font: 13.5px/18px var(--ui);
|
||||
overflow: hidden;
|
||||
}
|
||||
.mono, code { font-family: var(--mono), var(--ui); font-size: 12.5px; }
|
||||
.dim { color: var(--dim); }
|
||||
.faint { color: var(--faint); }
|
||||
.spacer { flex: 1; }
|
||||
a { color: var(--info); }
|
||||
|
||||
main {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
padding: 2.5rem 1.25rem 3rem;
|
||||
/* ---------- controls ---------- */
|
||||
|
||||
button, select, input { font: inherit; color: inherit; }
|
||||
button {
|
||||
min-height: 26px;
|
||||
padding: 3px 9px;
|
||||
background: var(--panel-2);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
button:hover:not(:disabled) { background: var(--hover-fill); border-color: var(--hover-stroke); }
|
||||
button:disabled { opacity: 0.5; cursor: default; }
|
||||
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
|
||||
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
|
||||
button.primary:disabled { opacity: 1; background: rgba(232, 182, 76, 0.45); border-color: transparent; color: rgba(26, 20, 8, 0.7); }
|
||||
/* A symbol takes one em whatever font it falls back to. */
|
||||
.ico { display: inline-block; width: 1em; text-align: center; }
|
||||
/* A frameless button that shows its frame under the pointer. */
|
||||
button.ghost { min-height: 24px; background: transparent; border-color: transparent; color: var(--dim); font-size: 12px; line-height: 16px; }
|
||||
button.ghost:hover:not(:disabled) { background: var(--hover-fill); border-color: var(--hover-stroke); }
|
||||
select, input[type="search"], input[type="number"] {
|
||||
height: 26px;
|
||||
padding: 0 5px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r);
|
||||
}
|
||||
select { min-width: 120px; background: var(--panel-2); cursor: pointer; }
|
||||
select:hover { background: var(--hover-fill); border-color: var(--hover-stroke); }
|
||||
input[type="search"], input[type="number"] { background: var(--well); }
|
||||
input[type="search"]::placeholder { color: var(--faint); }
|
||||
/* A check box is a small filled square with a thin tick. */
|
||||
input[type="checkbox"] {
|
||||
appearance: none; flex: none; width: 14px; height: 14px; margin: 0;
|
||||
background: var(--panel-2) center / 14px 14px no-repeat border-box;
|
||||
border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer;
|
||||
}
|
||||
input[type="checkbox"]:hover { background-color: var(--hover-fill); border-color: var(--hover-stroke); }
|
||||
input[type="checkbox"]:checked { background-image: url("assets/check.svg"); }
|
||||
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
|
||||
|
||||
/* ---------- frame ---------- */
|
||||
|
||||
#app { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
|
||||
|
||||
/* The bar's row is 26 tall where its buttons are; the settings button is 28. */
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 8px;
|
||||
min-height: 41px; padding: 6px 10px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
user-select: none;
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 8px; height: 26px; margin-right: 6px; }
|
||||
.brand img { width: 26px; height: 26px; }
|
||||
.brand .word { font: 700 19px/22px var(--title); }
|
||||
.brand .ver { color: var(--faint); font-size: 11.5px; line-height: 14px; }
|
||||
.sep { width: 1px; height: 22px; margin-top: 2px; background: var(--border); }
|
||||
.topbar > .spacer { height: 26px; }
|
||||
.out-chip {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
min-width: 0; max-width: 340px; min-height: 24px; margin-top: 2px; padding: 0 7px;
|
||||
background: transparent; border-color: var(--border); color: var(--dim);
|
||||
}
|
||||
.out-chip:hover:not(:disabled) { background: transparent; border-color: var(--hover-stroke); }
|
||||
.out-chip b { color: var(--text); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
|
||||
.gear { min-height: 28px; font-size: 15px; line-height: 20px; }
|
||||
|
||||
.main { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 0; }
|
||||
.main.blank { grid-template-columns: minmax(0, 1fr); }
|
||||
.main.blank .inputs { display: none; }
|
||||
@media (max-width: 1359px) { .main { grid-template-columns: 300px minmax(0, 1fr); } }
|
||||
|
||||
/* ---------- inputs ---------- */
|
||||
|
||||
.inputs {
|
||||
display: flex; flex-direction: column; min-height: 0;
|
||||
background: var(--panel);
|
||||
border-right: 1px solid var(--border);
|
||||
user-select: none;
|
||||
}
|
||||
.inputs-head { display: grid; gap: 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); }
|
||||
.inputs-head .title { display: flex; align-items: center; justify-content: space-between; min-height: 24px; font: 700 15px/18px var(--title); }
|
||||
.inputs-head .title button { font-family: var(--ui); font-weight: 400; }
|
||||
.chips { display: flex; flex-wrap: wrap; gap: 10px 4px; padding: 3px 0; }
|
||||
.chip {
|
||||
min-height: 18px; padding: 0.5px 7px;
|
||||
background: transparent; border-color: var(--border); border-radius: 999px;
|
||||
color: var(--dim); font-size: 12px; line-height: 15px;
|
||||
}
|
||||
.chip:hover:not(:disabled) { background: transparent; border-color: var(--border); }
|
||||
.chip.on, .chip.on:hover:not(:disabled) { background: var(--sel); border-color: var(--blue); color: var(--text); }
|
||||
.chip .n { margin-left: 4px; color: var(--faint); }
|
||||
.chip.on .n { color: var(--dim); }
|
||||
.search { width: 100%; }
|
||||
|
||||
.list { flex: 1; overflow: auto; padding: 8px 0; }
|
||||
.list > p { margin: 0; padding: 6px 10px; }
|
||||
.caret { width: 14px; height: 14px; color: var(--faint); font-size: 9px; line-height: 14px; text-align: center; cursor: pointer; }
|
||||
|
||||
.group-h {
|
||||
position: relative;
|
||||
display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px;
|
||||
margin-top: 4px; padding: 5px 10px 4px 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.group-h:hover { background: var(--hover); }
|
||||
.group-h.selected { background: var(--sel); }
|
||||
.group-h .caret { position: absolute; left: 10px; top: 6px; }
|
||||
.group-h .gname { font-size: 12.5px; font-weight: 600; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.group-h .gcount { color: var(--faint); font-size: 12px; line-height: 17px; }
|
||||
.group-h .gsub { grid-column: 1 / -1; color: var(--faint); font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.group-h.selected .gsub { color: var(--dim); }
|
||||
.group-h .gsub.c-info { color: var(--info); }
|
||||
|
||||
.row {
|
||||
position: relative;
|
||||
display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px;
|
||||
height: 44px; padding: 5px 10px 4px 42px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.row:hover { background: var(--hover); }
|
||||
.row.selected { background: var(--sel); box-shadow: inset 2px 0 0 var(--blue); }
|
||||
.row .caret { position: absolute; left: 9px; top: 7px; }
|
||||
.row .dot { position: absolute; left: 26px; top: 10px; }
|
||||
.row .name { line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.row .tag { align-self: center; }
|
||||
.row .meta {
|
||||
grid-column: 1 / -1; display: flex; gap: 6px; min-width: 0;
|
||||
color: var(--faint); font-size: 11.5px; line-height: 15px; white-space: nowrap;
|
||||
}
|
||||
.row.selected .meta { color: var(--dim); }
|
||||
.row .meta .st, .row .meta .ex { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||||
.row .meta .time { flex: none; }
|
||||
.row.nested { height: 42px; padding: 5px 10px 2px 60px; }
|
||||
.row.nested .dot { left: 44px; }
|
||||
.row.nested .meta { font-size: 11px; }
|
||||
.row.others {
|
||||
display: block; height: 24px; padding: 2px 10px 0 56px;
|
||||
color: var(--faint); font-size: 11.5px; line-height: 16px;
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
|
||||
h1 { margin-bottom: 0.25rem; }
|
||||
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
|
||||
.dot.hollow { border: 1px solid var(--faint); }
|
||||
.c-ok { color: var(--ok); } .bg-ok { background: var(--ok); }
|
||||
.c-err { color: var(--err); } .bg-err { background: var(--err); }
|
||||
.c-warn { color: var(--warn); } .bg-warn { background: var(--warn); }
|
||||
.c-skip { color: var(--skip); } .bg-skip { background: var(--skip); }
|
||||
.c-info { color: var(--info); } .bg-info { background: var(--info); }
|
||||
|
||||
.tag {
|
||||
font-size: 0.45em;
|
||||
vertical-align: super;
|
||||
color: var(--accent);
|
||||
letter-spacing: 0.08em;
|
||||
flex: none; padding: 0 4px;
|
||||
border: 1px solid var(--border); border-radius: 3px;
|
||||
color: var(--dim); font-size: 11px; line-height: 13px; white-space: nowrap;
|
||||
}
|
||||
.tag.mono { font-size: 11px; }
|
||||
.pill {
|
||||
display: inline-block; flex: none; padding: 0.5px 7px;
|
||||
border: 1px solid; border-radius: 999px;
|
||||
font-size: 12px; line-height: 15px; white-space: nowrap;
|
||||
}
|
||||
.pill.ok { color: var(--ok); border-color: rgba(111, 207, 124, 0.45); background: var(--ok-soft); }
|
||||
.pill.err { color: var(--err); border-color: rgba(224, 108, 108, 0.45); background: var(--err-soft); }
|
||||
.pill.warn { color: var(--warn); border-color: rgba(232, 182, 76, 0.45); background: var(--warn-soft); }
|
||||
.pill.info { color: var(--info); border-color: rgba(59, 130, 246, 0.45); background: var(--info-soft); }
|
||||
.pill.skip { color: var(--skip); border-color: var(--border-strong); background: transparent; }
|
||||
|
||||
.github-link {
|
||||
/* ---------- detail ---------- */
|
||||
|
||||
.detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
||||
.dhead { padding: 10px 16px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
|
||||
.dhead.notabs { padding-bottom: 6px; }
|
||||
.dtitle { display: flex; align-items: center; gap: 10px; min-height: 24px; user-select: none; }
|
||||
.dtitle h2 { flex: 0 1 auto; min-width: 80px; margin: 0; font-size: 17px; font-weight: 600; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.dtitle .back { display: none; }
|
||||
.dacts { display: flex; flex: none; gap: 4px; }
|
||||
.dpath { margin-top: 4px; color: var(--faint); font-size: 12px; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.tabs { display: flex; gap: 2px; margin: 8px 0 -1px; user-select: none; }
|
||||
.tab {
|
||||
height: 30px; min-height: 0; padding: 2px 11px 0;
|
||||
background: transparent; border-color: transparent; border-bottom: none; border-radius: var(--r) var(--r) 0 0;
|
||||
color: var(--dim);
|
||||
transition: color 0.2s, transform 0.2s;
|
||||
}
|
||||
.tab:hover:not(:disabled) { background: transparent; border-color: transparent; color: var(--text); }
|
||||
.tab.on, .tab.on:hover:not(:disabled) { background: var(--panel); border-color: var(--border); color: var(--text); }
|
||||
.tab .badge { margin-left: 4px; color: var(--faint); font-size: 11.5px; }
|
||||
|
||||
.github-link:hover {
|
||||
color: var(--text);
|
||||
transform: scale(1.12);
|
||||
}
|
||||
.dbody { flex: 1; min-height: 0; overflow: auto; background: var(--panel); container-type: inline-size; }
|
||||
.dbody.flush { display: flex; flex-direction: column; overflow: hidden; }
|
||||
.pad { padding: 18px 16px 24px; }
|
||||
.pad > .note:first-child { margin-top: 0; }
|
||||
.pick { flex: 1; display: grid; place-items: center; background: var(--panel); }
|
||||
|
||||
.lede { color: var(--dim); }
|
||||
.lede strong { color: var(--text); }
|
||||
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
|
||||
@container (max-width: 791px) { .cards { grid-template-columns: minmax(0, 1fr); } }
|
||||
.card { min-width: 0; padding: 10px 12px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
|
||||
.card.wide { grid-column: 1 / -1; }
|
||||
.card h3 { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 0 8px; font: 700 14.5px/18px var(--title); }
|
||||
.card h3 .aside { margin-left: auto; color: var(--faint); font: 400 12px/16px var(--ui); }
|
||||
|
||||
/* --- legal modal --- */
|
||||
/* The key column is as wide as its widest key, between 130 and 260. A key
|
||||
sits at the top of its row; a plain value is centred in a row 24 tall. */
|
||||
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; }
|
||||
.kv > .k { min-width: 130px; max-width: 260px; padding-top: 1px; color: var(--dim); }
|
||||
.kv > .k > .room { display: block; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; user-select: none; }
|
||||
.kv > .v { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; min-height: 24px; overflow-wrap: anywhere; }
|
||||
.kv > .v > * { min-width: 0; max-width: 100%; }
|
||||
.stack { display: grid; gap: 2px; justify-items: start; }
|
||||
/* A line of monospace is as tall as its own text. */
|
||||
.stack > div:has(> .mono:only-child) { line-height: 15px; }
|
||||
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
|
||||
.hash { display: flex; align-items: center; gap: 6px; }
|
||||
.orow { display: flex; align-items: center; gap: 6px; }
|
||||
.note { margin: 12px 0 0; color: var(--dim); font-size: 12px; line-height: 16px; }
|
||||
.note:first-child, h3 + .note { margin-top: 0; }
|
||||
.note + .msgs { margin-top: 12px; }
|
||||
|
||||
#legal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1.25rem;
|
||||
background: rgba(10, 11, 13, 0.82);
|
||||
backdrop-filter: blur(3px);
|
||||
animation: fadeIn 0.25s ease-out;
|
||||
}
|
||||
|
||||
.legal-box {
|
||||
max-width: 560px;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
padding: 1.75rem 2rem;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
animation: popIn 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
|
||||
}
|
||||
|
||||
.legal-box h2 { margin-top: 0; }
|
||||
.legal-box p { color: var(--dim); font-size: 0.95rem; }
|
||||
.legal-box strong { color: var(--text); }
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
padding: 0.55rem 1.2rem;
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 8px;
|
||||
background: var(--accent);
|
||||
color: #14161a;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
|
||||
}
|
||||
|
||||
button:not(:disabled):hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 3px 12px rgba(232, 182, 76, 0.25);
|
||||
}
|
||||
|
||||
button:not(:disabled):active { transform: translateY(0); }
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
button.secondary {
|
||||
background: transparent;
|
||||
color: var(--dim);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
button.secondary:not(:disabled):hover {
|
||||
box-shadow: none;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
#legal-accept { width: 100%; margin-top: 0.5rem; }
|
||||
|
||||
/* --- dropzone --- */
|
||||
|
||||
#dropzone {
|
||||
margin: 1.5rem 0;
|
||||
padding: 2.25rem 1.5rem;
|
||||
text-align: center;
|
||||
background: var(--panel);
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, background 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
#dropzone:hover, #dropzone:focus-visible {
|
||||
border-color: var(--accent);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#dropzone.over {
|
||||
border-color: var(--accent);
|
||||
background: #232730;
|
||||
transform: scale(1.01);
|
||||
animation: pulse 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
#dropzone p { margin: 0.25rem 0; }
|
||||
.hint { color: var(--dim); font-size: 0.9rem; }
|
||||
code {
|
||||
background: var(--bg);
|
||||
padding: 0.1em 0.35em;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* --- file list --- */
|
||||
|
||||
#files {
|
||||
list-style: none;
|
||||
margin: 0 0 0.75rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.file {
|
||||
position: relative;
|
||||
margin-bottom: 0.45rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: var(--black); /* staged */
|
||||
transition: background-color 0.5s ease;
|
||||
animation: slideIn 0.25s ease-out;
|
||||
}
|
||||
|
||||
.file.leaving {
|
||||
opacity: 0;
|
||||
transform: translateX(12px);
|
||||
margin-bottom: 0;
|
||||
border-width: 0;
|
||||
transition:
|
||||
opacity 0.13s ease-in,
|
||||
transform 0.13s ease-in,
|
||||
max-height 0.17s ease-in 0.03s,
|
||||
margin-bottom 0.17s ease-in 0.03s,
|
||||
border-width 0.17s ease-in 0.03s;
|
||||
}
|
||||
|
||||
.file .bar {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.file.working { background: var(--black); }
|
||||
|
||||
/* The gradient's left and right edge colors match, so the 200%-sized image
|
||||
tiles seamlessly and the position loop has no visible restart. */
|
||||
.file.working .bar {
|
||||
opacity: 1;
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
var(--blue-deep) 0%,
|
||||
var(--blue) 25%,
|
||||
#7fb3ff 50%,
|
||||
var(--blue) 75%,
|
||||
var(--blue-deep) 100%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.6s linear infinite;
|
||||
}
|
||||
|
||||
.file.ok { background: var(--ok); }
|
||||
.file.ok.suspect { background: #6b5a1e; }
|
||||
.file.err { background: var(--err); }
|
||||
/* Over the input limit: nothing was read, so this is not a failure. */
|
||||
.file.blocked { background: #3c3520; border-color: var(--warn); }
|
||||
|
||||
.file .row {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.55rem 0.85rem;
|
||||
}
|
||||
|
||||
.file .name {
|
||||
overflow-wrap: anywhere;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.file.working .name { color: #fff; }
|
||||
.file.ok .name, .file.err .name, .file.blocked .name { color: #fff; }
|
||||
|
||||
.badge.companion {
|
||||
flex: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.15rem 0.35rem;
|
||||
border-radius: 5px;
|
||||
background: rgba(59, 130, 246, 0.18);
|
||||
color: #7fb3ff;
|
||||
}
|
||||
|
||||
.file.ok .badge.companion,
|
||||
.file.err .badge.companion,
|
||||
.file.working .badge.companion {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.file .status {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
font-size: 0.85rem;
|
||||
color: var(--dim);
|
||||
.msgs { display: grid; gap: 6px; }
|
||||
.msg {
|
||||
display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px;
|
||||
padding: 6px 8px;
|
||||
background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.msg.err { border-color: rgba(224, 108, 108, 0.4); }
|
||||
.msg.warn { border-color: rgba(232, 182, 76, 0.4); }
|
||||
.msg > span { padding-top: 1px; font-size: 13px; font-weight: 600; text-align: center; }
|
||||
|
||||
.file.ok .status { color: #cfe9d5; }
|
||||
.file.ok.suspect .status { color: #f0e3b2; }
|
||||
.file.err .status { color: #f0c8c8; }
|
||||
.file.blocked .status { color: #f2e2b0; }
|
||||
.file.working .status { color: #dbe7ff; }
|
||||
|
||||
.file .dl {
|
||||
flex: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.9rem;
|
||||
height: 1.9rem;
|
||||
border-radius: 6px;
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
color: #fff;
|
||||
transition: background 0.15s, transform 0.15s;
|
||||
animation: popIn 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
|
||||
/* A folded part: a header with a small triangle, and under it, indented
|
||||
beside a line, what it holds. `--head` is the header's height and `--gap`
|
||||
the space under it. */
|
||||
details.fold { --head: 26px; --gap: 4px; position: relative; }
|
||||
details.fold > summary {
|
||||
position: relative; display: flex; align-items: center; width: fit-content; height: var(--head);
|
||||
padding: 0 10px 0 18px; list-style: none; cursor: pointer;
|
||||
}
|
||||
|
||||
.file .dl:hover {
|
||||
background: rgba(255, 255, 255, 0.32);
|
||||
transform: scale(1.1);
|
||||
details.fold > summary::-webkit-details-marker { display: none; }
|
||||
details.fold > summary::before {
|
||||
content: ""; position: absolute; left: 6px; top: calc(50% - 3px); width: 6px; height: 6px;
|
||||
background: var(--text); clip-path: polygon(0 0, 100% 50%, 0 100%);
|
||||
}
|
||||
|
||||
.file .remove {
|
||||
flex: none;
|
||||
padding: 0.1rem 0.55rem;
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--dim);
|
||||
font-weight: 400;
|
||||
details.fold[open] > summary::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
|
||||
details.fold[open]::after {
|
||||
content: ""; position: absolute; left: 9px; top: calc(var(--head) + var(--gap)); bottom: 2px;
|
||||
width: 1px; background: var(--border);
|
||||
}
|
||||
details.fold > pre { margin: var(--gap) 0 0 18px; line-height: 15px; }
|
||||
details.tech { --head: 24px; --gap: 6px; margin-top: 6px; }
|
||||
details.tech > summary { color: var(--faint); font-size: 12px; }
|
||||
details.tech > pre { color: var(--dim); white-space: pre-wrap; }
|
||||
|
||||
.file .remove:hover {
|
||||
color: var(--err-bright);
|
||||
border-color: var(--err-bright);
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
.route { padding: 10px 0; }
|
||||
.route + .route { border-top: 1px solid var(--border); }
|
||||
.route:first-of-type { padding-top: 6px; }
|
||||
.route:last-of-type { padding-bottom: 2px; }
|
||||
.rhead { display: flex; align-items: center; gap: 12px; min-height: 24px; }
|
||||
.route .msgs { margin-top: 8px; }
|
||||
.star { color: var(--warn); font-size: 12px; }
|
||||
|
||||
.stages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
||||
.stage { min-width: 142px; padding: 5px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
|
||||
.stage.dimmed { opacity: 0.5; }
|
||||
.sname { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 12.5px; font-weight: 600; }
|
||||
.sicon { min-width: 12px; }
|
||||
.sdur { color: var(--faint); font-size: 12px; font-weight: 400; }
|
||||
.sstat { margin-top: 1px; font-size: 12px; line-height: 16px; }
|
||||
.sdet { max-width: 360px; margin-top: 1px; color: var(--dim); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
|
||||
.arrow { color: var(--faint); }
|
||||
|
||||
.action { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; }
|
||||
|
||||
/* Tables: dim headers, no rules between rows, a capped height with its own
|
||||
scroll. Columns have set widths and cut what does not fit; they are 8
|
||||
apart, with a line in the gap except beside the column that grows. The
|
||||
scrollbar's room is kept whether it shows or not, so columns do not move
|
||||
when rows are added. */
|
||||
.tbl-wrap { max-height: 550px; overflow: auto; scrollbar-gutter: stable; border: 1px solid var(--border); border-radius: var(--r); }
|
||||
table.t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
|
||||
table.t th, table.t td { padding: 4px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
table.t th {
|
||||
position: sticky; top: 0; z-index: 1; height: 26px; padding-bottom: 0; vertical-align: top;
|
||||
background: var(--bg); color: var(--dim); font-size: 12px; font-weight: 400; text-align: left;
|
||||
}
|
||||
table.t td { height: 24px; vertical-align: middle; }
|
||||
/* Rows are 4 apart, which each row shares with its neighbours; the last row
|
||||
has no neighbour below. */
|
||||
table.t tbody tr:last-child > td { height: 22px; padding-bottom: 2px; }
|
||||
table.t tr > :first-child { padding-left: 0; }
|
||||
table.t tr > :last-child { padding-right: 0; }
|
||||
table.t tr > :not(:last-child) { border-right: 1px solid var(--border); }
|
||||
table.t.grow-2 tr > :nth-child(2) { border-right: none; }
|
||||
table.t tr[data-act] { cursor: pointer; }
|
||||
table.t tr[data-act]:hover td { background: var(--hover-fill); }
|
||||
table.t th.num, table.t td.num { text-align: right; }
|
||||
table.t td.num, table.t td.mono, table.t td .mono { font-family: var(--mono), var(--ui); font-size: 12px; }
|
||||
table.t td.c-dot { line-height: 0; }
|
||||
table.t td > div { overflow: hidden; text-overflow: ellipsis; }
|
||||
/* Rows of two lines. A cell that holds two starts them at the row's top. */
|
||||
table.t.tall td { height: 40px; }
|
||||
table.t.tall tbody tr:last-child > td { height: 38px; }
|
||||
table.t td.two, table.t.tall tbody tr:last-child > td.two { padding-top: 2px; padding-bottom: 0; vertical-align: top; }
|
||||
table.t td.two > div { line-height: 18px; }
|
||||
table.t td.two > .mono { line-height: 14px; }
|
||||
table.t td.two > .place { line-height: 16px; }
|
||||
.place { color: var(--faint); font-size: 12px; }
|
||||
.check { display: flex; align-items: center; gap: 4px; width: fit-content; min-height: 24px; margin-bottom: 12px; cursor: pointer; }
|
||||
details.inv { margin-top: 16px; }
|
||||
details.inv > summary { color: var(--dim); }
|
||||
pre.well { max-height: 296px; padding: 8px 10px; overflow: auto; background: var(--well); border-radius: var(--r); }
|
||||
|
||||
.file.ok .remove,
|
||||
.file.err .remove,
|
||||
.file.blocked .remove,
|
||||
.file.working .remove {
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
color: rgba(255, 255, 255, 0.75);
|
||||
/* ---------- log ---------- */
|
||||
|
||||
.logbar { display: flex; align-items: center; gap: 8px; padding: 13px 12px 12px; border-bottom: 1px solid var(--border); user-select: none; }
|
||||
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; }
|
||||
.seg button { height: 22px; min-height: 0; padding: 0 10px; background: transparent; border: none; border-radius: 0; }
|
||||
.seg button + button { border-left: 1px solid var(--border-strong); }
|
||||
.seg button:hover:not(:disabled) { background: var(--hover); }
|
||||
.seg button.on, .seg button.on:hover:not(:disabled) { background: var(--sel); }
|
||||
.log { font-family: var(--mono), var(--ui); font-size: 12.5px; line-height: 16px; }
|
||||
.dbody.flush > .log { flex: 1; min-height: 0; overflow: auto; padding: 11px 12px 6px; }
|
||||
.logline { display: grid; grid-template-columns: 96px 56px minmax(0, 1fr); column-gap: 10px; }
|
||||
.logline .ts { color: var(--faint); }
|
||||
.logline .lv { font-family: var(--ui); font-size: 11.5px; }
|
||||
.logline .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.logline.detail { font-size: 12px; }
|
||||
.logline.detail .tx { padding-left: 14px; color: var(--dim); }
|
||||
|
||||
/* ---------- empty state and drop ---------- */
|
||||
|
||||
.empty { flex: 1; display: grid; place-items: center; padding: 30px; overflow: auto; background: var(--bg); }
|
||||
/* Dashes 6 long and 4 apart, with square corners. */
|
||||
.drop, .dragover .box {
|
||||
--dash: var(--border-strong);
|
||||
--dash-w: 1.5px;
|
||||
background:
|
||||
repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 10px) top / 100% var(--dash-w) no-repeat,
|
||||
repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 10px) bottom / 100% var(--dash-w) no-repeat,
|
||||
repeating-linear-gradient(0deg, var(--dash) 0 6px, transparent 6px 10px) left / var(--dash-w) 100% no-repeat,
|
||||
repeating-linear-gradient(0deg, var(--dash) 0 6px, transparent 6px 10px) right / var(--dash-w) 100% no-repeat,
|
||||
var(--bg);
|
||||
}
|
||||
.drop { width: min(640px, 100%); min-height: 330px; padding: 30px; text-align: center; }
|
||||
.drop img { display: block; width: 84px; height: 84px; margin: 0 auto; }
|
||||
.drop h2 { margin: 12px 0 0; font: 700 21px/25px var(--title); }
|
||||
.drop .kinds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-height: 24px; margin-top: 14px; }
|
||||
.drop .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
|
||||
.drop p { margin: 20px 0 0; }
|
||||
.dragover { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(12, 14, 17, 0.78); pointer-events: none; }
|
||||
.dragover .box { --dash: var(--accent); --dash-w: 2px; padding: 40px 70px; }
|
||||
.dragover .box h2 { margin: 0; color: var(--accent); font: 700 22px/27px var(--title); }
|
||||
|
||||
.file.ok .remove:hover,
|
||||
.file.err .remove:hover {
|
||||
color: #fff;
|
||||
border-color: #fff;
|
||||
/* ---------- status bar ---------- */
|
||||
|
||||
.statusbar {
|
||||
display: flex; align-items: center; gap: 14px;
|
||||
min-height: 33px; padding: 4px 12px;
|
||||
background: var(--panel); border-top: 1px solid var(--border);
|
||||
color: var(--dim); font-size: 12px; white-space: nowrap;
|
||||
user-select: none;
|
||||
}
|
||||
.status-line { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; overflow: hidden; }
|
||||
.status-line > :first-child { font-size: 13.5px; }
|
||||
.status-line b { color: var(--text); font-size: 12.5px; font-weight: 600; }
|
||||
.progress { flex: none; width: 220px; height: 8px; overflow: hidden; background: var(--well); border: 1px solid var(--border); border-radius: 4px; }
|
||||
.progress > div { height: 100%; background: var(--accent); border-radius: 4px; }
|
||||
.status-line .cur { flex: 0 1 auto; min-width: 0; max-width: 420px; color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
|
||||
.status-line .step, .status-line .notice { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||||
.cancel { flex: none; color: var(--err); font-size: 13.5px; }
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
animation: fadeIn 0.25s ease-out;
|
||||
/* ---------- menus ---------- */
|
||||
|
||||
.ctx {
|
||||
position: fixed; z-index: 35;
|
||||
display: grid; gap: 4px;
|
||||
min-width: 200px; max-width: min(340px, calc(100vw - 16px)); padding: 4px;
|
||||
background: var(--panel); border: 1px solid var(--border-strong); border-radius: 6px;
|
||||
box-shadow: 6px 10px 8px rgba(0, 0, 0, 0.38);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* --- input limit --- */
|
||||
|
||||
.limits {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem 0.75rem;
|
||||
margin: 0 0 1rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--dim);
|
||||
.ctx-item {
|
||||
display: flex; align-items: flex-start; gap: 6px;
|
||||
width: 100%; min-height: 24px; padding: 2px 1px;
|
||||
background: transparent; border-color: transparent;
|
||||
text-align: left; white-space: normal;
|
||||
}
|
||||
.ctx-item:hover:not(:disabled) { background: var(--hover-fill); border-color: transparent; }
|
||||
.ctx-item .radio { flex: none; width: 12px; color: var(--accent); text-align: center; }
|
||||
.ctx-item .sub { display: block; color: var(--faint); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
|
||||
.ctx-item .kbd { margin-left: auto; padding-left: 16px; color: var(--faint); }
|
||||
.ctx-sep { height: 1px; margin: 1px 0; background: var(--border); }
|
||||
.ctx-note { margin: 0; padding: 0 2px 2px; color: var(--faint); font-size: 12px; line-height: 16px; }
|
||||
|
||||
.limits label { flex: none; }
|
||||
/* ---------- dialogs ---------- */
|
||||
|
||||
#limit-mib {
|
||||
width: 7rem;
|
||||
padding: 0.35rem 0.5rem;
|
||||
font: inherit;
|
||||
color: var(--text);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
dialog.modal {
|
||||
width: min(620px, calc(100vw - 40px)); max-height: calc(100dvh - 40px);
|
||||
padding: 0; color: var(--text);
|
||||
background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px;
|
||||
}
|
||||
|
||||
#limit-mib:focus-visible {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.limits .hint {
|
||||
flex-basis: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.limits .hint.warn { color: var(--warn); }
|
||||
|
||||
/* --- per-row report detail --- */
|
||||
|
||||
.file .details {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 0.85rem 0.55rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--dim);
|
||||
}
|
||||
|
||||
.file .details li {
|
||||
overflow-wrap: anywhere;
|
||||
padding-left: 0.9rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.file .details li::before {
|
||||
content: '·';
|
||||
position: absolute;
|
||||
left: 0.2rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.file.ok .details, .file.err .details, .file.working .details { color: #d8dde5; }
|
||||
.file .details li.fatal { color: var(--err-bright); }
|
||||
.file .details li.warning { color: var(--warn); }
|
||||
.file.ok .details li.fatal { color: #ffb3b3; }
|
||||
|
||||
.file .report {
|
||||
flex: none;
|
||||
padding: 0.1rem 0.45rem;
|
||||
font-family: ui-monospace, Consolas, monospace;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 400;
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--dim);
|
||||
}
|
||||
|
||||
.file .report:hover {
|
||||
color: var(--text);
|
||||
border-color: var(--accent);
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.file.ok .report,
|
||||
.file.err .report,
|
||||
.file.blocked .report,
|
||||
.file.working .report {
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.file.ok .report:hover,
|
||||
.file.err .report:hover,
|
||||
.file.blocked .report:hover {
|
||||
color: #fff;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 2rem;
|
||||
color: var(--dim);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
footer a { color: var(--dim); }
|
||||
|
||||
/* --- narrow screens --- */
|
||||
|
||||
/* On a narrow viewport the status column (flex: 1, right-aligned) is
|
||||
squeezed by a long file name into a one-word-per-line vertical strip.
|
||||
Stack the row instead: name + icons on the first line, the status on its
|
||||
own full-width line below, left-aligned. */
|
||||
@media (max-width: 560px) {
|
||||
main { padding: 1.5rem 0.9rem 2.5rem; }
|
||||
|
||||
#dropzone { padding: 1.75rem 1rem; }
|
||||
|
||||
.file .row { flex-wrap: wrap; }
|
||||
.file .name { flex: 1; min-width: 0; }
|
||||
.file .status {
|
||||
order: 6; /* after the download/remove icons */
|
||||
flex-basis: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- animations --- */
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes popIn {
|
||||
from { opacity: 0; transform: scale(0.85); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from { opacity: 0; transform: translateY(-6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
from { background-position: 0 0; }
|
||||
to { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(232, 182, 76, 0.25); }
|
||||
50% { box-shadow: 0 0 0 6px rgba(232, 182, 76, 0); }
|
||||
}
|
||||
|
||||
dialog#settings { width: min(760px, calc(100vw - 40px)); }
|
||||
dialog.modal[open] { display: flex; flex-direction: column; }
|
||||
dialog.modal::backdrop { background: rgba(8, 9, 11, 0.72); }
|
||||
dialog.modal, dialog.modal::backdrop { transition: opacity 200ms ease; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
/* Keep the opacity-only fade, but make the transition shorter. */
|
||||
dialog.modal, dialog.modal::backdrop { transition-duration: 100ms; }
|
||||
}
|
||||
dialog.modal:is(.opening, [inert]), dialog.modal:is(.opening, [inert])::backdrop { opacity: 0; }
|
||||
.modal-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
|
||||
.modal-h img { width: 24px; height: 24px; }
|
||||
.modal-h h2 { margin: 0; font: 700 17px/22px var(--title); }
|
||||
.modal-b { padding: 14px 16px; overflow: auto; }
|
||||
.modal-b p { margin: 0 0 10px; color: var(--dim); }
|
||||
.modal-b p:last-child { margin-bottom: 0; }
|
||||
.modal-b p strong { color: var(--text); font-weight: 600; }
|
||||
.modal-f { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }
|
||||
|
||||
.set-body { display: flex; flex: 1; min-height: 380px; overflow: hidden; }
|
||||
.set-nav { display: flex; flex: none; flex-direction: column; gap: 2px; width: 160px; padding: 8px 6px; border-right: 1px solid var(--border); }
|
||||
.nav { height: 26px; min-height: 0; padding: 0 9px; background: transparent; border-color: transparent; color: var(--dim); text-align: left; }
|
||||
.nav:hover:not(:disabled) { background: var(--hover); border-color: transparent; }
|
||||
.nav.on, .nav.on:hover:not(:disabled) { background: var(--sel); color: var(--text); }
|
||||
.set-pane { display: grid; flex: 1; align-content: start; gap: 12px; min-width: 0; padding: 12px 16px; overflow: auto; }
|
||||
.set-pane > p { margin: 0; }
|
||||
.field { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 14px; align-items: start; }
|
||||
.field > label, .field > .flabel { display: flex; align-items: center; min-height: 24px; }
|
||||
.field .control { display: flex; align-items: center; gap: 8px; min-height: 24px; }
|
||||
.field .help { margin: 4px 0 0; color: var(--faint); font-size: 12px; line-height: 16px; }
|
||||
.field input[type="number"] { width: 90px; }
|
||||
#set-output { width: 260px; max-width: 100%; }
|
||||
.about { display: flex; align-items: center; gap: 14px; }
|
||||
.about img { width: 72px; height: 72px; }
|
||||
.about .word { font: 700 22px/27px var(--title); }
|
||||
|
||||
::-webkit-scrollbar { width: 14px; height: 14px; }
|
||||
::-webkit-scrollbar-thumb { background: #353a44; border: 2px solid transparent; border-radius: 7px; background-clip: padding-box; }
|
||||
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
|
||||
|
||||
/* ---------- narrow windows: one pane at a time ---------- */
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.main, .main.blank { grid-template-columns: minmax(0, 1fr); }
|
||||
.main .detail { display: none; }
|
||||
.main.blank .detail { display: flex; }
|
||||
.main.show-detail .inputs { display: none; }
|
||||
.main.show-detail .detail { display: flex; }
|
||||
.inputs { border-right: none; }
|
||||
.dtitle { flex-wrap: wrap; }
|
||||
.dtitle .back { display: inline-block; min-width: 32px; }
|
||||
.brand .ver, .topbar .sep, .out-chip > span:first-child { display: none; }
|
||||
.out-chip { max-width: 190px; }
|
||||
.topbar button, .dtitle button { min-height: 32px; }
|
||||
.pad { padding: 12px 10px 20px; }
|
||||
.dhead { padding: 8px 10px 0; }
|
||||
.kv > .k { min-width: 96px; max-width: 40vw; }
|
||||
.action { grid-template-columns: minmax(0, 1fr); }
|
||||
.progress { width: 90px; }
|
||||
.status-line .step { display: none; }
|
||||
.logline { grid-template-columns: 84px 40px minmax(0, 1fr); column-gap: 6px; }
|
||||
.dbody.flush > .log { padding: 8px; }
|
||||
.drop { padding: 22px 14px; }
|
||||
.row { height: 48px; padding-top: 7px; }
|
||||
.row .dot { top: 12px; }
|
||||
.row .caret { top: 9px; }
|
||||
.row.nested { height: 46px; }
|
||||
.set-body { flex-direction: column; min-height: 0; overflow: auto; }
|
||||
.set-nav { flex-direction: row; width: auto; border-right: none; border-bottom: 1px solid var(--border); overflow: auto; }
|
||||
.set-pane { overflow: visible; }
|
||||
.field { grid-template-columns: minmax(0, 1fr); }
|
||||
}
|
||||
Reference in new issue
Block a user