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

311 lines
7.3 KiB
Sass
Raw Normal View History

2014-01-03 13:32:13 -05:00
@import "app/styles/bootstrap/mixins"
@import "app/styles/mixins"
2014-01-03 13:32:13 -05:00
#thang-hud.no-selection
.center
> *
display: none
.no-selection-message
//display: block // we fade this in
margin: auto
width: 100%
height: 100%
text-align: center
background: transparent url(/images/level/no_selection_pointer.png) no-repeat 50% 40%
background-size: 40px 37px
@include opacity(75)
&:hover
@include opacity(100)
div
padding-top: 70px
font-size: 14px
#thang-hud
width: 55%
height: 120px
position: relative
2014-01-03 13:32:13 -05:00
.left-wing
position: absolute
width: 50%
height: 100%
left: 0
top: 0
z-index: 0
2014-01-03 13:32:13 -05:00
background-image: url(/images/level/hud_left_wing.png)
background-position: right
.right-wing
position: absolute
width: 50%
height: 100%
right: 0
top: 0
z-index: 0
2014-01-03 13:32:13 -05:00
background-image: url(/images/level/hud_right_wing.png)
background-position: left
2014-01-03 13:32:13 -05:00
.center
width: 560px
height: 120px
2014-01-03 13:32:13 -05:00
padding: 4px 20px 0 20px
margin: auto
background-image: url(/images/level/hud_center.png)
color: #BEBEBE
font-size: 12px
overflow: hidden
z-index: 1
position: relative
2014-01-03 13:32:13 -05:00
.no-selection-message
display: none
2014-01-09 14:04:22 -05:00
.thang-canvas-wrapper, .speaker-image-wrapper
2014-01-03 13:32:13 -05:00
width: 100px
height: 100px
margin: 7px 7px 7px 22px
float: left
overflow: hidden
border: 1px solid #888
border-radius: 4px
@include gradient-radial-custom-stops(hsla(205,0%,74%,1), 20%, hsla(205,0%,31%,1), 70%)
2014-01-03 13:32:13 -05:00
&.team-humans
border-color: darkred
@include gradient-radial-custom-stops(hsla(4,80%,74%,1), 20%, hsla(4,80%,51%,1), 70%)
2014-01-03 13:32:13 -05:00
&.team-ogres
border-color: darkblue
@include gradient-radial-custom-stops(hsla(205,100%,74%,1), 20%, hsla(205,100%,31%,1), 70%)
&.team-allies, &.team-minions
border-color: darkgreen
@include gradient-radial-custom-stops(hsla(116,80%,74%,1), 20%, hsla(116,80%,31%,1), 70%)
2014-01-03 13:32:13 -05:00
.thang-props
margin: 8px 8px 0 0
float: left
.thang-props-column
float: left
width: 144px
height: 100px
@include user-select(text)
&.nonexistent
visibility: hidden
.text-prop
width: 50%
2014-03-04 14:15:31 -05:00
.prop-label-icon
$iconSize: 16px
display: inline-block
width: $iconSize
height: $iconSize
margin-right: 5px
background: transparent url(/images/level/hud_info_icons.png) no-repeat
background-size: auto $iconSize
float: left
&.prop-label-icon-pos
background-position-x: -1 * $iconSize
&.prop-label-icon-target
background-position-x: -2 * $iconSize
&.prop-label-icon-collectedThangIDs
2014-03-04 14:15:31 -05:00
background-position-x: -3 * $iconSize
&.prop-label-icon-visualRange
background-position-x: -4 * $iconSize
&.prop-label-icon-attackDamage
background-position-x: -5 * $iconSize
2014-09-04 18:14:27 -04:00
&.prop-label-icon-attackRange, &.prop-label-icon-attackNearbyEnemyRange
2014-03-04 14:15:31 -05:00
background-position-x: -6 * $iconSize
&.prop-label-icon-maxSpeed
background-position-x: -7 * $iconSize
&.prop-label-icon-gold, &.prop-label-icon-bountyGold
2014-03-04 14:15:31 -05:00
background-position-x: -8 * $iconSize
.prop-value.bar-prop
width: 100px
display: inline-block
height: 6px
background: #ddd
border: 1px solid black
border-radius: 6px
overflow: hidden
.bar
background: black
width: 100%
height: 100%
.prop[name="health"] .bar
background: #C5362B
.message
text-align: center
display: table
height: 100%
width: 100%
p
display: table-cell
vertical-align: middle
font-size: 20px
2014-01-03 13:32:13 -05:00
.thang-actions
width: 212px
height: 100px
margin: 8px 24px 8px 0
float: left
overflow-y: auto
2014-01-03 13:32:13 -05:00
overflow-x: hidden
.table-container
position: relative
2014-01-03 13:32:13 -05:00
.progress-indicator
position: absolute
right: 45px
background-color: #fce
z-index: 1
.progress-arrow
width: 14px
height: 6px
top: -6px
// Could put top: 0 to make the arrow go inside, but it doesn't have enough contrast over the bar
right: 39px
background: transparent url(/images/level/action_timeline_indicator.png) no-repeat center
.progress-line
width: 1px
height: 100%
top: 0
background-color: #A4A198
2014-01-03 13:32:13 -05:00
table
border: 1px solid #5B5855
border-radius: 2px
line-height: 17px
width: 100%
2014-01-03 13:32:13 -05:00
tr
border: 1px solid #5b5855
2014-01-03 13:32:13 -05:00
.action-indicator
width: 10px
2014-01-03 13:32:13 -05:00
.action-label
width: 75px
2014-01-03 13:32:13 -05:00
.action-timeline
padding: 0
2014-01-03 13:32:13 -05:00
.timeline-wrapper
position: relative
width: 100%
height: 19px
2014-01-03 13:32:13 -05:00
div
2014-03-10 12:37:05 -04:00
border-radius: 1px
2014-01-03 13:32:13 -05:00
background-color: #6BA1C8
height: 100%
2014-03-10 12:37:05 -04:00
border-bottom: 2px groove darken(#6BA1C8, 30%)
border-right: 1px solid darken(#6BA1C8, 10%)
2014-01-03 13:32:13 -05:00
position: absolute
top: 0
2014-01-03 13:32:13 -05:00
.current-action
font-weight: bold
2014-01-03 13:32:13 -05:00
.action-indicator
background: #4B4133 url(/images/level/current_action_indicator.png) no-repeat center
2014-01-03 13:32:13 -05:00
td
background-color: #4B4133
2014-01-03 13:32:13 -05:00
.dialogue-area
opacity: 0.0
position: relative
height: 100%
width: 100%
z-index: 1
2014-01-03 13:32:13 -05:00
.bubble
position: absolute
left: 140px
right: 8px
top: 8px
bottom: 0px
padding: 10px
color: black
font-weight: bold
background: #FFFFFF
border: black solid 1px
border-radius: 10px
font-size: 14px
line-height: 18px
2014-01-03 13:32:13 -05:00
strong
color: #09B057
.hud-hint
font-weight: normal
color: #999
2014-01-03 13:32:13 -05:00
.enter
position: absolute
right: 7px
bottom: 7px
div.dot
background: #337
width: 8px
height: 8px
position: absolute
right: 8px
top: 9px
border-radius: 5px
2014-01-03 13:32:13 -05:00
button, .alert
padding: 2px 5px
2014-01-03 13:32:13 -05:00
.enter button.with-dot
padding-right: 20px
2014-01-03 13:32:13 -05:00
h3
2014-02-20 14:42:19 -05:00
margin: 0
2014-01-03 13:32:13 -05:00
font-size: 16px
line-height: 16px
color: #338
2014-01-03 13:32:13 -05:00
button
margin-left: 10px
2014-01-03 13:32:13 -05:00
.bubble:after
content: ""
position: absolute
top: 55px
left: -27px
border-style: solid
border-width: 11px 27px 11px 0
border-color: transparent #FFFFFF
display: block
width: 0
z-index: 1
2014-01-03 13:32:13 -05:00
.bubble:before
content: ""
position: absolute
top: 55px
left: -28px
border-style: solid
border-width: 11px 27px 11px 0
border-color: transparent black
display: block
width: 0
z-index: 0