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

93 lines
2 KiB
Sass
Raw Normal View History

2014-03-14 20:06:08 -04:00
@import "app/styles/mixins"
@import "app/styles/bootstrap/variables"
2014-03-14 20:06:08 -04:00
@mixin wing-background($url: '', $backgroundPosition: left)
background: black
background-image: url($url)
2014-03-14 20:06:08 -04:00
background-repeat: no-repeat
background-position: top $backgroundPosition
background-size: contain
2014-03-14 20:06:08 -04:00
#level-loading-view
color: blue
width: 100%
height: 100%
position: absolute
z-index: 20
$UNVEIL_TIME: 1.2s
2014-04-09 12:04:59 -04:00
&.unveiled
pointer-events: none
2014-03-14 20:06:08 -04:00
.loading-details
position: absolute
top: 20px
left: 50%
$WIDTH: 1000px
width: $WIDTH
min-height: 60px
2014-03-14 20:06:08 -04:00
margin-left: (-$WIDTH / 2)
z-index: 100
2014-03-17 03:05:45 -04:00
background-color: rgba(220, 255, 230, 0.6)
color: darkslategray
font-size: 15px
2014-03-14 20:06:08 -04:00
border-radius: 30px
padding: 10px
text-align: center
// http://matthewlein.com/ceaser/ Bounce down a bit, then snap up.
@include transition(top $UNVEIL_TIME cubic-bezier(0.285, -0.595, 0.670, -0.600))
2014-03-14 20:06:08 -04:00
.load-progress
2014-03-17 03:05:45 -04:00
position: absolute
left: 2%
top: 0px
opacity: 0.6
width: 96%
2014-09-21 18:52:49 -04:00
height: 40px
2014-03-17 03:05:45 -04:00
margin: 10px auto 0
2014-03-14 20:06:08 -04:00
2014-09-21 18:52:49 -04:00
.progress
height: 100%
.progress-bar
width: 1%
height: 100%
transition-duration: 0
&.active .progress-bar
2014-09-21 18:52:49 -04:00
transition-duration: 1.2s
2014-03-17 03:05:45 -04:00
#tip-wrapper
position: relative
z-index: 2
2014-09-21 18:52:49 -04:00
top: 10px
.level-loading-goals
margin: 30px auto 10px
width: 400px
.panel-heading
font-size: 24px
.list-group-item
font-size: 20px
2014-03-14 20:06:08 -04:00
.start-level-button
2014-09-21 18:52:49 -04:00
font-size: 40px
font-variant: small-caps
2014-03-14 20:06:08 -04:00
.left-wing, .right-wing
2014-03-14 22:44:19 -04:00
width: 100%
2014-03-14 20:06:08 -04:00
height: 100%
position: absolute
.left-wing
@include wing-background('/images/level/loading_left_wing.png', right)
2014-03-14 22:44:19 -04:00
left: -50%
@include transition(all $UNVEIL_TIME ease)
2014-03-14 20:06:08 -04:00
.right-wing
@include wing-background('/images/level/loading_right_wing.png', left)
2014-03-14 22:44:19 -04:00
right: -50%
@include transition(all $UNVEIL_TIME ease)