wow-politur: akzentfarbe waehlbar, sanfte ansichtswechsel, freundliche leerzustaende

- Einstellungen -> Allgemein: Akzentfarbe (8 Presets + eigener Farbwaehler),
  per color-mix theme-aware abgeleitet, in localStorage gespeichert
- sanfter Fade + einmaliges Karten-Stagger beim View-Wechsel (Guard-Flag,
  respektiert prefers-reduced-motion)
- Leerzustaende: "nichts passt zu deinen Filtern" + Filter zuruecksetzen,
  sonst "noch keine Projekte" + Neues Projekt (im Demo-Limit ausgeblendet)
  in Board/Galerie/Liste/Home
- README als Markdown im Info-Panel (server: readmeFull-Feld)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 20:36:29 +01:00
parent 685bf4cd00
commit 972248f26a
4 changed files with 271 additions and 4 deletions

View File

@@ -136,6 +136,20 @@
main { padding: 14px 22px 40px; }
.view { display: none; }
.view.active { display: block; }
/* soft view switch + one-shot card stagger (only when the body flag is set, not on every render) */
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.switching .view.active { animation: viewIn .24s ease both; }
body.switching .view.active .card, body.switching .view.active .htile { animation: cardIn .28s ease both; }
body.switching .view.active .card:nth-child(1), body.switching .view.active .htile:nth-child(1) { animation-delay: .02s; }
body.switching .view.active .card:nth-child(2), body.switching .view.active .htile:nth-child(2) { animation-delay: .05s; }
body.switching .view.active .card:nth-child(3), body.switching .view.active .htile:nth-child(3) { animation-delay: .08s; }
body.switching .view.active .card:nth-child(4), body.switching .view.active .htile:nth-child(4) { animation-delay: .11s; }
body.switching .view.active .card:nth-child(5), body.switching .view.active .htile:nth-child(5) { animation-delay: .14s; }
body.switching .view.active .card:nth-child(n+6), body.switching .view.active .htile:nth-child(n+6) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
body.switching .view.active, body.switching .view.active .card, body.switching .view.active .htile { animation: none; }
}
/* ── shared bits ─────────────────────────────────────────────────────── */
.avatar { position: relative; width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: var(--c); }
@@ -164,6 +178,10 @@
.prio { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.prio.high { color: var(--red); }
.empty { color: var(--muted); font-size: 13px; padding: 24px; text-align: center; }
.empty.rich { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; }
.empty.rich svg { width: 40px; height: 40px; color: var(--accent); opacity: .55; }
.empty.rich .et { font-size: 14px; font-weight: 600; color: var(--text); }
.boardempty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 50vh; }
/* ── board ───────────────────────────────────────────────────────────── */
#board.active { display: grid; grid-template-columns: repeat(5, minmax(260px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
@@ -260,6 +278,27 @@
.card-sec h4 .i { color: var(--accent); }
.dangerzone { border-color: var(--red); background: var(--red-soft); }
.dangerzone .hint { color: var(--red); opacity: .95; }
/* README card: collapsible, with rendered-markdown typography */
.mdcard { padding: 0; }
.mdcard > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 12px 14px; }
.mdcard > summary::-webkit-details-marker { display: none; }
.mdcard > summary h4 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 7px; flex: 1; }
.mdcard > summary > .i { color: var(--muted); transition: transform .15s; }
.mdcard[open] > summary > .i { transform: rotate(180deg); }
.mdcard .md { padding: 0 14px 14px; max-height: 420px; overflow: auto; }
.md { font-size: 13px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.md h1, .md h2, .md h3, .md h4 { margin: 14px 0 6px; line-height: 1.3; }
.md h1 { font-size: 17px; } .md h2 { font-size: 15px; } .md h3 { font-size: 14px; } .md h4 { font-size: 13px; }
.md > :first-child { margin-top: 0; }
.md p { margin: 7px 0; }
.md a { color: var(--accent-text); }
.md ul, .md ol { margin: 7px 0; padding-left: 22px; }
.md li { margin: 2px 0; }
.md code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 12px; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.md pre { background: var(--surface-3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow: auto; margin: 8px 0; }
.md pre code { background: none; padding: 0; font-size: 12px; }
.md blockquote { margin: 8px 0; padding: 2px 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.md hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.kv > div { word-break: break-word; }
@@ -297,6 +336,29 @@
#home.active { display: flex; flex-direction: column; }
#home .homebar { flex: 0 0 auto; }
#home #homeGrid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
#home #todayBand { flex: 0 0 auto; }
/* "Today" welcome band */
.today { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface); padding: 14px 16px; margin-bottom: 14px; }
.today-head { display: flex; align-items: center; gap: 14px; }
.today-greet { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.today-date { font-size: 12.5px; color: var(--muted); margin-top: 1px; text-transform: capitalize; }
.today-stats { display: flex; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.tchip { font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.tchip:hover { border-color: var(--accent); color: var(--text); }
.tchip b { color: var(--text); font-variant-numeric: tabular-nums; }
.today-toggle { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.today-toggle .i { transition: transform .18s; }
.today.closed .today-toggle .i { transform: rotate(-90deg); }
.today-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; align-items: start; }
.today.closed .today-body { display: none; }
.tcard { font: inherit; text-align: left; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; min-width: 0; transition: transform .12s, border-color .12s, box-shadow .12s; }
.tcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tcard .avatar { width: 38px; height: 38px; flex: 0 0 38px; }
.tcard .tc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tcard .tc-name { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .tc-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.tcard .qsg { margin-left: auto; }
.today-act { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent-text); font-weight: 600; text-decoration: none; width: max-content; }
/* activity page */
#activity.active { overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.heatscroll { overflow-x: auto; padding-bottom: 4px; }
@@ -849,6 +911,14 @@
.tour-bubble .tb-step { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour-bubble .btn { padding: 5px 10px; font-size: 12.5px; }
.tour-bubble .iconbtn { width: 30px; height: 30px; }
.accentrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); background: var(--sw); cursor: pointer; padding: 0; position: relative; transition: transform .12s; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.swatch.custom { background: conic-gradient(red, orange, yellow, lime, cyan, blue, magenta, red); overflow: hidden; display: grid; place-items: center; }
.swatch.custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.swatch.custom.active { border-color: var(--text); }
.resetrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.resetrow .btn { flex: 0 0 auto; }
.resetrow .hint { flex: 1; min-width: 200px; }
@@ -1001,6 +1071,7 @@
<button class="btn primary" type="button" id="noneOpen"><svg class="i"><use href="/icons.svg#chevron-down"/></svg><span data-i18n="none.choose">Choose folder</span></button>
</div>
<div id="home" class="view">
<div id="todayBand"></div>
<div class="homebar" id="homeBar"></div>
<div id="homeGrid"></div>
</div>
@@ -1254,6 +1325,13 @@
<label for="fLang" data-i18n="set.language">Language</label>
<select id="fLang" class="autosel"></select>
</div>
<div class="spfield">
<label data-i18n="set.accent">Accent colour</label>
<div class="accentrow">
<div class="swatches" id="accentSwatches"></div>
<label class="swatch custom" title="Custom"><input type="color" id="accentCustom"></label>
</div>
</div>
<div class="sphead sep"><h4><svg class="i"><use href="/icons.svg#database"/></svg><span data-i18n="set.data.h">Data</span></h4></div>
<div class="kv" id="spData"></div>
<div class="rowbtns">