aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-30 11:13:47 +0100
committerDanilo M. <danix@danix.xyz>2026-11-30 11:13:47 +0100
commit41c503645122f3d2d79ea4a428d6eb72c399c5b5 (patch)
tree92dfb9879824a9d2d67de8b7262b348fa1303930 /static/deck.css
parent88f120cb544296f4c760546a204f1e2268a2e5dd (diff)
downloaddeck-it-41c503645122f3d2d79ea4a428d6eb72c399c5b5.tar.gz
deck-it-41c503645122f3d2d79ea4a428d6eb72c399c5b5.zip
feat(todo): Vikunja tasks due now on the Dashboard
A row under the music and spending cards lists the open Vikunja tasks that are due today or overdue, or whose reminder has passed, and is hidden when there are none. A task with a reminder still ahead is left out, so snoozing adds a reminder 30 min ahead and the task returns when it fires. Tap opens the task in the PC's browser, hold marks it done, a swipe right snoozes it. [todo] url points at Vikunja; the API token lives in ~/.config/deck-it/vikunja-token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css16
1 files changed, 16 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css
index a11583a..c01b5e4 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -749,6 +749,22 @@ select {
.dash .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: var(--udt-subtext0); }
.dash .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }
+/* Vikunja tasks due now: one line each, hidden when there are none.
+ touch-action none, so a swipe right reaches dashboard.js, not the page. */
+.dash-todo { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; overflow: hidden; }
+.dash-todo .td { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px;
+ background: var(--udt-surface0); touch-action: none; user-select: none; cursor: pointer;
+ transition: transform .25s ease, opacity .25s ease, background-color .8s ease; }
+.dash-todo .td.sliding { transition: none; }
+.dash-todo .td.holding { background: color-mix(in srgb, var(--udt-green) 35%, var(--udt-surface0)); }
+.dash-todo .td.gone { opacity: 0; transform: scale(.97); }
+.dash-todo .td.fail { background: color-mix(in srgb, var(--udt-red) 35%, var(--udt-surface0)); }
+.dash-todo .td .nf { color: var(--udt-accent); font-size: 1.1rem; }
+.dash-todo .td .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.dash-todo .td .due { flex: none; font-size: 0.786rem; color: var(--udt-subtext0); }
+.dash-todo .td.late .due { color: var(--udt-red); }
+.dash-todo .td.more, .dash-todo .td.err { background: none; cursor: default; color: var(--udt-overlay1); font-size: 0.786rem; padding: 2px 10px; }
+
/* The running row: one to three chips in equal columns, each opening its
slot (and detail) as a centred modal. A line too long for the slot slides to its
end and back (dashboard.js sets --d and --t). */