mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
Modified to 15px border and lock icon based on feedback from dev team
This commit is contained in:
parent
9abaedc7c5
commit
6520caed7d
2 changed files with 17 additions and 7 deletions
|
|
@ -68,12 +68,21 @@ menu
|
|||
margin: 25px 0 0
|
||||
|
||||
.background-unlocked
|
||||
border 4px solid white
|
||||
width: 144px !important
|
||||
height: 152px !important
|
||||
border 15px solid white
|
||||
width: 170px !important
|
||||
height: 177px !important
|
||||
|
||||
.background-locked
|
||||
border 4px solid gray
|
||||
width: 144px !important
|
||||
height: 152px !important
|
||||
border 15px solid gray
|
||||
width: 170px !important
|
||||
height: 177px !important
|
||||
|
||||
.background-locked
|
||||
position: relative
|
||||
|
||||
.background-locked i
|
||||
position: absolute;
|
||||
right: -13px;
|
||||
bottom: -13px;
|
||||
color: white;
|
||||
top: auto;
|
||||
|
|
@ -250,7 +250,8 @@ mixin backgrounds(mobile)
|
|||
//-button.btn.btn-xs(ng-hide="ownsSet('background',Content.backgrounds['#{k}'])",ng-click="unlock(setKeys('background',Content.backgrounds['#{k}']))")!= env.t('unlockSet',{cost:15}) + ' <span class="Pet_Currency_Gem1x inline-gems"/>'
|
||||
button.btn.btn-xs(ng-hide="ownsSet('background',#{JSON.stringify(bgs)})",ng-click="unlock(setKeys('background',#{JSON.stringify(bgs)}))")!= env.t('unlockSet',{cost:15}) + ' <span class="Pet_Currency_Gem1x inline-gems"/>'
|
||||
each bg,k in bgs
|
||||
button.customize-option(type='button',class='background_#{k}',ng-class="user.purchased.background.#{k} ? 'background-unlocked' : 'background-locked'", ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter')
|
||||
button.customize-option(type='button', class='background_#{k}', ng-class="user.purchased.background.#{k} ? 'background-unlocked' : 'background-locked'", ng-click='unlock("background.#{k}")', popover-title=bg.text(), popover=bg.notes(),popover-trigger='mouseenter')
|
||||
i.glyphicon.glyphicon-lock(ng-if="!user.purchased.background.#{k}")
|
||||
- }
|
||||
|
||||
script(type='text/ng-template', id='partials/options.profile.backgrounds.html')
|
||||
|
|
|
|||
Loading…
Reference in a new issue