design(todo): paper-style task cards — no border/bg, text-proportional checkboxes

- Remove card border, background, shadow, backdrop-filter, border-radius
- Tasks render as plain text directly on the page background
- Priority dot: slim 3px left accent instead of round dot
- Main checkbox: 1.1rem circle matching title font size
- Title: 0.9375rem regular weight, uses CSS var for theme color
- Subtasks: same size as title (0.9375rem), same checkbox size
- Subtask indent calculated from priority-dot + gaps + checkbox width
- Vertical connecting line aligned to checkbox center

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 17:34:21 +02:00
parent 2a00310273
commit adfcc7dcee

View file

@ -336,20 +336,17 @@
/> />
<style> <style>
/* Paper-style: no card, no border, just text on the page */
.kanban-card { .kanban-card {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.625rem;
padding: 0.625rem 1rem; padding: 0.2rem 0;
border-radius: 9999px; background: transparent;
background: rgba(255, 255, 255, 0.85); border: none;
backdrop-filter: blur(12px); box-shadow: none;
-webkit-backdrop-filter: blur(12px); border-radius: 0;
border: 1px solid rgba(0, 0, 0, 0.1); transition: opacity 0.15s;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: all 0.2s;
user-select: none; user-select: none;
cursor: pointer; cursor: pointer;
} }
@ -358,43 +355,28 @@
cursor: grabbing; cursor: grabbing;
} }
:global(.dark) .kanban-card {
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.15);
}
.kanban-card:hover { .kanban-card:hover {
background: rgba(255, 255, 255, 0.95); opacity: 0.85;
border-color: rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
:global(.dark) .kanban-card:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.25);
} }
.kanban-card.completed { .kanban-card.completed {
opacity: 0.6; opacity: 0.45;
} }
/* Priority dot */ /* Priority dot — slim left accent */
.priority-dot { .priority-dot {
width: 0.5rem; width: 3px;
height: 0.5rem; height: 1rem;
border-radius: 9999px; border-radius: 2px;
flex-shrink: 0; flex-shrink: 0;
} }
/* Checkbox */ /* Checkbox — sized to match title text height */
.task-checkbox { .task-checkbox {
width: 1.25rem; width: 1.1rem;
height: 1.25rem; height: 1.1rem;
border-radius: 9999px; border-radius: 50%;
border: 2px solid rgba(0, 0, 0, 0.2); border: 1.5px solid rgba(0, 0, 0, 0.3);
background: transparent; background: transparent;
display: flex; display: flex;
align-items: center; align-items: center;
@ -406,12 +388,12 @@
} }
:global(.dark) .task-checkbox { :global(.dark) .task-checkbox {
border-color: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.35);
} }
.task-checkbox:hover { .task-checkbox:hover {
border-color: #8b5cf6; border-color: #8b5cf6;
background: rgba(139, 92, 246, 0.1); background: rgba(139, 92, 246, 0.08);
} }
.task-checkbox.checked { .task-checkbox.checked {
@ -420,8 +402,8 @@
} }
.check-icon { .check-icon {
width: 0.75rem; width: 0.6rem;
height: 0.75rem; height: 0.6rem;
color: white; color: white;
} }
@ -431,26 +413,27 @@
min-width: 0; min-width: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.25rem; gap: 0.2rem;
} }
.task-title { .task-title {
font-size: 0.875rem; font-size: 0.9375rem;
font-weight: 500; font-weight: 400;
color: #374151; color: hsl(var(--color-foreground));
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
cursor: pointer; cursor: pointer;
line-height: 1.4;
} }
:global(.dark) .task-title { :global(.dark) .task-title {
color: #f3f4f6; color: hsl(var(--color-foreground));
} }
.task-title.line-through { .task-title.line-through {
text-decoration: line-through; text-decoration: line-through;
color: #9ca3af; opacity: 0.5;
} }
/* Inline title input */ /* Inline title input */
@ -633,34 +616,35 @@
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
} }
/* Inline subtasks */ /* Inline subtasks — same size as title, just indented */
.subtasks-inline { .subtasks-inline {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-left: calc(0.5rem + 1.25rem + 0.75rem + 1.25rem); /* indent = priority-dot(3px) + gap(0.625rem) + checkbox(1.1rem) + gap(0.625rem) */
margin-top: 0.125rem; padding-left: calc(3px + 0.625rem + 1.1rem + 0.625rem);
margin-top: 0;
position: relative; position: relative;
} }
.subtasks-inline::before { .subtasks-inline::before {
content: ''; content: '';
position: absolute; position: absolute;
left: calc(0.5rem + 1.25rem + 0.375rem); left: calc(3px + 0.625rem + 0.55rem);
top: 0; top: 0.2rem;
bottom: 0.375rem; bottom: 0.3rem;
width: 1px; width: 1px;
background: rgba(0, 0, 0, 0.12); background: rgba(0, 0, 0, 0.15);
} }
:global(.dark) .subtasks-inline::before { :global(.dark) .subtasks-inline::before {
background: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.15);
} }
.subtask-row { .subtask-row {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.625rem;
padding: 0.125rem 0; padding: 0.15rem 0;
background: transparent; background: transparent;
border: none; border: none;
cursor: pointer; cursor: pointer;
@ -669,10 +653,10 @@
} }
.subtask-check { .subtask-check {
width: 0.875rem; width: 1.1rem;
height: 0.875rem; height: 1.1rem;
border-radius: 50%; border-radius: 50%;
border: 1.5px solid rgba(0, 0, 0, 0.2); border: 1.5px solid rgba(0, 0, 0, 0.3);
background: transparent; background: transparent;
display: flex; display: flex;
align-items: center; align-items: center;
@ -683,7 +667,11 @@
} }
:global(.dark) .subtask-check { :global(.dark) .subtask-check {
border-color: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.35);
}
.subtask-check:hover {
border-color: #8b5cf6;
} }
.subtask-check.checked { .subtask-check.checked {
@ -692,23 +680,21 @@
} }
.subtask-title { .subtask-title {
font-size: 0.75rem; font-size: 0.9375rem;
color: #6b7280; font-weight: 400;
color: hsl(var(--color-foreground));
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 1.4;
} }
:global(.dark) .subtask-title { :global(.dark) .subtask-title {
color: #9ca3af; color: hsl(var(--color-foreground));
} }
.subtask-row.done .subtask-title { .subtask-row.done .subtask-title {
text-decoration: line-through; text-decoration: line-through;
color: #9ca3af; opacity: 0.45;
}
:global(.dark) .subtask-row.done .subtask-title {
color: #6b7280;
} }
</style> </style>