2014-01-03 13:32:13 -05:00
|
|
|
@import "../../../bootstrap/mixins"
|
|
|
|
|
|
|
|
// keyframes mixin from https://gist.github.com/ericam/1607696
|
|
|
|
=keyframes($name)
|
|
|
|
@-webkit-keyframes #{$name}
|
|
|
|
@content
|
|
|
|
@-moz-keyframes #{$name}
|
|
|
|
@content
|
|
|
|
@-ms-keyframes #{$name}
|
|
|
|
@content
|
|
|
|
@-o-keyframes #{$name}
|
|
|
|
@content
|
|
|
|
@keyframes #{$name}
|
|
|
|
@content
|
|
|
|
|
|
|
|
+keyframes(castablePulse)
|
|
|
|
from
|
|
|
|
@include box-shadow(0px 0px 8px #333)
|
|
|
|
50%
|
|
|
|
@include box-shadow(0px 0px 35px skyblue)
|
|
|
|
to
|
|
|
|
@include box-shadow(0px 0px 8px #333)
|
|
|
|
|
|
|
|
+keyframes(castablePulseButton)
|
|
|
|
from
|
|
|
|
color: white
|
|
|
|
50%
|
|
|
|
color: skyblue
|
|
|
|
to
|
|
|
|
color: white
|
|
|
|
|
|
|
|
#cast-button-view
|
2014-01-21 12:03:04 -05:00
|
|
|
display: none
|
2014-01-25 18:11:29 -05:00
|
|
|
position: absolute
|
|
|
|
width: 35%
|
2014-01-21 12:03:04 -05:00
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
.cast-button-group
|
2014-01-21 12:03:04 -05:00
|
|
|
z-index: 2
|
2014-01-29 15:18:37 -05:00
|
|
|
@include opacity(0.77)
|
2014-01-25 18:11:29 -05:00
|
|
|
width: 100%
|
2014-01-29 15:18:37 -05:00
|
|
|
border-radius: 6px
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.button-progress-overlay
|
|
|
|
position: absolute
|
2014-02-19 21:04:37 -05:00
|
|
|
left: -1px
|
|
|
|
top: -1px
|
|
|
|
bottom: -1px
|
2014-01-29 15:18:37 -05:00
|
|
|
border-radius: 6px
|
2014-02-19 21:04:37 -05:00
|
|
|
z-index: 10
|
|
|
|
pointer-events: none
|
2014-01-03 13:32:13 -05:00
|
|
|
// This transition time should roughly match the world progress update interval
|
|
|
|
@include transition(width .2s linear)
|
2014-02-19 21:04:37 -05:00
|
|
|
@include transition(box-shadow .2s linear)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-02-19 21:04:37 -05:00
|
|
|
&.casting .button-progress-overlay
|
|
|
|
background-color: green
|
|
|
|
@include opacity(0.5)
|
|
|
|
@include box-shadow(0px 0px 15px green)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
&:hover, &.castable
|
2014-01-29 15:18:37 -05:00
|
|
|
@include opacity(1)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
&.castable
|
|
|
|
-webkit-animation-name: castablePulse
|
|
|
|
-webkit-animation-duration: 3s
|
|
|
|
-webkit-animation-iteration-count: infinite
|
|
|
|
|
|
|
|
.cast-button
|
|
|
|
font-weight: bold
|
|
|
|
-webkit-animation-name: castablePulseButton
|
|
|
|
-webkit-animation-duration: 3s
|
|
|
|
-webkit-animation-iteration-count: infinite
|
|
|
|
&:not(.castable):not(:hover)
|
|
|
|
.cast-options-button
|
|
|
|
// Mimic the disabled visuals
|
2014-01-29 15:18:37 -05:00
|
|
|
@include opacity(0.65)
|
2014-01-03 13:32:13 -05:00
|
|
|
background-image: none
|
|
|
|
@include box-shadow(none)
|
|
|
|
|
|
|
|
.btn
|
|
|
|
padding: 3px 10px
|
2014-01-29 15:18:37 -05:00
|
|
|
height: 40px
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.cast-button
|
2014-01-29 15:18:37 -05:00
|
|
|
width: 80%
|
|
|
|
width: -webkit-calc(100% - 40px)
|
|
|
|
width: calc(100% - 40px)
|
2014-02-19 21:04:37 -05:00
|
|
|
border-top-left-radius: 6px
|
|
|
|
border-bottom-left-radius: 6px
|
2014-01-29 15:18:37 -05:00
|
|
|
|
2014-02-23 14:23:26 -05:00
|
|
|
@media screen and (max-width: 1440px)
|
|
|
|
font-size: 16px
|
|
|
|
@media screen and (max-width: 1280px)
|
|
|
|
font-size: 14px
|
|
|
|
@media screen and (max-width: 1024px)
|
|
|
|
font-size: 12px
|
|
|
|
|
2014-01-29 15:18:37 -05:00
|
|
|
.cast-options-button
|
|
|
|
width: 20%
|
|
|
|
width: -webkit-calc(40px)
|
|
|
|
width: calc(40px)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.autocast-delays
|
|
|
|
min-width: 0
|
2014-01-29 15:18:37 -05:00
|
|
|
right: 0
|
|
|
|
left: auto
|
2014-01-03 13:32:13 -05:00
|
|
|
li
|
|
|
|
a, .dropdown-menu-header
|
|
|
|
padding: 3px 15px
|
|
|
|
a.selected
|
|
|
|
font-weight: bold
|