codecombat/app/styles/play/level/tome/cast_button.sass

156 lines
4 KiB
Sass
Raw Normal View History

@import "app/styles/mixins"
@import "app/styles/bootstrap/variables"
2014-01-03 13:32:13 -05:00
+keyframes(castablePulse)
from
@include box-shadow(0px 0px 8px #333)
color: white
2014-01-03 13:32:13 -05:00
50%
@include box-shadow(0px 0px 35px skyblue)
color: skyblue
2014-01-03 13:32:13 -05:00
to
@include box-shadow(0px 0px 8px #333)
color: white
2014-01-03 13:32:13 -05:00
+keyframes(winnablePulse)
2014-01-03 13:32:13 -05:00
from
@include box-shadow(0px 0px 8px #333)
2014-01-03 13:32:13 -05:00
color: white
50%
@include box-shadow(0px 0px 35px #87CEFF)
color: #87CEFF
2014-01-03 13:32:13 -05:00
to
@include box-shadow(0px 0px 8px #333)
2014-01-03 13:32:13 -05:00
color: white
#cast-button-view
display: none
2014-01-25 18:11:29 -05:00
position: absolute
z-index: 2
width: 100%
border-radius: 6px
2014-01-03 13:32:13 -05:00
background: transparent url(/images/level/code_toolbar_background.png)
background-size: 100% 100%
left: -15px
right: 15px
height: 94px
margin-top: -8px
padding: 20px 2.8%
2014-01-03 13:32:13 -05:00
.btn.btn-illustrated
height: 46px
font-size: 24px
line-height: 24px
width: 45%
width: -webkit-calc(50% - 10px)
width: calc(50% - 10px)
border-style: solid
border-image: url(/images/level/code_toolbar_run_button_active.png) 14 20 20 20 fill round
border-width: 7px 10px 10px 10px
&:active
border-image: url(/images/level/code_toolbar_run_button_active_pressed.png) 14 20 20 20 fill round
padding: 2px 0 0 2px
&.submit-button, &.done-button, &.rank-button
margin-left: 10px
border-image: url(/images/level/code_toolbar_submit_button_active.png) 14 20 20 20 fill round
&:active
border-image: url(/images/level/code_toolbar_submit_button_active_pressed.png) 14 20 20 20 fill round
.ladder-submission-view
width: 45%
width: -webkit-calc(50% - 10px)
width: calc(50% - 10px)
display: inline-block
.btn.btn-illustrated
width: 100%
font-size: 18px
.cast-button
@include opacity(0.77)
2014-01-03 13:32:13 -05:00
&:hover, &.castable
@include opacity(1)
.submit-button > *, .done-button > *
@include opacity(0.9)
&:hover
@include opacity(1)
&:not(.winnable)
.btn.btn-illustrated
&.cast-button.castable
font-weight: bold
@include animation(castablePulse 3s infinite)
border-image: url(/images/level/code_toolbar_run_button_zazz.png) 14 20 20 20 fill round
&:active
border-image: url(/images/level/code_toolbar_run_button_zazz_pressed.png) 14 20 20 20 fill round
&.submit-button
font-size: 16px
&.winnable
.btn.btn-illustrated
&.submit-button, &.done-button
font-weight: bold
@include animation(winnablePulse 3s infinite)
border-image: url(/images/level/code_toolbar_submit_button_zazz.png) 14 20 20 20 fill round
&:active
border-image: url(/images/level/code_toolbar_submit_button_zazz_pressed.png) 14 20 20 20 fill round
&.cast-button
font-size: 16px
html.no-borderimage #cast-button-view
.btn.btn-illustrated
border: 0
background-image: url(/images/level/code_toolbar_run_button_active.png)
background-size: 100% 100%
padding: 7px 10px 10px 10px
&:active
background-image: url(/images/level/code_toolbar_run_button_active_pressed.png)
padding: 9px 8px 8px 12px
border: 0
&.submit-button, &.done-button
2014-12-02 23:01:53 -05:00
background-image: url(/images/level/code_toolbar_submit_button_active.png)
border: 0
&:active
background-image: url(/images/level/code_toolbar_submit_button_active_pressed.png)
border: 0
&:not(.winnable)
.btn.btn-illustrated
&.cast-button.castable
border: 0
background-image: url(/images/level/code_toolbar_run_button_zazz.png)
&:active
background-image: url(/images/level/code_toolbar_run_button_zazz_pressed.png)
&.winnable
.btn.btn-illustrated
&.submit-button, &.done-button
border: 0
background-image: url(/images/level/code_toolbar_submit_button_zazz.png)
&:active
border: 0
background-image: url(/images/level/code_toolbar_submit_button_zazz_pressed.png)