diff --git a/public/css/items.styl b/public/css/items.styl index 213e499835..166ab09321 100644 --- a/public/css/items.styl +++ b/public/css/items.styl @@ -18,7 +18,7 @@ background-color: $better color: #555 - &:hover, &:focus + &:hover, &:focus, &.active background-color: $bad text-decoration: none diff --git a/views/shared/tasks/lists.jade b/views/shared/tasks/lists.jade index 0333238b2d..e02ef29de3 100644 --- a/views/shared/tasks/lists.jade +++ b/views/shared/tasks/lists.jade @@ -104,7 +104,7 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template") span.glyphicon.glyphicon-comment //left-hand size commands .task-controls.task-primary - a.money.btn-buy.item-btn(ng-click='castStart(Content.spells.special.#{k})') + a.money.btn-buy.item-btn(ng-click='castStart(Content.spells.special.#{k})', ng-class='{active: Content.spells.special.#{k}.key == spell.key}') if canceler span.shop_gold span.reward-cost {{Content.spells.special.#{k}.value}} @@ -128,7 +128,7 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template") span.glyphicon.glyphicon-comment //left-hand size commands .task-controls.task-primary - a.money.btn-buy.item-btn(ng-click='castStart(skill)') + a.money.btn-buy.item-btn(ng-click='castStart(skill)', ng-class='{active: skill.key == spell.key}') span.reward-cost strong {{skill.mana}} =env.t('mp')