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

161 lines
3.8 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
$playback-button-color: rgb(248, 197, 146)
// When 75% alpha, it will look like the rgb(194, 154, 114) from Heald's design
2014-01-03 13:32:13 -05:00
width: 55%
height: 60px
padding-top: 17px
2014-01-03 13:32:13 -05:00
position: relative
background: transparent url(/images/level/scrubber_background.png)
background-size: 100% 100%
// Counteract 50px height of absolutely positioned control bar, but overlap by 10px of jagged transparent top.
margin-top: 50px - 10px
z-index: 3
&.controls-disabled
pointer-events: none
@include filter(brightness(50%))
2014-01-03 13:32:13 -05:00
button
font-size: 26px
margin-left: 10px
background: transparent
@include opacity(0.75)
color: $playback-button-color
text-shadow: 1px 1px 0px black
.glyphicon
2014-01-03 13:32:13 -05:00
position: relative
button:hover
@include opacity(1)
2014-01-03 13:32:13 -05:00
#play-button, #volume-button, #music-button
float: left
position: relative
#music-button
@include opacity(0.5)
span
position: relative
left: -3px
top: -2px
2014-01-03 13:32:13 -05:00
&:hover
@include opacity(0.75)
2014-01-03 13:32:13 -05:00
&.music-on
@include opacity(0.75)
2014-01-03 13:32:13 -05:00
&:hover
@include opacity(1)
2014-01-03 13:32:13 -05:00
#play-button, #volume-button
.glyphicon
2014-01-03 13:32:13 -05:00
display: none
#settings-button
padding-left: 4px
padding-right: 4px
2014-01-03 13:32:13 -05:00
#playback-settings
float: right
position: relative
margin-right: 10px
ul button
2014-01-03 13:32:13 -05:00
margin: 0 10px
li:hover
background: #add8e6
#play-button.disabled .glyphicon
@include opacity(0.75)
#play-button.playing .glyphicon-pause
2014-01-03 13:32:13 -05:00
display: inline-block
#play-button.paused .glyphicon-play
2014-01-03 13:32:13 -05:00
display: inline-block
#play-button.ended .glyphicon-repeat
2014-01-03 13:32:13 -05:00
display: inline-block
#volume-button.vol-up .glyphicon.glyphicon-volume-up
2014-01-03 13:32:13 -05:00
display: inline-block
#volume-button.vol-off .glyphicon.glyphicon-volume-off
2014-01-03 13:32:13 -05:00
display: inline-block
@include opacity(0.75)
2014-01-03 13:32:13 -05:00
&:hover
@include opacity(1)
#volume-button.vol-down .glyphicon.glyphicon-volume-down
2014-01-03 13:32:13 -05:00
display: inline-block
.scrubber
position: absolute
left: 170px
top: 21px
2014-01-03 13:32:13 -05:00
bottom: 0px
right: 175px
background: rgb(3, 3, 3)
height: 28px
border: 1px solid rgb(67, 67, 44)
border-radius: 14px
.scrubber-inner
border: 1px solid rgb(44, 38, 29)
width: 100%
height: 100%
border-radius: 14px
padding: 6px 8px
2014-01-03 13:32:13 -05:00
.progress
float: left
width: 100%
height: 12px
2014-01-03 13:32:13 -05:00
cursor: pointer
overflow: visible
border: 1px solid #444
background: rgb(80, 67, 53)
border-radius: 6px
2014-01-03 13:32:13 -05:00
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: rgb(245, 170, 49)
border: 1px solid rgb(62, 45, 16)
border-radius: 6px
2014-01-03 13:32:13 -05:00
.scrubber-handle
cursor: pointer
2014-01-03 13:32:13 -05:00
position: absolute
right: -18px
top: -11px
background: transparent url(/images/level/scrubber_knob.png)
background-size: contain
width: 36px
height: 36px
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
body.ipad #playback-view
// Counteract 50px height of absolutely positioned control bar, but overlap by 20px of jagged transparent top.
margin-top: 50px - 30px
#playback-settings
display: none
.scrubber
right: 25px