fix: move nav-badge styles to layout.css so badge stays visible on all pages
The .nav-badge base styles (background, size, color) were defined in tasks.css, which is dynamically unloaded when navigating away from /tasks. This caused the overdue badge in the nav to become invisible on every other page, even though the badge element remained in the DOM. Also refactors subtask checkbox icon to use a CSS class instead of inline styles. Resolves #56 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-18
@@ -436,6 +436,12 @@
|
||||
animation: check-pop 0.15s var(--ease-out);
|
||||
}
|
||||
|
||||
.subtask-item__checkbox-icon {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
color: var(--color-text-on-accent);
|
||||
}
|
||||
|
||||
.subtask-item__title {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-primary);
|
||||
@@ -467,24 +473,6 @@
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
* Overdue-Badge (Navigation)
|
||||
* -------------------------------------------------------- */
|
||||
.nav-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 var(--space-1);
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-danger);
|
||||
color: var(--color-text-on-accent);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--font-weight-bold);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
* Kanban-Board
|
||||
* -------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user