Files
habitica/website/client/assets/scss/task.scss
T
Sabe Jones 07ae4134f3 Squashed commit of the following:
commit 0db0a69f0fa00d831b7d90340e045097e8d92343
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jul 16 10:01:49 2019 -0500

    fix(groups): return 0, not empty, when skipping downscore on Dailies
    fixes #11231

commit 1bf5bc714f660345f37bcc4e3587143341521c65
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jul 16 09:48:28 2019 -0500

    fix(groups): correct task creation button

commit 90908211200bc4a3eb204178df5c812ffcd09f37
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jul 16 09:46:04 2019 -0500

    fix(groups): clear approval status at cron for Habits and Dailies

commit 57e8dd0252c3ea45dd6fa1a7670ee197f32e76e5
Merge: d31b0a2d0 c9a56e8f3
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jul 16 09:33:27 2019 -0500

    Merge branch 'develop' into sabrecat/group-tasks

commit d31b0a2d0e3b7a46235696e9b05fa734ac29a2e5
Merge: f2185a91b 043696c22
Author: SabreCat <sabrecat@gmail.com>
Date:   Mon Jun 24 14:58:26 2019 +0000

    Merge branch 'develop' into sabrecat/group-tasks

commit f2185a91bde554c7eb22cd6bdfc1ef9227f1e765
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jun 18 10:10:10 2019 -0500

    fix(groups): divide task delta by number of assigned users

commit af0cde52f22129312d0102ecc5571f59aa2e396e
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jun 18 10:06:01 2019 -0500

    fix(groups): remove chat spam

commit c1c810967a9e34155948a9164862125517372268
Merge: bf4f3fb08 f987585cf
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue Jun 18 08:15:28 2019 -0500

    Merge branch 'develop' into sabrecat/group-tasks

commit bf4f3fb08491b4c4e1dbfaa58a2a6510c3cb78aa
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Thu May 23 11:29:01 2019 -0500

    fix(test): expect new task class from store

commit ae0379c80519523f68d4d606e1cc4bed8e9e49ec
Merge: ce5096e11 664cf5a47
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Thu May 23 11:25:15 2019 -0500

    Merge branch 'develop' into sabrecat/group-tasks

commit ce5096e116558419e4a73e8b23a58c78a1f2ab9b
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Thu May 23 11:02:01 2019 -0500

    feat(group-plans): clarify non-interactive controls on task board

commit ff3cec9530e30d51c43171d6f97d3888ff200352
Author: Sabe Jones <sabrecat@gmail.com>
Date:   Tue May 21 11:10:50 2019 -0500

    feat(group-plans): score shared task when user scores it
2019-08-02 15:49:41 -05:00

344 lines
9.4 KiB
SCSS

