mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Grey out done tasks
This commit is contained in:
parent
8704815d81
commit
e5f8853a43
2 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
.color-green { background-color: rgb(217, 234, 211); }
|
||||
.color-light-blue { background-color: rgb(208, 224, 227); }
|
||||
.color-blue { background-color: rgb(201, 218, 248); }
|
||||
.done { background-color: rgb(217, 217, 217); color: rgb(153, 153, 153); }
|
||||
|
||||
.panel {
|
||||
vertical-align:top;
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ module HabitsHelper
|
|||
|
||||
def score_color(habit)
|
||||
s = habit.score
|
||||
return 'done' if habit.done?
|
||||
case
|
||||
when s<-8 then return 'color-red'
|
||||
when s>=-8 && s<-5 then return 'color-pink'
|
||||
|
|
|
|||
Loading…
Reference in a new issue