2013-03-06 00:47:08 +00:00
|
|
|
// 1. Set up color classes
|
|
|
|
|
// ========================
|
|
|
|
|
|
2013-03-05 19:16:10 +00:00
|
|
|
// color variables
|
2013-03-06 00:47:08 +00:00
|
|
|
$worst = rgb(230, 184, 175)
|
|
|
|
|
$worse = rgb(244, 204, 204)
|
|
|
|
|
$bad = rgb(252, 229, 205)
|
|
|
|
|
$neutral = rgb(255, 242, 204)
|
|
|
|
|
$good = rgb(217, 234, 211)
|
|
|
|
|
$better = rgb(208, 224, 227)
|
|
|
|
|
$best = rgb(201, 218, 248)
|
|
|
|
|
$completed = rgb(217, 217, 217)
|
|
|
|
|
|
|
|
|
|
// array of keywords and their associated color vars
|
|
|
|
|
$stages = (worst $worst) (worse $worse) (bad $bad) (neutral $neutral) (good $good) (better $better) (best $best)
|
|
|
|
|
|
|
|
|
|
// for each color stage, generate a named class w/ the appropriate color
|
|
|
|
|
for $stage in $stages
|
|
|
|
|
.color-{$stage[0]}
|
|
|
|
|
background-color: $stage[1]
|
|
|
|
|
.task-checker label,
|
|
|
|
|
.action-plus,
|
|
|
|
|
.action-minus
|
|
|
|
|
background-color: darken($stage[1], 30%)
|
|
|
|
|
|
|
|
|
|
// completed has to be outside the loop to override the color class
|
2013-03-05 01:36:11 +00:00
|
|
|
.completed
|
2013-03-06 00:47:08 +00:00
|
|
|
background-color: $completed
|
|
|
|
|
color: #999
|
2013-03-05 19:16:10 +00:00
|
|
|
.task-checker label
|
2013-03-06 00:47:08 +00:00
|
|
|
background-color: darken($completed, 30%)
|
|
|
|
|
|
2013-03-05 01:36:11 +00:00
|
|
|
.reward
|
2013-02-08 18:29:09 +00:00
|
|
|
background-color: white
|
|
|
|
|
|
2013-03-06 00:47:08 +00:00
|
|
|
|
|
|
|
|
// 2. Task Options
|
|
|
|
|
// ================
|
|
|
|
|
|
2013-02-08 18:29:09 +00:00
|
|
|
label.checkbox.inline{
|
|
|
|
|
width: 40px
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.todos
|
|
|
|
|
.nav-pills > .active > a, .nav-pills > .active > a:hover
|
|
|
|
|
color: #005580
|
|
|
|
|
background-color: #DEE5F2
|
|
|
|
|
|
|
|
|
|
.dailys
|
|
|
|
|
.repeat-days > .btn:not(.active)
|
|
|
|
|
background-color: #aaa;
|
|
|
|
|
background-image: -moz-linear-gradient(top, #eee, #aaa);
|
|
|
|
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eee), to(#aaa));
|
|
|
|
|
background-image: -webkit-linear-gradient(top, #eee, #aaa);
|
|
|
|
|
background-image: -o-linear-gradient(top, #eee, #aaa);
|
|
|
|
|
background-image: linear-gradient(to bottom, #eee, #aaa);
|
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
|
|
2013-02-09 15:45:00 +00:00
|
|
|
.context-enabled
|
|
|
|
|
.display-context-dependant,
|
|
|
|
|
.task-list li
|
|
|
|
|
display: none
|
|
|
|
|
|
|
|
|
|
&.context-completed
|
|
|
|
|
.show-for-completed, .completed
|
|
|
|
|
display: block
|
|
|
|
|
|
|
|
|
|
&.context-uncompleted
|
|
|
|
|
.show-for-uncompleted, .uncompleted
|
|
|
|
|
display: block
|
|
|
|
|
|
2013-02-08 18:29:09 +00:00
|
|
|
.help-icon
|
|
|
|
|
float:right;
|
|
|
|
|
|
|
|
|
|
.task:hover
|
|
|
|
|
cursor: move
|
|
|
|
|
|
|
|
|
|
li:hover .task-meta-controls .hover-show
|
|
|
|
|
display: inline
|
|
|
|
|
|
|
|
|
|
.task
|
|
|
|
|
|
|
|
|
|
.task-meta-controls
|
|
|
|
|
float:right
|
|
|
|
|
i
|
|
|
|
|
margin-left:5px
|
|
|
|
|
|
|
|
|
|
.task-meta-controls .hover-show
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
|
|
.vote-up, .vote-down
|
|
|
|
|
text-decoration:none;
|
|
|
|
|
|
|
|
|
|
.new-task-form
|
2013-03-05 00:42:48 +00:00
|
|
|
margin-bottom:5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// begin rewrite css 2013-03-04
|
|
|
|
|
|
2013-03-05 01:36:11 +00:00
|
|
|
.task-column
|
|
|
|
|
padding: 1.5em
|
|
|
|
|
background: #f5f5f5
|
2013-03-06 02:03:35 +00:00
|
|
|
border: 1px solid #ccc
|
2013-03-05 01:36:11 +00:00
|
|
|
font-family: 'Lato', sans-serif
|
|
|
|
|
h2
|
|
|
|
|
margin: 0 0 0.5em
|
|
|
|
|
padding: 0
|
2013-03-05 19:16:10 +00:00
|
|
|
|
|
|
|
|
.nav-tabs
|
|
|
|
|
margin-top: 0.75em
|
|
|
|
|
|
|
|
|
|
.option-box
|
|
|
|
|
.option-action
|
|
|
|
|
margin-left: 0.25em
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.rewards
|
|
|
|
|
margin-bottom: 0.75em
|
2013-03-05 01:36:11 +00:00
|
|
|
|
|
|
|
|
.task
|
2013-03-05 19:16:10 +00:00
|
|
|
list-style: none
|
2013-03-05 01:36:11 +00:00
|
|
|
clear: both
|
2013-03-06 02:03:35 +00:00
|
|
|
padding: 0 0.5em 0 0.5em
|
2013-03-05 19:16:10 +00:00
|
|
|
min-height: 2.5em
|
|
|
|
|
line-height: 2.5
|
2013-03-05 01:36:11 +00:00
|
|
|
margin-bottom: 0.75em
|
2013-03-05 20:13:59 +00:00
|
|
|
outline: 1px solid rgba(0,0,0,0.1)
|
|
|
|
|
outline-offset: -1px
|
|
|
|
|
-webkit-background-clip: padding-box
|
2013-03-05 01:36:11 +00:00
|
|
|
border-radius: 0.25em
|
2013-03-05 20:13:59 +00:00
|
|
|
// overflow: hidden
|
2013-03-05 01:36:11 +00:00
|
|
|
&:last-child
|
|
|
|
|
margin-bottom: 0
|
|
|
|
|
|
2013-03-05 19:16:10 +00:00
|
|
|
.task-controls
|
|
|
|
|
display: inline
|
2013-03-06 02:03:35 +00:00
|
|
|
margin-left: -0.5em
|
|
|
|
|
margin-right: 0.5em
|
2013-03-05 19:16:10 +00:00
|
|
|
.task-text
|
2013-03-06 02:03:35 +00:00
|
|
|
display: inline
|
2013-03-05 19:16:10 +00:00
|
|
|
|
|
|
|
|
.task-checker
|
|
|
|
|
label
|
|
|
|
|
display: inline-block
|
|
|
|
|
width: 2.5em
|
|
|
|
|
height: 2.5em
|
|
|
|
|
padding: 0
|
|
|
|
|
margin: 0
|
|
|
|
|
vertical-align: top
|
|
|
|
|
cursor: pointer
|
|
|
|
|
&:after
|
2013-03-05 20:13:59 +00:00
|
|
|
content: '○'
|
|
|
|
|
display: block
|
|
|
|
|
opacity: 0.2
|
2013-03-06 00:47:08 +00:00
|
|
|
line-height: 0.76
|
2013-03-05 20:13:59 +00:00
|
|
|
text-align: center
|
|
|
|
|
color: black
|
|
|
|
|
font-size: 3em
|
2013-03-06 00:47:08 +00:00
|
|
|
&:hover:after,
|
|
|
|
|
&:focus:after
|
2013-03-05 19:16:10 +00:00
|
|
|
content: '¬'
|
|
|
|
|
display: block
|
2013-03-05 20:13:59 +00:00
|
|
|
font-size: 3em
|
|
|
|
|
color: black
|
|
|
|
|
transform: rotate(135deg)
|
2013-03-05 19:16:10 +00:00
|
|
|
line-height: 1.1
|
|
|
|
|
text-align: left
|
|
|
|
|
opacity: 0.5 !important
|
2013-03-06 00:47:08 +00:00
|
|
|
&:active:after
|
2013-03-05 19:16:10 +00:00
|
|
|
opacity: 0.75 !important
|
|
|
|
|
|
|
|
|
|
& input[type=checkbox]:checked + label:after
|
2013-03-05 20:13:59 +00:00
|
|
|
content: '¬'
|
|
|
|
|
transform: rotate(135deg)
|
|
|
|
|
line-height: 1.1
|
|
|
|
|
text-align: left
|
2013-03-06 02:03:35 +00:00
|
|
|
opacity: 0.75
|
2013-03-05 19:16:10 +00:00
|
|
|
|
|
|
|
|
input[type=checkbox]
|
|
|
|
|
margin: 0
|
|
|
|
|
padding: 0
|
|
|
|
|
visibility: hidden
|
|
|
|
|
|
2013-03-05 00:42:48 +00:00
|
|
|
.addtask-form
|
|
|
|
|
margin-bottom: 0.75em
|
2013-03-05 01:36:11 +00:00
|
|
|
.addtask-field
|
2013-03-05 19:16:10 +00:00
|
|
|
display: inline-block
|
|
|
|
|
width: 80% // fallback for Safari 5.1
|
2013-03-06 02:03:35 +00:00
|
|
|
width: calc(unquote('100% - 3em'))
|
2013-03-05 19:16:10 +00:00
|
|
|
input
|
|
|
|
|
font-family: 'Lato', sans-serif
|
|
|
|
|
outline: 0
|
|
|
|
|
border: 0
|
|
|
|
|
box-shadow: none
|
|
|
|
|
background-color: white
|
|
|
|
|
height: 2.5em
|
|
|
|
|
padding: 0 0 0 0.5em
|
|
|
|
|
width: 100%
|
|
|
|
|
&:focus
|
2013-03-06 00:47:08 +00:00
|
|
|
box-shadow: inset 0 0 3px darken($best, 20%)
|
2013-03-05 00:42:48 +00:00
|
|
|
.addtask-btn
|
2013-03-05 19:16:10 +00:00
|
|
|
display: inline-block
|
|
|
|
|
width: 1.51515em
|
|
|
|
|
height: 1.51515em
|
|
|
|
|
padding: 0
|
|
|
|
|
font-size: 1.65em
|
|
|
|
|
line-height: 1.55
|
|
|
|
|
outline: 0
|
|
|
|
|
border: 0
|
2013-03-06 00:47:08 +00:00
|
|
|
background-color: darken($best, 20%)
|
2013-03-05 19:16:10 +00:00
|
|
|
opacity: 0.5
|
|
|
|
|
&:hover,
|
|
|
|
|
&:focus
|
|
|
|
|
opacity: 0.75
|
2013-03-06 00:47:08 +00:00
|
|
|
background-color: darken($best, 20%)
|
2013-03-05 19:16:10 +00:00
|
|
|
&:active
|
2013-03-06 00:47:08 +00:00
|
|
|
background-color: darken($best, 30%)
|
2013-03-05 19:16:10 +00:00
|
|
|
opacity: 1
|
2013-03-05 01:36:11 +00:00
|
|
|
|
2013-03-05 19:16:10 +00:00
|
|
|
.task-action-btn
|
|
|
|
|
display: inline-block
|
|
|
|
|
width: 1.773em
|
|
|
|
|
height: 1.773em
|
|
|
|
|
padding: 0
|
|
|
|
|
font-size: 1.41em
|
|
|
|
|
line-height: 1.773
|
|
|
|
|
text-align: center
|
|
|
|
|
color: black
|
|
|
|
|
vertical-align: top
|
|
|
|
|
border-right: 1px solid rgba(0,0,0,0.25)
|
|
|
|
|
&:last-child
|
|
|
|
|
border: 0
|
|
|
|
|
&:hover,
|
|
|
|
|
&:focus
|
|
|
|
|
text-decoration: none
|
|
|
|
|
// &.action-plus
|
|
|
|
|
// background-color: darken($color-good, 20%)
|
|
|
|
|
// &.action-minus
|
|
|
|
|
// background-color: darken($color-worst, 20%)
|