diff --git a/index.html b/index.html index 616d20e..bc87e95 100644 --- a/index.html +++ b/index.html @@ -474,12 +474,12 @@ + - diff --git a/script.js b/script.js index 4426120..d95b957 100644 --- a/script.js +++ b/script.js @@ -3975,14 +3975,14 @@ function renderTasksList() { tbody.innerHTML = tasks.map(t => { const overdue = t.deadline && t.status !== 'valmis' && t.deadline < today; const soon = t.deadline && t.status !== 'valmis' && !overdue && t.deadline <= new Date(Date.now()+3*86400000).toISOString().slice(0,10); - const rowClass = overdue ? 'todo-row-overdue' : (soon ? 'todo-row-soon' : (t.status === 'valmis' ? 'todo-row-done' : '')); + const rowClass = overdue ? 'todo-row-overdue' : (soon ? 'todo-row-soon' : (t.status === 'kaynnissa' ? 'todo-row-active' : (t.status === 'valmis' ? 'todo-row-done' : ''))); return ` + - `; diff --git a/style.css b/style.css index c3f4424..e7fc931 100644 --- a/style.css +++ b/style.css @@ -1133,6 +1133,8 @@ span.empty { .todo-row-overdue:hover { background:#fde8e8 !important; } .todo-row-soon { background:#fffbeb !important; } .todo-row-soon:hover { background:#fef3c7 !important; } +.todo-row-active { background:#ecfdf5 !important; } +.todo-row-active:hover { background:#d1fae5 !important; } .todo-row-done { opacity:0.55; } .todo-row-done:hover { opacity:0.75; } .priority-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:0.72rem; font-weight:600; }