164 lines
9.7 KiB
CSS
164 lines
9.7 KiB
CSS
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--bg: #1a1d24; --panel: #23272f; --border: #333945;
|
|
--text: #e6e8ec; --muted: #8b93a1; --accent: #4c8fdd; --danger: #c0504e;
|
|
--ok: #6fbf73; --warn: #d9b44a;
|
|
}
|
|
body { background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; }
|
|
header {
|
|
display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
|
|
padding: 0.8rem 1.2rem; background: var(--panel); border-bottom: 1px solid var(--border);
|
|
}
|
|
h1 { font-size: 1.2rem; }
|
|
nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
|
|
nav button { background: none; border: none; color: var(--muted); padding: 0.5rem 0.9rem; cursor: pointer; border-radius: 4px; font-size: 0.95rem; }
|
|
nav button.active, nav button:hover { color: var(--text); background: var(--bg); }
|
|
.badge {
|
|
background: var(--accent); color: #fff; border-radius: 10px;
|
|
padding: 0.05rem 0.45rem; font-size: 0.75rem; vertical-align: 0.1em;
|
|
}
|
|
main { padding: 1.2rem; max-width: 1100px; margin: 0 auto; }
|
|
.bar { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
|
|
.bar.wrap { flex-wrap: wrap; }
|
|
input, select {
|
|
background: var(--bg); color: var(--text); border: 1px solid var(--border);
|
|
border-radius: 4px; padding: 0.5rem 0.7rem; font-size: 0.95rem;
|
|
}
|
|
input:focus-visible, select:focus-visible, button:focus-visible {
|
|
outline: 2px solid var(--accent); outline-offset: 1px;
|
|
}
|
|
input.wide { min-width: 260px; }
|
|
#search-q, #missing-search, #imported-search, #import-filter-text { flex: 1; min-width: 160px; }
|
|
button { background: var(--accent); color: #fff; border: none; border-radius: 4px; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.95rem; }
|
|
button:hover { filter: brightness(1.1); }
|
|
button.secondary { background: var(--border); }
|
|
button.danger { background: var(--danger); padding: 0.3rem 0.7rem; font-size: 0.85rem; }
|
|
button:disabled { opacity: 0.6; cursor: default; }
|
|
|
|
/* cards as responsive grid */
|
|
.cards {
|
|
display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 0.6rem;
|
|
}
|
|
.card {
|
|
position: relative; display: flex; gap: 0.8rem;
|
|
background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 0.7rem;
|
|
}
|
|
.card.clickable { cursor: pointer; transition: border-color 0.1s, background 0.1s; }
|
|
.card.clickable:hover { border-color: var(--accent); background: #262b35; }
|
|
.card img, .nocover { width: 60px; height: 90px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
|
|
.nocover { background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.5rem; }
|
|
.card-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
|
|
.card-check { position: absolute; top: 0.6rem; right: 0.6rem; width: 1.1rem; height: 1.1rem; }
|
|
.row { display: flex; gap: 0.5rem; margin-top: 0.4rem; align-items: center; flex-wrap: wrap; }
|
|
.muted { color: var(--muted); font-size: 0.88rem; }
|
|
.mono { font-family: ui-monospace, monospace; font-size: 0.85rem; word-break: break-all; }
|
|
.subpath { color: var(--muted); font-size: 0.75rem; font-family: ui-monospace, monospace; }
|
|
.tag.warn { background: #8a6d1f; }
|
|
|
|
/* per-entry import feedback */
|
|
/* :not([hidden]) matters: a plain "display: flex" would beat the hidden
|
|
attribute and leave an empty bar sitting there (same trap as a <dialog>) */
|
|
#import-progress:not([hidden]) { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
|
|
#import-progress progress { flex: 1; max-width: 26rem; height: 0.7rem; }
|
|
tr.row-running { background: rgba(90, 140, 220, 0.12); }
|
|
tr.row-done { background: rgba(80, 170, 110, 0.12); }
|
|
tr.row-failed { background: rgba(200, 90, 90, 0.14); }
|
|
tr.row-conflict { background: rgba(200, 90, 90, 0.14); }
|
|
td.state.conflict { color: #e08585; }
|
|
#conflict-dialog .series-list label { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
|
|
td.state { white-space: nowrap; font-size: 0.85rem; }
|
|
td.state.done { color: var(--ok); }
|
|
td.state.failed { color: #e08585; }
|
|
td.state.running { color: var(--muted); }
|
|
.tag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 4px; background: var(--accent); color: #fff; font-size: 0.7rem; font-family: system-ui, sans-serif; vertical-align: 0.1em; }
|
|
|
|
/* view modes (Missing/Importiert) */
|
|
.view-toggle { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-left: auto; }
|
|
.view-toggle button { background: var(--panel); color: var(--muted); padding: 0.45rem 0.7rem; border-radius: 0; }
|
|
.view-toggle button.active { background: var(--accent); color: #fff; }
|
|
.cards.view-large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
|
|
.cards.view-large .card img, .cards.view-large .nocover { width: 90px; height: 135px; }
|
|
.cards.view-small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
|
|
.cards.view-small .card img, .cards.view-small .nocover { width: 45px; height: 68px; }
|
|
.cards.view-small .card { padding: 0.5rem; gap: 0.6rem; }
|
|
.cards.view-small .card-body { font-size: 0.88rem; gap: 0.15rem; }
|
|
.cards.view-list { grid-template-columns: 1fr; gap: 0.25rem; }
|
|
.cards.view-list .card { padding: 0.35rem 0.6rem; gap: 0.6rem; align-items: center; border-radius: 4px; }
|
|
.cards.view-list .card img, .cards.view-list .nocover { width: 28px; height: 42px; font-size: 0.9rem; }
|
|
.cards.view-list .card-body { flex-direction: row; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
|
|
.cards.view-list .card-check { position: static; margin-left: auto; flex-shrink: 0; }
|
|
|
|
/* tables */
|
|
.table-scroll { overflow: auto; max-height: 70vh; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 6px; }
|
|
table { width: 100%; border-collapse: collapse; background: var(--panel); }
|
|
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
|
|
thead th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 500; z-index: 1; }
|
|
td select { max-width: 340px; }
|
|
.score-hi { color: var(--ok); font-weight: 600; }
|
|
.score-mid { color: var(--warn); font-weight: 600; }
|
|
.score-lo { color: var(--danger); font-weight: 600; }
|
|
.score-none { color: var(--muted); }
|
|
.volume { width: 90px; }
|
|
|
|
/* dialogs */
|
|
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem; min-width: 340px; max-width: min(640px, 92vw); }
|
|
dialog::backdrop { background: rgba(0,0,0,0.6); }
|
|
dialog label { display: flex; flex-direction: column; gap: 0.2rem; margin: 0.5rem 0; font-size: 0.9rem; color: var(--muted); flex: 1; }
|
|
.detail-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.5rem; }
|
|
.detail-head img, .detail-head .nocover { width: 80px; height: 120px; }
|
|
|
|
.spinner {
|
|
display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.12em;
|
|
border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
|
|
border-radius: 50%; animation: spin 0.8s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
#quick-dialog { min-width: 480px; }
|
|
#series-dialog { min-width: 520px; }
|
|
.series-list { max-height: 45vh; overflow-y: auto; margin: 0.6rem 0; border: 1px solid var(--border); border-radius: 6px; }
|
|
.series-list label { flex-direction: row; align-items: center; gap: 0.5rem; margin: 0; padding: 0.35rem 0.6rem; color: var(--text); font-size: 0.9rem; }
|
|
.series-list label:nth-child(even) { background: rgba(255,255,255,0.03); }
|
|
.series-list input[type=checkbox] { flex: none; }
|
|
.series-list .num { flex: none; min-width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
.series-list .gap { padding: 0.35rem 0.6rem; color: var(--muted); font-size: 0.85rem; }
|
|
/* the dialog keeps head and foot in place; only the results scroll, so the
|
|
"manuell anlegen" panel stays reachable no matter how many hits came back */
|
|
/* [open] matters: a bare "#quick-dialog { display: flex }" would override the
|
|
browser's display:none for a closed dialog and leave it stuck on screen */
|
|
#quick-dialog[open] { display: flex; flex-direction: column; }
|
|
#quick-dialog { max-height: 85vh; width: min(680px, 92vw); }
|
|
#quick-scroll { flex: 1 1 auto; min-height: 4rem; overflow-y: auto; margin-top: 0.6rem; }
|
|
#quick-results { margin: 0; }
|
|
#quick-foot { flex: none; border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 0.6rem; }
|
|
#quick-manual > summary { cursor: pointer; color: var(--accent); font-size: 0.9rem; padding: 0.2rem 0; }
|
|
#quick-manual[open] > summary { margin-bottom: 0.3rem; }
|
|
.quick-manual-fields { display: flex; gap: 0.6rem; flex-wrap: wrap; }
|
|
.quick-manual-fields label { flex: 1 1 10rem; margin: 0.2rem 0; }
|
|
.quick-manual-fields label.narrow { flex: 0 0 6.5rem; }
|
|
.quick-manual-fields input { min-width: 0; width: 100%; }
|
|
#quick-search-form { gap: 0.5rem; }
|
|
#quick-q { flex: 1 1 auto; min-width: 0; }
|
|
#quick-file { word-break: break-word; }
|
|
/* one row per hit: cover | title + meta line | action */
|
|
#quick-results .card { align-items: center; gap: 0.7rem; padding: 0.45rem 0.6rem; }
|
|
#quick-results .card-body { flex: 1 1 auto; gap: 0.1rem; }
|
|
#quick-results .card-body strong { line-height: 1.25; }
|
|
#quick-results .card-body .muted { font-size: 0.78rem; }
|
|
#quick-results .card > button { flex: none; }
|
|
.ok { color: var(--ok); }
|
|
.error { color: #e08585; }
|
|
#toast { position: fixed; bottom: 1.2rem; right: 1.2rem; background: var(--accent); color: #fff; padding: 0.7rem 1.1rem; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 10; }
|
|
#toast.error { background: var(--danger); }
|
|
h3, h4 { margin: 0.8rem 0 0.6rem; }
|
|
#import-summary p { margin: 0.4rem 0; font-size: 1.05rem; }
|
|
|
|
@media (max-width: 700px) {
|
|
header { gap: 0.6rem; padding: 0.6rem; }
|
|
main { padding: 0.8rem; }
|
|
.cards { grid-template-columns: 1fr; }
|
|
#quick-dialog { min-width: 0; width: 92vw; }
|
|
#series-dialog { min-width: 0; width: 92vw; }
|
|
td select { max-width: 200px; }
|
|
}
|