codecombat/app/styles/play/level/playback.sass

137 lines
3.1 KiB
Sass
Raw Normal View History

@import "app/styles/mixins"
@import "app/styles/bootstrap/variables"
2014-01-03 13:32:13 -05:00
#playback-view
width: 55%
height: 30px
position: relative
background: #383434
button
height: 26px
background: transparent
@include opacity(0.50)
2014-01-03 13:32:13 -05:00
i
position: relative
button:hover
@include opacity(0.75)
2014-01-03 13:32:13 -05:00
#play-button, #volume-button, #music-button
float: left
margin-left: 2px
margin-top: 2px
width: 25px
position: relative
#music-button
@include opacity(0.25)
2014-01-03 13:32:13 -05:00
font-size: 20px
span
position: relative
left: -3px
top: -2px
2014-01-03 13:32:13 -05:00
&:hover
@include opacity(0.50)
2014-01-03 13:32:13 -05:00
&.music-on
@include opacity(0.50)
2014-01-03 13:32:13 -05:00
&:hover
@include opacity(0.75)
2014-01-03 13:32:13 -05:00
#play-button, #volume-button
i
display: none
position: absolute
left: 2px
top: 2px
#settings-button
padding-left: 4px
padding-right: 4px
2014-01-03 13:32:13 -05:00
#playback-settings
float: right
position: relative
top: 2px
margin-right: 2px
ul i
margin: 0 10px
li:hover
background: #add8e6
#play-button.disabled i
@include opacity(0.5)
2014-01-03 13:32:13 -05:00
#play-button.playing i.icon-pause
display: inline-block
#play-button.paused i.icon-play
display: inline-block
#play-button.ended i.icon-repeat
display: inline-block
#volume-button.vol-up i.icon-volume-up
display: inline-block
#volume-button.vol-off i.icon-volume-off
display: inline-block
@include opacity(0.50)
2014-01-03 13:32:13 -05:00
&:hover
@include opacity(0.75)
2014-01-03 13:32:13 -05:00
#volume-button.vol-down i.icon-volume-down
display: inline-block
.scrubber
position: absolute
left: 100px
top: 0px
bottom: 0px
2014-02-20 16:19:49 -05:00
right: 125px
2014-01-03 13:32:13 -05:00
.progress
float: left
width: 100%
height: 14px
margin-top: 8px
cursor: pointer
overflow: visible
border: 1px solid #444
// Remove gradient background in favor of solid fill
background-color: #888
background-image: none
border-radius: 0
border: 0
2014-08-22 20:11:40 -04:00
// Can't do this transition because handle then jitters, but would be good for streaming.
//@include transition(width .2s linear)
2014-01-03 13:32:13 -05:00
&.disabled, &.ui-slider-disabled
cursor: default
.progress-bar .scrubber-handle
cursor: default
.progress-bar
2014-08-22 20:11:40 -04:00
@include transition(width .0s linear)
2014-01-03 13:32:13 -05:00
position: relative
// Remove gradient background in favor of solid fill
background-color: #67A4C8
//background-image: none // gradient looks kind of cool though; keep it in
.scrubber-handle
cursor: pointer
2014-01-03 13:32:13 -05:00
position: absolute
right: -16px
top: -9px
background: transparent url(/images/level/playback_thumb.png)
width: 32px
height: 32px
// z: above the gradient line bordering the playback bar
z-index: 6
2014-01-03 13:32:13 -05:00
.ui-slider-handle
height: 100%
visibility: hidden
border: 0
top: 0
margin-left: -11px
margin-right: -11px
// Don't load jQuery UI background image here
background: transparent none