completed css

This commit is contained in:
Tyler Renelle 2012-06-26 08:45:35 -04:00
parent 9eb860f863
commit df195b8857
2 changed files with 5 additions and 7 deletions

View file

@ -53,7 +53,7 @@ get '/', (page, model) ->
## VIEW HELPERS ##
view.fn 'taskClasses', (type, completed, score) ->
classes = type
classes += " completed" if completed #TODO .done instead
classes += " completed" if completed
switch
when score<-8 then classes += ' color-worst'
when score>=-8 and score<-5 then classes += ' color-worse'

View file

@ -39,6 +39,9 @@ h1 > span {
margin-left: 6px;
}
/**------------ Habits.styl ------------ */
/*****************************************/
#head {
background: #ddd;
background: -webkit-gradient(linear,0 0,0 100%,from(#e7e7e7),to(#d0d0d0));
@ -53,9 +56,6 @@ h1 > span {
white-space: nowrap;
}
/**------------ Habits.styl ------------ */
/*****************************************/
.color-worst { background-color: rgb(230, 184, 175); }
.color-worse { background-color: rgb(244, 204, 204); }
.color-bad { background-color: rgb(252, 229, 205); }
@ -63,7 +63,7 @@ h1 > span {
.color-good { background-color: rgb(217, 234, 211); }
.color-better { background-color: rgb(208, 224, 227); }
.color-best { background-color: rgb(201, 218, 248); }
.done { background-color: rgb(217, 217, 217); color: rgb(153, 153, 153); }
.completed { background-color: rgb(217, 217, 217); color: rgb(153, 153, 153); }
.reward { background-color: white; }
.task {
@ -113,8 +113,6 @@ h1 > span {
width: 920px;
}
#top-links {
float:right;
}