.task {
&-worst { // dark red
&-control {
&-bg {
background: $maroon-100 !important;
&:hover {
.habit-control { background: rgba(26, 24, 29, 0.48) !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(26, 24, 29, 0.24) !important; }
&-inner-daily-todo { background: $maroon-500 !important; }
&-checkbox { color: $maroon-100 !important; }
&-icon { color: #6c0406 !important; }
}
&-modal {
&-bg { background: $maroon-100 !important; }
&-icon { color: $maroon-100 !important; }
&-text { color: $maroon-50 !important; }
&-option-disabled:hover {
.svg-icon { color: $maroon-100 !important; }
.option-item-label { color: $maroon-50 !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $maroon-100 !important; }
.option-item-label { color: $maroon-50 !important; }
}
}
}
&-worse { // light red
&-control {
&-bg {
background: $red-100 !important;
&:hover {
.habit-control { background: rgba(26, 24, 29, 0.48) !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(26, 24, 29, 0.24) !important; }
&-inner-daily-todo { background: $red-500 !important; }
&-checkbox { color: $red-100 !important; }
&-icon { color: #6c0406 !important; }
}
&-modal {
&-bg { background: $red-100 !important; }
&-icon { color: $red-100 !important; }
&-text { color: $red-10 !important; }
&-option-disabled:hover {
.svg-icon { color: $red-100 !important; }
.option-item-label { color: $red-10 !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $red-100 !important; }
.option-item-label { color: $red-10 !important; }
}
}
}
&-bad { // orange
&-control {
&-bg {
background: $orange-100 !important;
&:hover {
.habit-control { background: #b75a1c !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(183, 90, 28, 0.4) !important; }
&-inner-daily-todo { background: $orange-500 !important; }
&-checkbox { color: $orange-100 !important; }
&-icon { color: #7f3300 !important; }
}
&-modal {
&-bg {
background: $orange-100 !important;
.form-control {
background: rgba(183, 90, 28, 0.4) !important;
&:focus, &:active, &:hover {
background-color: #b75a1c !important;
}
}
}
&-icon { color: $orange-100 !important; }
&-text { color: #b75a1c !important; }
&-option-disabled:hover {
.svg-icon { color: $orange-100 !important; }
.option-item-label { color: #b75a1c !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $orange-100 !important; }
.option-item-label { color: #b75a1c !important; }
}
}
}
&-neutral { // yellow
&-control {
&-bg {
background: $yellow-100 !important;
&:hover {
.habit-control { background: #bf7d1a !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(183, 90, 28, 0.32) !important; }
&-inner-daily-todo { background: $yellow-500 !important; }
&-checkbox { color: $yellow-100 !important; }
&-icon { color: #794b00 !important; }
}
&-modal {
&-bg {
background: $yellow-100 !important;
.form-control {
background: rgba(183, 90, 28, 0.4) !important;
&:focus, &:active, &:hover {
background-color: #bf7d1a !important;
}
}
}
&-icon { color: $yellow-100 !important; }
&-text { color: #bf7d1a !important; }
&-option-disabled:hover {
.svg-icon { color: $yellow-100 !important; }
.option-item-label { color: #bf7d1a !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $yellow-100 !important; }
.option-item-label { color: #bf7d1a !important; }
}
}
}
&-good { // green
&-control {
&-bg {
background: $green-100 !important;
&:hover {
.habit-control { background: rgba(26, 24, 29, 0.48) !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(26, 24, 29, 0.24) !important; }
&-inner-daily-todo { background: #77f4c7 !important; }
&-checkbox { color: $green-10 !important; }
&-icon { color: #005737 !important; }
}
&-modal {
&-bg { background: $green-100 !important; }
&-icon { color: $green-10 !important; }
&-text { color: #1ca372 !important; }
&-option-disabled:hover {
.svg-icon { color: $green-10 !important; }
.option-item-label { color: #1ca372 !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $green-10 !important; }
.option-item-label { color: #1ca372 !important; }
}
}
}
&-better { // teal
&-control {
&-bg {
background: $teal-100 !important;
&:hover {
.habit-control { background: rgba(26, 24, 29, 0.48) !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(26, 24, 29, 0.24) !important; }
&-inner-daily-todo { background: #8dedf6 !important; }
&-checkbox { color: $teal-100 !important; }
&-icon { color: #005158 !important; }
}
&-modal {
&-bg { background: $teal-100 !important; }
&-icon { color: $teal-100 !important; }
&-text { color: $teal-10 !important; }
&-option-disabled:hover {
.svg-icon { color: $teal-100 !important; }
.option-item-label { color: $teal-10 !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $teal-100 !important; }
.option-item-label { color: $teal-10 !important; }
}
}
}
&-best { // blue
&-control {
&-bg {
background: $blue-100 !important;
&:hover {
.habit-control { background: rgba(26, 24, 29, 0.48) !important; }
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner-habit { background: rgba(26, 24, 29, 0.24) !important; }
&-inner-daily-todo { background: $blue-500 !important; }
&-checkbox { color: $blue-100 !important; }
&-icon { color: #033f5e !important; }
}
&-modal {
&-bg { background: $blue-100 !important; }
&-icon { color: $blue-100 !important; }
&-text { color: $blue-10 !important; }
&-option-disabled:hover {
.svg-icon { color: $blue-50 !important; }
.option-item-label { color: $blue-10 !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $blue-50 !important; }
.option-item-label { color: $blue-10 !important; }
}
}
}
&-purple { // purple, only used in modals
&-modal {
&-bg { background: $purple-300 !important; }
&-icon { color: $purple-300 !important; }
&-text { color: $purple-200 !important; }
&-option-disabled:hover {
.svg-icon { color: $purple-300 !important; }
.option-item-label { color: $purple-200 !important; }
}
&-habit-control-disabled:hover {
.habit-control { background: $purple-300 !important; }
.option-item-label { color: $purple-200 !important; }
}
}
}
&-reward {
&-control {
&-bg {
background: rgba(255, 217, 160, 0.32) !important;
.small-text { color: $orange-10 !important; }
&:hover { background: rgba(255, 217, 160, 0.48) !important; }
}
}
}
&-disabled {
&-habit {
&-control {
&-bg { background: $gray-600; }
&-inner {
color: rgba(26, 24, 29, 0.12) !important;
border: 1px solid rgba(26, 24, 29, 0.12);
}
}
}
&-daily-todo {
&-control {
&-bg {
background: $gray-400 !important;
&:hover {
.daily-todo-control { background: rgba(255, 255, 255, 0.72) !important; }
}
}
&-inner { background: $gray-500 !important; }
&-checkbox { color: $gray-400 !important; }
&-content {
background: $gray-600;
.task-title, .task-notes {
color: $gray-300 !important;
}
}
}
}
}
}
.task-control {
width: 28px;
height: 28px;
}
.habit-control {
border-radius: 100px;
color: $white;
.svg-icon {
width: 10px;
height: 10px;
margin: 0 auto;
}
.lock {
margin-top: 7px;
height: 12px;
width: 10px;
}
.positive {
margin-top: 9px;
}
.negative {
margin-top: 13px;
}
}
.daily-todo-control {
&:hover {
.svg-icon.check {
display: block;
}
}
.svg-icon.check {
display: none;
&.display-check-icon {
display: block;
}
}
.svg-icon.lock {
margin: 8px auto;
height: 12px;
width: 10px;
}
}