first commit
This commit is contained in:
commit
58cfd95600
35 files changed
+5357
No files matched your search
@@ -0,0 +1,214 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
font-synthesis: none;
|
||||
--bg: #121416;
|
||||
--panel: #1b1e21;
|
||||
--panel-hover: #21252a;
|
||||
--input: #151719;
|
||||
--line: #34383d;
|
||||
--line-soft: #2a2e32;
|
||||
--text: #e4e7e9;
|
||||
--muted: #a2a9af;
|
||||
--faint: #788189;
|
||||
--accent: #91c99a;
|
||||
--accent-hover: #afe0b5;
|
||||
--success-bg: #203427;
|
||||
--danger: #e8a09b;
|
||||
--danger-bg: #362324;
|
||||
}
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
body { margin: 0; background: var(--bg); color: var(--text); }
|
||||
button, input, textarea, select { font: inherit; }
|
||||
button { cursor: pointer; }
|
||||
button:disabled { opacity: .45; cursor: not-allowed; }
|
||||
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.hidden, .svg-defs { display: none !important; }
|
||||
.icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.shell { max-width: 1120px; margin: auto; padding: 0 24px; }
|
||||
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
|
||||
.brand { display: flex; align-items: center; gap: 11px; }
|
||||
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #72977c; color: #a9d6ad; background: #1d2a21; border-radius: 5px; font-weight: 800; font-size: 19px; line-height: 1; }
|
||||
.brand-text { display: flex; flex-direction: column; gap: 2px; }
|
||||
.brand-text strong { font-size: 14px; font-weight: 700; letter-spacing: .1px; }
|
||||
.brand-text span { color: var(--faint); font-size: 11px; }
|
||||
.topbar-right { display: flex; align-items: center; gap: 17px; }
|
||||
.connection { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
|
||||
.connection-dot { width: 7px; height: 7px; background: var(--faint); border-radius: 50%; }
|
||||
.connection.online .connection-dot { background: var(--accent); }
|
||||
.connection.offline .connection-dot { background: var(--danger); }
|
||||
.version { border: 1px solid var(--line); color: var(--faint); font: 600 10px ui-monospace, SFMono-Regular, Consolas, monospace; padding: 4px 7px; letter-spacing: .5px; border-radius: 3px; }
|
||||
.page-title { padding: 31px 0 22px; }
|
||||
h1, h2, h3, p { margin-top: 0; }
|
||||
h1 { margin-bottom: 5px; font-size: 25px; font-weight: 680; letter-spacing: -.65px; line-height: 1.3; }
|
||||
.page-title p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
|
||||
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; background: var(--panel); overflow: hidden; }
|
||||
.metric { display: flex; flex-direction: column; gap: 9px; padding: 16px 19px; min-height: 112px; }
|
||||
.metric + .metric { border-left: 1px solid var(--line); }
|
||||
.metric-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
|
||||
.metric-label .icon { width: 14px; height: 14px; color: var(--faint); }
|
||||
.metric strong { color: var(--text); font-weight: 650; font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1; }
|
||||
.disk-metric { gap: 7px; }
|
||||
.disk-metric strong { font-size: 20px; }
|
||||
.disk-metric small { font-size: 10px; color: var(--faint); }
|
||||
.meter { height: 4px; background: #353a3e; overflow: hidden; width: 100%; }
|
||||
.meter span { display: block; height: 100%; background: var(--accent); transition: width .2s linear; }
|
||||
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; margin-top: 26px; }
|
||||
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 15px; }
|
||||
h2 { margin: 0; font-size: 16px; font-weight: 670; letter-spacing: -.2px; }
|
||||
.muted-info { font-size: 11px; color: var(--faint); }
|
||||
.tabs { display: flex; gap: 3px; padding: 0 15px; border-bottom: 1px solid var(--line); }
|
||||
.tab { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; border-bottom: 2px solid transparent; padding: 11px 13px 12px; color: var(--muted); font-size: 12px; font-weight: 550; }
|
||||
.tab:hover { color: var(--text); background: #25292d; }
|
||||
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
|
||||
.tab .icon { width: 15px; height: 15px; }
|
||||
.tab-body { padding: 21px 20px 20px; }
|
||||
.field { min-width: 0; }
|
||||
label { display: block; margin-bottom: 7px; font-size: 12px; color: #cbd0d4; font-weight: 600; }
|
||||
label span { color: var(--faint); font-weight: 400; }
|
||||
input, select, textarea { display: block; width: 100%; min-width: 0; color: var(--text); background: var(--input); border: 1px solid #42474c; border-radius: 4px; padding: 9px 11px; outline: none; font-size: 12px; }
|
||||
input, select { height: 38px; }
|
||||
textarea { min-height: 89px; resize: vertical; line-height: 1.6; }
|
||||
input::placeholder, textarea::placeholder { color: #737c84; }
|
||||
select { appearance: auto; }
|
||||
.input-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 13px; }
|
||||
.input-row .title-field { flex: 1 1 auto; }
|
||||
.input-row .format-field { flex: 0 0 172px; }
|
||||
button.primary, button.secondary, button.action { border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 620; white-space: nowrap; min-height: 38px; padding: 9px 12px; }
|
||||
button.primary { border: 1px solid #9ccc9e; color: #18231b; background: var(--accent); }
|
||||
button.primary:hover:not(:disabled) { background: var(--accent-hover); }
|
||||
button.secondary, button.action { border: 1px solid #444a50; background: #292d31; color: #d9dee1; }
|
||||
button.secondary:hover:not(:disabled), button.action:hover:not(:disabled) { background: #34393f; }
|
||||
button.action { min-height: 29px; padding: 5px 9px; font-size: 11px; }
|
||||
button.action.danger { color: #e3a6a4; }
|
||||
button.action.danger:hover { background: #3a2829; }
|
||||
button.icon-button { min-width: 36px; width: 36px; padding: 8px; }
|
||||
.note { color: var(--faint); font-size: 11px; line-height: 1.55; margin: 13px 0 0; }
|
||||
.inline-input { display: flex; align-items: center; gap: 9px; }
|
||||
.inline-input input { flex: 1 1 auto; }
|
||||
.file-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
|
||||
.file-heading h3 { font-size: 13px; font-weight: 600; margin: 0; max-width: 62%; overflow-wrap: anywhere; }
|
||||
.file-heading input { max-width: 250px; }
|
||||
.file-table { max-height: 320px; overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 4px; }
|
||||
.file-row { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 9px 11px; margin: 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: #d2d7da; font-weight: 400; }
|
||||
.file-row:last-child { border-bottom: 0; }
|
||||
.file-row:hover { background: var(--panel-hover); }
|
||||
.file-row input[type=checkbox] { margin: 0; min-height: 0; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
|
||||
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
||||
.size { color: var(--faint); font-size: 11px; white-space: nowrap; }
|
||||
.file-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 12px; }
|
||||
.selection-controls { display: flex; align-items: center; gap: 9px; }
|
||||
.selection-controls select { width: 145px; }
|
||||
.import-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
|
||||
.import-hint { font-size: 12px; color: var(--muted); margin: 0; }
|
||||
code { color: #b7d1bd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
|
||||
.queue-section { padding-top: 29px; }
|
||||
.queue-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
|
||||
.queue-title { display: flex; align-items: baseline; gap: 13px; }
|
||||
.queue-title h2 { display: flex; align-items: center; gap: 9px; }
|
||||
.count { font-size: 11px; color: #bdc4c9; background: #2c3034; border: 1px solid #3d4247; min-width: 21px; padding: 2px 6px; text-align: center; border-radius: 3px; font-variant-numeric: tabular-nums; }
|
||||
.queue-controls { display: flex; gap: 9px; align-items: center; }
|
||||
.filters { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
|
||||
.filter { background: #1c1f22; color: var(--muted); border: 0; border-right: 1px solid var(--line); padding: 9px 13px; font-size: 11px; min-height: 36px; }
|
||||
.filter:last-child { border-right: 0; }
|
||||
.filter:hover { color: var(--text); background: #272b30; }
|
||||
.filter.active { color: var(--accent); background: #29342c; font-weight: 650; }
|
||||
.jobs { display: flex; flex-direction: column; gap: 8px; }
|
||||
.job { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 14px 17px; }
|
||||
.job-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
|
||||
.job-heading { min-width: 0; flex: 1; }
|
||||
.job-name { font-weight: 650; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
|
||||
.job-sub { color: var(--faint); font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; max-height: 2.8em; overflow: hidden; }
|
||||
.job-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #4a5156; color: #bbc4ca; background: #272c30; border-radius: 3px; font-size: 10px; line-height: 1; padding: 6px 8px; white-space: nowrap; }
|
||||
.job-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9ca5ac; }
|
||||
.job-status.running { background: #233126; color: #add7af; border-color: #39563e; }
|
||||
.job-status.running::before { background: var(--accent); }
|
||||
.job-status.done { background: var(--success-bg); color: #a8d9ac; border-color: #3b5942; }
|
||||
.job-status.done::before { background: #8fcd95; }
|
||||
.job-status.error { background: var(--danger-bg); color: #f1aaa3; border-color: #704446; }
|
||||
.job-status.error::before { background: var(--danger); }
|
||||
.job-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
|
||||
.progressbar { width: 100%; height: 5px; background: #373d41; overflow: hidden; }
|
||||
.progressbar span { display: block; height: 100%; background: #8aba94; transition: width .25s linear; }
|
||||
.progressbar.is-error span { background: #c47e78; }
|
||||
.progress-text { color: #c5cbd0; text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; flex: 0 0 50px; }
|
||||
.job-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; font-size: 11px; color: var(--faint); }
|
||||
.job-meta .note-text { overflow-wrap: anywhere; }
|
||||
.job-meta .speed { flex-shrink: 0; font-variant-numeric: tabular-nums; }
|
||||
.job-bottom { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 11px; }
|
||||
.job-chips { display: inline-flex; gap: 7px; align-items: center; }
|
||||
.job-chip { color: #aab3ba; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; border: 1px solid #3c4449; padding: 3px 7px; border-radius: 3px; }
|
||||
.job-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
|
||||
.job-error { margin-top: 11px; padding: 9px 11px; border-left: 2px solid #c6857e; color: #ebaba6; background: #2b2122; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
|
||||
.job-output { color: #accdb5; overflow-wrap: anywhere; margin-top: 9px; font-size: 11px; }
|
||||
.empty-state { color: var(--faint); text-align: center; border: 1px dashed #42484e; background: var(--panel); padding: 34px 12px; border-radius: 4px; font-size: 12px; }
|
||||
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0 36px; color: var(--faint); font-size: 11px; }
|
||||
#toast { display: none; position: fixed; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); z-index: 20; padding: 13px 16px; border: 1px solid #6e9e75; border-radius: 4px; background: #24402a; color: #d3f1d6; font-size: 12px; line-height: 1.45; white-space: pre-line; }
|
||||
#toast.bad { background: #48282a; color: #ffd7d3; border-color: #955b60; }
|
||||
dialog { width: min(760px, calc(100vw - 30px)); max-height: 85vh; background: var(--panel); color: var(--text); border: 1px solid #545a60; border-radius: 5px; padding: 18px; }
|
||||
dialog::backdrop { background: rgba(0,0,0,.75); }
|
||||
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
|
||||
.dialog-heading h2 { font-size: 15px; }
|
||||
pre { overflow: auto; max-height: 66vh; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.65; color: #c8cdd0; }
|
||||
@media (max-width: 760px) {
|
||||
.shell { padding: 0 15px; }
|
||||
.topbar { height: 59px; }
|
||||
.version { display: none; }
|
||||
.page-title { padding: 22px 0 16px; }
|
||||
.metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
|
||||
.metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
|
||||
.metric:nth-child(4) { border-top: 1px solid var(--line); }
|
||||
.metric { min-height: 99px; padding: 15px; }
|
||||
.panel { margin-top: 19px; }
|
||||
.panel-heading { padding: 16px 15px 13px; }
|
||||
.panel-heading .muted-info { display: none; }
|
||||
.tabs { padding: 0 6px; }
|
||||
.tab { padding: 11px 9px; font-size: 11px; gap: 6px; }
|
||||
.tab-body { padding: 16px 15px; }
|
||||
.input-row { flex-wrap: wrap; }
|
||||
.input-row .title-field { flex: 1 1 100%; }
|
||||
.input-row .format-field { flex: 1 1 110px; }
|
||||
.input-row .submit-button { flex: 1 1 auto; }
|
||||
.file-heading { align-items: stretch; flex-direction: column; }
|
||||
.file-heading h3 { max-width: 100%; }
|
||||
.file-heading input { max-width: none; }
|
||||
.queue-header { align-items: stretch; flex-direction: column; gap: 13px; }
|
||||
.queue-controls { justify-content: space-between; }
|
||||
.queue-title { justify-content: space-between; }
|
||||
.filter { padding: 9px; }
|
||||
.job { padding: 13px; }
|
||||
.footer { flex-direction: column; gap: 7px; }
|
||||
}
|
||||
@media (max-width: 440px) {
|
||||
.inline-input, .import-toolbar { align-items: stretch; flex-direction: column; }
|
||||
.selection-controls { width: 100%; }
|
||||
.selection-controls select { flex: 1; min-width: 0; }
|
||||
.file-bottom { align-items: stretch; flex-direction: column; }
|
||||
.job-top { gap: 9px; }
|
||||
.job-status { max-width: 130px; white-space: normal; }
|
||||
.queue-title .muted-info { display: none; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
|
||||
}
|
||||
|
||||
/* Archive login and torrent metadata selection: compact, flat controls. */
|
||||
.archive-auth { border: 1px solid var(--line); padding: 13px; margin-bottom: 20px; background: var(--input); border-radius: 4px; }
|
||||
.auth-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
|
||||
.auth-heading span { color: var(--muted); overflow-wrap: anywhere; font-size: 11px; }
|
||||
.auth-login { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
|
||||
.auth-login .field { flex: 1 1 190px; }
|
||||
.archive-auth .note { margin-top: 10px; }
|
||||
#archiveLogout { margin-top: 12px; }
|
||||
#magnetDialog { width: min(840px, calc(100vw - 24px)); }
|
||||
.preview-status { color: var(--muted); font-size: 12px; margin: 14px 0; }
|
||||
#magnetDialog .file-table { max-height: 45vh; }
|
||||
#magnetDialog .file-row input:disabled { opacity: .3; }
|
||||
@media(max-width: 540px) { .auth-login .field, .auth-login button { flex: 1 1 100%; } }
|
||||
|
||||
/* Flat torrent metadata fallback controls. */
|
||||
.torrent-upload-inline {display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:10px 0; color:var(--muted, #8d939d); font-size:12px;}
|
||||
.file-label {display:inline-flex; align-items:center; justify-content:center; cursor:pointer; border:1px solid #434a51; background:#292e33; color:#d7dce1; padding:7px 10px; border-radius:3px; font-size:12px; font-weight:600;}
|
||||
.file-label:hover {background:#32383e;}
|
||||
#torrentFileLinks, #torrentFileDialog {display:none !important;}
|
||||
Reference in new issue
Block a user