mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
d77625bc77
* Tweak API doc behavior and styling * Instead of moving to the left during active dialogues, just move to the top * Allow pointer events * Adjust close button * Re-enable pinning API docs for game-dev and web-dev levels * Make sidebar in PlayGameDevLevelView stretch, better layout columns * Set up content of PlayGameDevLevelView sidebar to scroll * Add rest of PlayGameDevLevelView sidebar content, rework what loading looks like * Finish PlayGameDevLevelView * Add share area below * Cover the brown background, paint it gray * Tweak PlayGameDevLevelView * Have progress bar show everything * Fix Surface resize handling * Fix PlayGameDevLevelView resizing incorrectly when playing * Add GameDevVictoryModal to PlayGameDevLevelView * Don't show missing-doctype annotation in Ace * Hook up GameDevVictoryModal copy button * Fix onChangeAnnotation runtime error * Fix onLevelLoaded runtime error * Have CourseVictoryModal link to /courses when course is done * Trim, update CourseDetailsView * Remove last vestiges of teacherMode * Remove giant navigation buttons at top * Quick switch to flat style * Add analytics for game-dev * Update Analytics events for gamedev * Prefix event names with context * Send to Mixpanel * Include more properties * Mostly set up indefinite play and autocast for game-dev levels * Set up cast buttons and shortcut for game-dev * Add rudimentary instructions when students play game-dev levels * Couple tweaks * fix a bit of code that expects frames to always stick around * have PlayGameDevLevelView render a couple frames on load * API Docs use 'game' instead of 'hero' * Move tags to head without combining * Add HTML comment-start string Fixes missing entry point arrows * Fix some whitespace
160 lines
3.8 KiB
Sass
160 lines
3.8 KiB
Sass
@import "app/styles/mixins"
|
|
@import "app/styles/bootstrap/variables"
|
|
|
|
#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
|
|
width: 55%
|
|
height: 60px
|
|
padding-top: 17px
|
|
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%))
|
|
|
|
button
|
|
font-size: 26px
|
|
margin-left: 10px
|
|
background: transparent
|
|
@include opacity(0.75)
|
|
color: $playback-button-color
|
|
text-shadow: 1px 1px 0px black
|
|
|
|
.glyphicon
|
|
position: relative
|
|
|
|
button:hover
|
|
@include opacity(1)
|
|
|
|
#play-button, #volume-button, #music-button
|
|
float: left
|
|
position: relative
|
|
|
|
#music-button
|
|
@include opacity(0.5)
|
|
span
|
|
position: relative
|
|
left: -3px
|
|
top: -2px
|
|
&:hover
|
|
@include opacity(0.75)
|
|
&.music-on
|
|
@include opacity(0.75)
|
|
&:hover
|
|
@include opacity(1)
|
|
|
|
#play-button, #volume-button
|
|
.glyphicon
|
|
display: none
|
|
|
|
#settings-button
|
|
padding-left: 4px
|
|
padding-right: 4px
|
|
|
|
#playback-settings
|
|
float: right
|
|
position: relative
|
|
margin-right: 10px
|
|
ul button
|
|
margin: 0 10px
|
|
li:hover
|
|
background: #add8e6
|
|
|
|
#play-button.disabled .glyphicon
|
|
@include opacity(0.75)
|
|
#play-button.playing .glyphicon-pause
|
|
display: inline-block
|
|
#play-button.paused .glyphicon-play
|
|
display: inline-block
|
|
#play-button.ended .glyphicon-repeat
|
|
display: inline-block
|
|
|
|
#volume-button.vol-up .glyphicon.glyphicon-volume-up
|
|
display: inline-block
|
|
#volume-button.vol-off .glyphicon.glyphicon-volume-off
|
|
display: inline-block
|
|
@include opacity(0.75)
|
|
&:hover
|
|
@include opacity(1)
|
|
#volume-button.vol-down .glyphicon.glyphicon-volume-down
|
|
display: inline-block
|
|
|
|
.scrubber
|
|
position: absolute
|
|
left: 170px
|
|
top: 21px
|
|
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
|
|
|
|
.progress
|
|
float: left
|
|
width: 100%
|
|
height: 12px
|
|
cursor: pointer
|
|
overflow: visible
|
|
border: 1px solid #444
|
|
background: rgb(80, 67, 53)
|
|
border-radius: 6px
|
|
border: 0
|
|
// Can't do this transition because handle then jitters, but would be good for streaming.
|
|
//@include transition(width .2s linear)
|
|
|
|
&.disabled, &.ui-slider-disabled
|
|
cursor: default
|
|
|
|
.progress-bar .scrubber-handle
|
|
cursor: default
|
|
|
|
.progress-bar
|
|
@include transition(width .0s linear)
|
|
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
|
|
|
|
.scrubber-handle
|
|
cursor: pointer
|
|
position: absolute
|
|
right: -18px
|
|
top: -11px
|
|
background: transparent url(/images/level/scrubber_knob.png)
|
|
background-size: contain
|
|
width: 36px
|
|
height: 36px
|
|
|
|
.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
|