From fa09ddcf8a967596e28bb6800541832859af8198 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 24 Dec 2015 12:38:30 -0500 Subject: [PATCH] Teambuilder: Use new icons in teambar --- js/client-teambuilder.js | 4 ++-- style/client.css | 15 +++++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/js/client-teambuilder.js b/js/client-teambuilder.js index 6ccec9f4c..532e28465 100644 --- a/js/client-teambuilder.js +++ b/js/client-teambuilder.js @@ -1424,7 +1424,7 @@ } for (var i = 0; i < this.curSetList.length; i++) { var set = this.curSetList[i]; - var pokemonicon = ''; + var pokemonicon = ''; if (!set.name) { buf += ' '; isAdd = true; @@ -1450,7 +1450,7 @@ this.$('.setcol-icon').css('background-image', Tools.getTeambuilderSprite(set).substr(17)); - this.$('.pokemonicon-' + this.curSetLoc).css('background', Tools.getIcon(set).substr(11)); + this.$('.pokemonicon-' + this.curSetLoc).css('background', Tools.getPokemonIcon(set).substr(11)); var item = Tools.getItem(set.item); if (item.id) { diff --git a/style/client.css b/style/client.css index 265951e0c..f25b2054d 100644 --- a/style/client.css +++ b/style/client.css @@ -2221,16 +2221,20 @@ a.ilink.yours { border: 1px solid #AAAAAA; padding: 0; margin: -1px 2px 0 0; - height: 42px; + height: 44px; float: left; width: 88px; cursor: pointer; white-space: pre; font-size: 8pt; font-family: Verdana, Arial, sans-serif; + overflow: hidden; } -.teambar button .pokemonicon { - margin: 0 auto; +.teambar button span { + margin: -2px auto; + display: block; + width: 40px; + height: 30px; } .teambar button:hover { background: #DCDCDC; @@ -2702,7 +2706,7 @@ a.ilink.yours { .teamchartbox { position: absolute; - top: 40px; + top: 42px; left: 0; bottom: 0; right: 0; @@ -2722,6 +2726,9 @@ a.ilink.yours { .teamchartbox.individual { overflow: visible; } +.teamchartbox.individual .teamchart { + margin-top: -2px; +} .teambuilder-results .result a { border-radius: 4px; cursor: pointer;