From 2e1bb22aab38ca9d2c795de16996a88a96356f69 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 22 May 2016 17:17:19 +0200 Subject: [PATCH] Fix for battle backgrounds --- client/app/css/battle.styl | 12 ++++++------ public/css/main.css | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client/app/css/battle.styl b/client/app/css/battle.styl index 7535675..c6500f5 100644 --- a/client/app/css/battle.styl +++ b/client/app/css/battle.styl @@ -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 diff --git a/public/css/main.css b/public/css/main.css index da6493c..440fefb 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -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}