mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
refactor(bs3): port avatar level label
This commit is contained in:
parent
af42ec263e
commit
4dcf74a38a
3 changed files with 16 additions and 14 deletions
|
|
@ -9,6 +9,19 @@ Seeing as the sprites might change drastically in the
|
|||
future re: pets and whatnot, this is just temporary.
|
||||
---------------------------------------------------- */
|
||||
|
||||
.profile-modal-header
|
||||
width:560px
|
||||
margin: 0px auto
|
||||
|
||||
.avatar-level
|
||||
position absolute
|
||||
bottom 0px
|
||||
right 0px
|
||||
padding 2px 3px 2px 3px
|
||||
border-top-right-radius: 0px
|
||||
border-bottom-right-radius: 0px
|
||||
border-bottom-left-radius: 0px
|
||||
|
||||
// basic herobox styles
|
||||
.herobox
|
||||
height: 10.5em // higher to acct for the name area
|
||||
|
|
@ -93,4 +106,4 @@ future re: pets and whatnot, this is just temporary.
|
|||
position: absolute
|
||||
|
||||
.herobox.isLeader
|
||||
background: $better
|
||||
background: $better
|
||||
|
|
@ -134,7 +134,7 @@ div.tooltip-inner {
|
|||
// notification-character used only by death modal's figure, move
|
||||
.death-modal // a .modal-body
|
||||
margin: 10px
|
||||
|
||||
|
||||
figure
|
||||
float: left
|
||||
padding: 15px
|
||||
|
|
@ -147,17 +147,6 @@ div.tooltip-inner {
|
|||
right: 0px
|
||||
z-index: 1061
|
||||
|
||||
// TODO this is supposed to go in avatar.styl, but stylus is breaking if I even touch that file
|
||||
.profile-modal-header
|
||||
width:560px
|
||||
margin: 0px auto
|
||||
|
||||
.avatar-level
|
||||
position absolute
|
||||
bottom 0px
|
||||
right 0px
|
||||
padding 1px 3px 1px 3px
|
||||
|
||||
a
|
||||
cursor: pointer
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ figure.herobox(ng-click='spell ? castEnd(profile, "user", $event) : clickMember(
|
|||
span(ng-class='{zzz:profile.preferences.sleep}')
|
||||
// FIXME handle @minimal, this might have to be a directive
|
||||
span.current-pet(class='Pet-{{profile.items.currentPet}}', ng-show='profile.items.currentPet && !minimal')
|
||||
.avatar-level(ng-class='userLevelStyle(profile,"label")')
|
||||
.avatar-level(ng-class='userLevelStyle(profile,"label label-default")')
|
||||
span.glyphicon.glyphicon-circle-arrow-up(ng-show='profile.stats.buffs.str || profile.stats.buffs.per || profile.stats.buffs.con || profile.stats.buffs.int || profile.stats.buffs.stealth', tooltip=env.t('buffed'), style='margin-right:5px;')
|
||||
=env.t('lvl')
|
||||
| {{profile.stats.lvl}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue