mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Fixed IE hero lock image.
This commit is contained in:
parent
d51db43823
commit
239f94697f
3 changed files with 9 additions and 1 deletions
app
styles/play/modal
templates/play/modal
views/play/modal
|
@ -110,6 +110,9 @@ $heroCanvasHeight: 265px
|
|||
background-color: goldenrod
|
||||
@include filter(contrast(50%) brightness(65%))
|
||||
|
||||
&.ie
|
||||
@include opacity(0.35)
|
||||
|
||||
.lock-indicator
|
||||
position: absolute
|
||||
width: 40%
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
li(data-hero-id=hero.get('original'), title=hero.name, data-slide-to=index, data-target="#hero-carousel", class="hero-indicator hero-index-" + index + (hero.locked ? " locked" : "") + (hero.purchasable ? " purchasable" : "") + (hero.restricted ? " restricted" : ""))
|
||||
.hero-avatar
|
||||
if hero.locked && !hero.purchasable
|
||||
img.lock-indicator(src="/images/pages/game-menu/lock.png", draggable="false")
|
||||
if isIE
|
||||
img.lock-indicator(src="/images/pages/game-menu/lock-processed.png", draggable="false")
|
||||
else
|
||||
img.lock-indicator(src="/images/pages/game-menu/lock.png", draggable="false")
|
||||
.carousel-inner
|
||||
for hero in heroes
|
||||
div(class="item hero-item" + (hero.locked ? " locked" : "") + (hero.purchasable ? " purchasable" : "") + (hero.restricted ? " restricted" : ""), data-hero-id=hero.get('original'))
|
||||
|
|
|
@ -69,11 +69,13 @@ module.exports = class PlayHeroesModal extends ModalView
|
|||
context.confirmButtonI18N = @confirmButtonI18N
|
||||
context.visibleHero = @visibleHero
|
||||
context.gems = me.gems()
|
||||
context.isIE = @isIE()
|
||||
context
|
||||
|
||||
afterRender: ->
|
||||
super()
|
||||
return unless @supermodel.finished()
|
||||
@$el.find('.hero-avatar').addClass 'ie' if @isIE()
|
||||
heroes = @heroes.models
|
||||
@$el.find('.hero-indicator').each ->
|
||||
heroID = $(@).data('hero-id')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue