Fix for battle backgrounds

This commit is contained in:
Deukhoofd 2016-05-22 17:17:19 +02:00
parent df9cfe99d8
commit 2e1bb22aab
2 changed files with 13 additions and 13 deletions

View File

@ -41,22 +41,22 @@ $side-width = ($battle-width - $screen-width) / 2
narrow-font()
&.battle_bg_0
background-image url("../Sprites/battle/backgrounds/battle_bg.png")
background-size contain
background-size cover
&.battle_bg_1
background-image url("../Sprites/battle/backgrounds/battle_bg_1.png")
background-size contain
background-size cover
&.battle_bg_2
background-image url("../Sprites/battle/backgrounds/battle_bg_2.png")
background-size contain
background-size cover
&.battle_bg_3
background-image url("../Sprites/battle/backgrounds/battle_bg_3.png")
background-size contain
background-size cover
&.battle_bg_4
background-image url("../Sprites/battle/backgrounds/battle_bg_4.png")
background-size contain
background-size cover
&.battle_bg_5
background-image url("../Sprites/battle/backgrounds/battle_bg_5.png")
background-size contain
background-size cover
.battle_user_info
.pokemon_icons
margin 0 auto

View File

@ -294,15 +294,15 @@ h1{font-family:"PT Sans Narrow","Helvetica Neue",sans-serif;font-size:2em;font-w
.select-team .team-pbv{margin-top:-2px}
.no-alt-label{margin-left:5px;color:#aaa}
.battle_window .chat{left:620px}
.battle{position:absolute;top:0;left:0;bottom:0;width:620px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:10px;-webkit-background-size:contain;-moz-background-size:contain;background-size:contain;}
.battle{position:absolute;top:0;left:0;bottom:0;width:620px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:10px;}
.battle h2{font-size:.6875em;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid rgba(0,0,0,0.1);line-height:normal}
.battle .battle_container{position:relative;width:600px;height:300px;font-family:"PT Sans Narrow","Helvetica Neue",sans-serif;}
.battle .battle_container.battle_bg_0{background-image:url("../Sprites/battle/backgrounds/battle_bg.png")}
.battle background-size contain.battle_bg_1{background-image:url("../Sprites/battle/backgrounds/battle_bg_1.png")}
.battle background-size contain.battle_bg_2{background-image:url("../Sprites/battle/backgrounds/battle_bg_2.png")}
.battle background-size contain.battle_bg_3{background-image:url("../Sprites/battle/backgrounds/battle_bg_3.png")}
.battle background-size contain.battle_bg_4{background-image:url("../Sprites/battle/backgrounds/battle_bg_4.png")}
.battle background-size contain.battle_bg_5{background-image:url("../Sprites/battle/backgrounds/battle_bg_5.png")}
.battle .battle_container.battle_bg_0{background-image:url("../Sprites/battle/backgrounds/battle_bg.png");-webkit-background-size:cover;-moz-background-size:cover;background-size:cover}
.battle .battle_container.battle_bg_1{background-image:url("../Sprites/battle/backgrounds/battle_bg_1.png");-webkit-background-size:cover;-moz-background-size:cover;background-size:cover}
.battle .battle_container.battle_bg_2{background-image:url("../Sprites/battle/backgrounds/battle_bg_2.png");-webkit-background-size:cover;-moz-background-size:cover;background-size:cover}
.battle .battle_container.battle_bg_3{background-image:url("../Sprites/battle/backgrounds/battle_bg_3.png");-webkit-background-size:cover;-moz-background-size:cover;background-size:cover}
.battle .battle_container.battle_bg_4{background-image:url("../Sprites/battle/backgrounds/battle_bg_4.png");-webkit-background-size:cover;-moz-background-size:cover;background-size:cover}
.battle .battle_container.battle_bg_5{background-image:url("../Sprites/battle/backgrounds/battle_bg_5.png");-webkit-background-size:cover;-moz-background-size:cover;background-size:cover}
.battle .battle_user_info .pokemon_icons{margin:0 auto;width:80px;}
.battle .battle_user_info .pokemon_icons .icon_wrapper{width:40px;float:left;}
.battle .battle_user_info .pokemon_icons .icon_wrapper:nth-child(even){position:relative;top:6px}