2014-01-30 15:03:33 -05:00
|
|
|
@import "app/styles/mixins"
|
2014-09-30 19:17:54 -04:00
|
|
|
@import "app/styles/bootstrap/variables"
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-04-11 19:15:26 -04:00
|
|
|
body.is-playing
|
|
|
|
background-color: black
|
|
|
|
|
2014-09-03 21:35:14 -04:00
|
|
|
$level-resize-transition-time: 0.5s
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
#level-view
|
|
|
|
margin: 0 auto
|
|
|
|
@include user-select(none)
|
|
|
|
|
2014-08-23 16:54:52 -04:00
|
|
|
&.real-time
|
|
|
|
// Hmm, somehow the #page-container is cutting us off by ~17px on the right, looks a bit off.
|
|
|
|
|
|
|
|
#canvas-wrapper
|
|
|
|
width: 100%
|
2014-09-25 13:47:53 -04:00
|
|
|
canvas
|
2014-08-23 16:54:52 -04:00
|
|
|
margin: 0 auto
|
2014-09-30 17:25:44 -04:00
|
|
|
#normal-surface
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
margin-left: auto
|
|
|
|
margin-right: auto
|
2014-08-25 17:02:23 -04:00
|
|
|
#control-bar-view
|
2014-08-23 16:54:52 -04:00
|
|
|
width: 100%
|
2014-08-26 01:05:24 -04:00
|
|
|
button, h4
|
|
|
|
display: none
|
2014-09-25 01:23:14 -04:00
|
|
|
&:not(.flags)
|
|
|
|
#playback-view
|
|
|
|
width: 100%
|
|
|
|
&.flags
|
|
|
|
#playback-view
|
|
|
|
$flags-width: 200px
|
|
|
|
width: 90%
|
2014-12-06 14:05:52 -05:00
|
|
|
width: -webkit-calc(100% - 200px)
|
|
|
|
width: calc(100% - 200px)
|
2014-09-25 01:23:14 -04:00
|
|
|
left: $flags-width
|
2014-08-23 16:54:52 -04:00
|
|
|
#code-area, #thang-hud, #goals-view
|
|
|
|
display: none
|
|
|
|
visibility: hidden
|
|
|
|
#gold-view
|
|
|
|
right: 1%
|
2014-11-19 12:01:01 -05:00
|
|
|
@include box-shadow(-1px 1px 10px cyan)
|
|
|
|
.team-gold
|
|
|
|
font-size: 2vw
|
|
|
|
line-height: 2vw
|
|
|
|
img
|
|
|
|
width: 1.8vw
|
|
|
|
heighT: 1.8vw
|
2014-08-23 16:54:52 -04:00
|
|
|
#control-bar-view .title
|
2014-08-24 15:33:46 -04:00
|
|
|
left: 20%
|
|
|
|
width: 60%
|
2014-08-23 16:54:52 -04:00
|
|
|
text-align: center
|
2014-09-22 18:34:25 -04:00
|
|
|
#stop-real-time-playback-button
|
|
|
|
display: block
|
2014-09-30 17:25:44 -04:00
|
|
|
z-index: 20
|
2014-11-08 14:35:25 -05:00
|
|
|
#level-dialogue-view
|
|
|
|
display: none
|
2014-08-23 16:54:52 -04:00
|
|
|
|
|
|
|
.level-content
|
|
|
|
margin: 0px auto
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
.level-content
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
#canvas-wrapper
|
2014-11-02 17:51:01 -05:00
|
|
|
top: 50px
|
2014-01-03 13:32:13 -05:00
|
|
|
width: 55%
|
|
|
|
position: relative
|
2014-05-19 14:31:18 -04:00
|
|
|
overflow: hidden
|
2014-09-03 21:35:14 -04:00
|
|
|
@include transition($level-resize-transition-time ease-out)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-09-25 13:47:53 -04:00
|
|
|
canvas#webgl-surface
|
2014-04-22 14:11:08 -04:00
|
|
|
background-color: #333
|
2014-01-03 13:32:13 -05:00
|
|
|
z-index: 1
|
2014-09-25 13:47:53 -04:00
|
|
|
|
|
|
|
canvas#normal-surface
|
|
|
|
z-index: 1
|
|
|
|
position: absolute
|
|
|
|
top: 0
|
|
|
|
left: 0
|
|
|
|
pointer-events: none
|
|
|
|
|
|
|
|
canvas#webgl-surface, canvas#normal-surface
|
|
|
|
display: block
|
|
|
|
z-index: 2
|
2014-09-03 21:35:14 -04:00
|
|
|
@include transition($level-resize-transition-time ease-out)
|
2014-08-23 20:26:56 -04:00
|
|
|
|
2014-11-23 00:22:46 -05:00
|
|
|
&.grabbable:not(.flag-color-selected)
|
|
|
|
cursor: -moz-grab
|
|
|
|
cursor: -webkit-grab
|
|
|
|
cursor: grab
|
|
|
|
|
|
|
|
&:active
|
|
|
|
cursor: -moz-grabbing
|
|
|
|
cursor: -webkit-grabbing
|
|
|
|
cursor: grabbing
|
|
|
|
|
2014-08-24 19:09:06 -04:00
|
|
|
&.flag-color-selected
|
2014-08-23 20:26:56 -04:00
|
|
|
cursor: crosshair
|
|
|
|
|
2015-02-06 19:54:45 -05:00
|
|
|
#ascii-surface
|
|
|
|
position: absolute
|
|
|
|
z-index: 3
|
|
|
|
top: 0
|
|
|
|
left: 0
|
|
|
|
pointer-events: none
|
|
|
|
white-space: pre
|
|
|
|
font-family: Courier, monospace
|
|
|
|
color: white
|
|
|
|
background-color: rgba(14, 59, 130, 0.25)
|
|
|
|
transform-origin: 0 0 0
|
|
|
|
line-height: 15px
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
min-width: 1024px
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
#code-area
|
|
|
|
@include box-sizing(border-box)
|
2014-11-07 12:08:30 -05:00
|
|
|
padding: 0px 0.9% 10px 1.4%
|
2014-01-03 13:32:13 -05:00
|
|
|
width: 45%
|
|
|
|
background: transparent url(/images/level/wood_texture.png)
|
|
|
|
background-size: 100% 100%
|
|
|
|
position: absolute
|
|
|
|
right: 0
|
|
|
|
top: 0px
|
|
|
|
bottom: 0
|
2014-09-03 21:35:14 -04:00
|
|
|
@include transition(width $level-resize-transition-time ease-in-out, right $level-resize-transition-time ease-in-out)
|
2015-03-25 19:47:11 -04:00
|
|
|
z-index: 2
|
|
|
|
|
|
|
|
#game-area
|
|
|
|
position: relative
|
2014-11-07 19:04:35 -05:00
|
|
|
overflow: hidden
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
// Level Docs
|
|
|
|
.ui-effects-transfer
|
|
|
|
border: 2px dotted gray
|
|
|
|
|
|
|
|
.modal
|
|
|
|
img
|
|
|
|
float: right
|
|
|
|
|
|
|
|
img.diagram
|
|
|
|
float: none
|
|
|
|
|
|
|
|
#multiplayer-join-link
|
|
|
|
font-size: 12px
|
|
|
|
|
|
|
|
// Custom Buttons
|
|
|
|
.btn.banner
|
|
|
|
@include banner-button(#FFF, #333)
|
|
|
|
@include box-shadow(2px 2px 2px rgba(0, 0, 0, 0.5))
|
|
|
|
border: 1px solid black
|
|
|
|
text-shadow: none
|
|
|
|
|
|
|
|
$buttonConfig: 'primary' #6CA8EA, 'info' #71AACC, 'success' #90B236, 'warning' #CD6800, 'danger' #B43C20, 'inverse' #3A537F
|
|
|
|
@each $tuple in $buttonConfig
|
|
|
|
&.btn-#{nth($tuple, 1)}
|
|
|
|
@include banner-button(nth($tuple, 2), #FFF)
|
|
|
|
|
|
|
|
$GI: 0.5 // gradient intensity; can tweak this 0-1
|
|
|
|
|
|
|
|
.gradient
|
|
|
|
position: absolute
|
2014-09-25 00:01:58 -04:00
|
|
|
z-index: 5
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
#code-area-gradient
|
|
|
|
top: 0px
|
|
|
|
width: 3px
|
|
|
|
background: linear-gradient(to right, rgba(0,0,0,0) 0%,rgba(0,0,0,$GI) 100%)
|
|
|
|
left: -3px
|
|
|
|
bottom: 0
|
|
|
|
|
|
|
|
#canvas-left-gradient
|
|
|
|
left: 0px
|
|
|
|
width: 5px
|
|
|
|
background: linear-gradient(to left, rgba(0,0,0,0) 0%,rgba(0,0,0,0.8*$GI) 100%)
|
|
|
|
bottom: -30px
|
|
|
|
top: 0
|
|
|
|
|
|
|
|
#canvas-top-gradient
|
|
|
|
top: 0
|
|
|
|
height: 5px
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
background: linear-gradient(to top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.8*$GI) 100%)
|
|
|
|
|
|
|
|
#hud-left-gradient
|
|
|
|
background: linear-gradient(to right, rgba(0,0,0,$GI) 0%,rgba(0,0,0,0) 100%)
|
|
|
|
left: 0
|
|
|
|
top: 0
|
|
|
|
height: 100%
|
|
|
|
width: 2%
|
|
|
|
|
|
|
|
#hud-right-gradient
|
|
|
|
background: linear-gradient(to right, rgba(0,0,0,0) 0%,rgba(0,0,0,$GI) 100%)
|
|
|
|
right: 0
|
|
|
|
position: absolute
|
|
|
|
top: 0
|
|
|
|
height: 100%
|
|
|
|
width: 2%
|
2014-02-22 20:40:38 -05:00
|
|
|
|
2014-11-23 18:48:08 -05:00
|
|
|
#play-footer
|
|
|
|
text-align: center
|
2014-12-07 20:57:57 -05:00
|
|
|
font-family: $headings-font-family
|
2014-11-23 18:48:08 -05:00
|
|
|
font-variant: small-caps
|
|
|
|
font-size: 25px
|
|
|
|
padding: 10px 0
|
|
|
|
@include transition(opacity .10s linear)
|
|
|
|
@include opacity(0.6)
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
@include opacity(1)
|
|
|
|
|
|
|
|
a
|
|
|
|
@include opacity(0.75)
|
|
|
|
@include transition(opacity .10s linear)
|
|
|
|
color: white
|
|
|
|
|
|
|
|
&:hover, &:active
|
|
|
|
@include opacity(1)
|
|
|
|
|
2014-02-23 14:48:34 -05:00
|
|
|
@media screen and (min-aspect-ratio: 17/10)
|
2014-12-18 23:34:59 -05:00
|
|
|
&:not(.premium)
|
|
|
|
display: none
|
2014-08-14 16:29:57 -04:00
|
|
|
|
2015-02-06 14:17:48 -05:00
|
|
|
#level-footer-shadow
|
|
|
|
position: absolute
|
|
|
|
width: 100%
|
|
|
|
height: 30px
|
|
|
|
background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%)
|
|
|
|
|
2014-08-27 20:26:56 -04:00
|
|
|
#fullscreen-editor-background-screen
|
|
|
|
background-color: black
|
|
|
|
opacity: 0.5
|
|
|
|
cursor: pointer
|
|
|
|
display: none
|
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
bottom: 0
|
|
|
|
top: 0
|
|
|
|
z-index: 19
|
|
|
|
|
2014-09-22 18:34:25 -04:00
|
|
|
#stop-real-time-playback-button
|
|
|
|
display: none
|
|
|
|
position: absolute
|
2014-11-20 20:09:17 -05:00
|
|
|
bottom: 70px
|
2014-09-22 18:34:25 -04:00
|
|
|
right: 15px
|
|
|
|
font-size: 30px
|
|
|
|
|
|
|
|
|
2014-08-14 16:29:57 -04:00
|
|
|
html.fullscreen-editor
|
|
|
|
#level-view
|
2014-08-27 20:26:56 -04:00
|
|
|
#fullscreen-editor-background-screen
|
|
|
|
display: block
|
|
|
|
|
2014-08-14 16:29:57 -04:00
|
|
|
#code-area
|
|
|
|
position: fixed
|
2014-08-27 20:26:56 -04:00
|
|
|
width: 95%
|
2014-08-14 16:29:57 -04:00
|
|
|
height: 100%
|
2014-08-27 20:26:56 -04:00
|
|
|
right: 0
|
2014-09-06 22:50:31 -04:00
|
|
|
|
|
|
|
body.ipad #level-view
|
2014-11-02 17:51:01 -05:00
|
|
|
// Full-width Surface, preserving aspect ratio, with space for control bar.
|
|
|
|
height: 1024px * (589 / 924) + 50px
|
2014-09-06 22:50:31 -04:00
|
|
|
overflow: hidden
|
|
|
|
|
2014-11-23 18:48:08 -05:00
|
|
|
#code-area, #play-footer, #thang-hud
|
2014-09-06 22:50:31 -04:00
|
|
|
display: none
|
|
|
|
|
|
|
|
#level-chat-view
|
2014-11-02 18:22:22 -05:00
|
|
|
bottom: 40px
|
2014-09-06 22:50:31 -04:00
|
|
|
|
|
|
|
#playback-view
|
|
|
|
background-color: transparent
|
|
|
|
z-index: 3
|
2014-11-02 18:22:22 -05:00
|
|
|
bottom: 30px
|
2014-09-06 22:50:31 -04:00
|
|
|
|
|
|
|
button
|
|
|
|
background-color: #333
|
|
|
|
|
|
|
|
.scrubber .progress
|
|
|
|
background-color: rgba(255, 255, 255, 0.4)
|
|
|
|
|
|
|
|
#canvas-wrapper, #control-bar-view, #playback-view, #thang-hud
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
#canvas-wrapper
|
|
|
|
height: 653px
|
|
|
|
|
2014-09-25 13:47:53 -04:00
|
|
|
canvas
|
2014-09-06 22:50:31 -04:00
|
|
|
margin: 0 auto
|
|
|
|
overflow: hidden
|
2015-02-06 14:17:48 -05:00
|
|
|
|
|
|
|
#level-footer-background
|
|
|
|
display: none
|
|
|
|
position: absolute
|
|
|
|
background: transparent url(/images/level/footer_background.jpg) no-repeat
|
|
|
|
bottom: 0
|
|
|
|
width: 100%
|
|
|
|
background-size: 100% 400px
|
|
|
|
height: 400px
|
|
|
|
z-index: -9001
|
|
|
|
@include opacity(0.25)
|