diff options
author | raylu <raylu@gridium.com> | 2013-10-21 23:04:33 -0700 |
---|---|---|
committer | raylu <raylu@gridium.com> | 2013-10-21 23:04:33 -0700 |
commit | 48d146a1cb0aa0cd90cbcc0236a84754615fe7d6 (patch) | |
tree | b4450d665971d9cef1375db4db7dee667bec20aa /web | |
parent | 413de1312131aac85dcb086c73f4c4a326b66398 (diff) | |
download | ykill-48d146a1cb0aa0cd90cbcc0236a84754615fe7d6.tar.xz |
touch up styles on right side of kill
victim, attackers
Diffstat (limited to 'web')
-rw-r--r-- | web/static/css/base.ccss | 11 | ||||
-rw-r--r-- | web/static/css/kill.ccss | 41 | ||||
-rw-r--r-- | web/static/js/kill.js | 10 |
3 files changed, 44 insertions, 18 deletions
diff --git a/web/static/css/base.ccss b/web/static/css/base.ccss index eb10d96..1142021 100644 --- a/web/static/css/base.ccss +++ b/web/static/css/base.ccss @@ -22,10 +22,13 @@ form: border: 1px solid #cdd padding: 5px 10px -td: - white-space: nowrap - overflow: hidden - text-overflow: ellipsis +table: + border-collapse: collapse + + td: + white-space: nowrap + overflow: hidden + text-overflow: ellipsis .clear: clear: both diff --git a/web/static/css/kill.ccss b/web/static/css/kill.ccss index a6aa9cf..3e09ba7 100644 --- a/web/static/css/kill.ccss +++ b/web/static/css/kill.ccss @@ -44,41 +44,64 @@ table#victim: float: right table-layout: fixed - width: 388px + width: 336px + background-color: #181818 + + td:nth-child(1): + width: 65px + line-height: 0 + td:nth-child(2): + width: 271px + padding-left: 8px table#attackers: float: right table-layout: fixed - width: 388px + width: 336px + margin-top: 10px td: height: 64px &:nth-child(1): - width: 66px + width: 33px white-space: normal + line-height: 0 &:nth-child(2): width: 200px + padding-left: 5px &:nth-child(3): - width: 32px + width: 33px white-space: normal - &:nth-child(3): - width: 50px + line-height: 0 + &:nth-child(4): + width: 70px + text-align: right + padding-right: 8px + + tr:nth-child(even): + background-color: #181818 table#items: table-layout: fixed - width: 460px + width: 500px + margin-top: 10px th:nth-child(1): - width: 32px + width: 33px th:nth-child(2): - width: 300px + width: 417px th:nth-child(3): width: 50px .slot: background-color: #222 + padding: 2px 8px + tr:nth-child(odd): background-color: #181818 + + td:nth-child(1):not(.slot): + line-height: 0 td:nth-child(3): text-align: right font-weight: bold diff --git a/web/static/js/kill.js b/web/static/js/kill.js index 8b3dc7b..b026722 100644 --- a/web/static/js/kill.js +++ b/web/static/js/kill.js @@ -130,14 +130,14 @@ window.addEvent('domready', function() { function show_attacker(table, char) { var tr = new Element('tr'); - var td = new Element('td').adopt( - ykill.portrait(char['character_id'], char['character_name'], 'character', '_32.jpg'), - ykill.portrait(char['corporation_id'], char['corporation_name'], 'corporation', '_32.png') - ); + var td = new Element('td'); + td.grab(ykill.portrait(char['character_id'], char['character_name'], 'character', '_32.jpg')); if (char['alliance_id']) td.grab(ykill.portrait(char['alliance_id'], char['alliance_name'], 'alliance', '_32.png')); - if (char['faction_id']) + else if (char['faction_id']) td.grab(ykill.portrait(char['faction_id'], char['faction_name'], 'alliance', '_32.png')); + else + td.grab(ykill.portrait(char['corporation_id'], char['corporation_name'], 'corporation', '_32.png')); tr.grab(td); td = new Element('td'); |