mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Made play/pause and scrubber look even more disabled when disabled.
This commit is contained in:
parent
2677751dc5
commit
b0b37aa9d8
2 changed files with 7 additions and 2 deletions
app
|
@ -58,6 +58,8 @@
|
|||
li:hover
|
||||
background: #add8e6
|
||||
|
||||
#play-button.disabled i
|
||||
@include opacity(0.5)
|
||||
#play-button.playing i.icon-pause
|
||||
display: inline-block
|
||||
#play-button.paused i.icon-play
|
||||
|
@ -96,6 +98,9 @@
|
|||
border-radius: 0
|
||||
border: 0
|
||||
|
||||
&.disabled
|
||||
cursor: default
|
||||
|
||||
.progress-bar
|
||||
@include transition(width .0s linear)
|
||||
position: relative
|
||||
|
|
|
@ -58,11 +58,11 @@ module.exports = class PlaybackView extends View
|
|||
|
||||
onSetLetterbox: (e) ->
|
||||
if e.on
|
||||
$('.scrubber .progress', @$el).slider('disable', true)
|
||||
$('.scrubber .progress', @$el).slider('disable', true).addClass('disabled')
|
||||
$('#play-button', @$el).addClass('disabled')
|
||||
$('.scrubber-handle', @$el).css('visibility', 'hidden')
|
||||
else
|
||||
$('.scrubber .progress', @$el).slider('enable', true)
|
||||
$('.scrubber .progress', @$el).slider('enable', true).removeClass('disabled')
|
||||
$('#play-button', @$el).removeClass('disabled')
|
||||
$('.scrubber-handle', @$el).css('visibility', 'visible')
|
||||
@disabled = e.on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue