// 1. Set up color classes // ======================== // color variables $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 .completed background-color: $completed color: #999 .task-checker label background-color: darken($completed, 30%) .reward background-color: white // 2. Task Options // ================ 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; .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 .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 margin-bottom:5px; // begin rewrite css 2013-03-04 .task-column padding: 1.5em background: #f5f5f5 border: 1px solid #ccc font-family: 'Lato', sans-serif h2 margin: 0 0 0.5em padding: 0 .nav-tabs margin-top: 0.75em .option-box .option-action margin-left: 0.25em .rewards margin-bottom: 0.75em .task list-style: none clear: both padding: 0 0.5em 0 0.5em min-height: 2.5em line-height: 2.5 margin-bottom: 0.75em outline: 1px solid rgba(0,0,0,0.1) outline-offset: -1px -webkit-background-clip: padding-box border-radius: 0.25em // overflow: hidden &:last-child margin-bottom: 0 .task-controls display: inline margin-left: -0.5em margin-right: 0.5em .task-text display: inline .task-checker label display: inline-block width: 2.5em height: 2.5em padding: 0 margin: 0 vertical-align: top cursor: pointer &:after content: '○' display: block opacity: 0.2 line-height: 0.76 text-align: center color: black font-size: 3em &:hover:after, &:focus:after content: '¬' display: block font-size: 3em color: black transform: rotate(135deg) line-height: 1.1 text-align: left opacity: 0.5 !important &:active:after opacity: 0.75 !important & input[type=checkbox]:checked + label:after content: '¬' transform: rotate(135deg) line-height: 1.1 text-align: left opacity: 0.75 input[type=checkbox] margin: 0 padding: 0 visibility: hidden .addtask-form margin-bottom: 0.75em .addtask-field display: inline-block width: 80% // fallback for Safari 5.1 width: calc(unquote('100% - 3em')) 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 box-shadow: inset 0 0 3px darken($best, 20%) .addtask-btn display: inline-block width: 1.51515em height: 1.51515em padding: 0 font-size: 1.65em line-height: 1.55 outline: 0 border: 0 background-color: darken($best, 20%) opacity: 0.5 &:hover, &:focus opacity: 0.75 background-color: darken($best, 20%) &:active background-color: darken($best, 30%) opacity: 1 .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%)