From b923d87f0916d42e6926b32112a217890fb9ea41 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 10 Apr 2015 20:21:04 -0400 Subject: [PATCH] Improved accuracy tabs on the game page. --- xonstat/static/css/app.css | 25 ++++++++ xonstat/templates/game_info.mako | 97 +++++++++++++++----------------- 2 files changed, 70 insertions(+), 52 deletions(-) diff --git a/xonstat/static/css/app.css b/xonstat/static/css/app.css index b9fa560..bdff60b 100644 --- a/xonstat/static/css/app.css +++ b/xonstat/static/css/app.css @@ -144,6 +144,31 @@ table thead tr th, table thead tr td, table tr th, table tr td { box-shadow: 0 0 6px 1px rgba(0, 140, 186, 0.7); } +/* accordion overrides */ +.accordion .accordion-navigation, .accordion dd { + border: 1px solid #222222; + margin-bottom: 5px; +} + +.accordion .accordion-navigation > a, .accordion dd > a { + background: none; + color: #C3C3C3; + font-family: "Xolonium", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 0.8rem; +} + +.accordion .accordion-navigation > .content.active, .accordion dd > .content.active { + background: none; +} + +.accordion .accordion-navigation.active > a, .accordion .accordion-navigation > a:hover { + background: #242424; +} + +ul.accordion { + margin-left: 0; +} + /* Footer */ #footer { background: linear-gradient( rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 95% ); diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index de2acf9..60c5614 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -102,61 +102,54 @@ % endif % if len(captimes) > 0: -
-
-

Best Flag Capture Times

- - +
+
+

Best Flag Capture Times

+
+ + + + + + + + % for pgs in captimes: - - - - - - % for pgs in captimes: - - - - - % endfor - -
NickCaptime
NickCaptime
- % if pgs.player_id > 2: - + + % if pgs.player_id > 2: + + ${pgs.nick_html_colors()|n} + + % else: ${pgs.nick_html_colors()|n} - - % else: - ${pgs.nick_html_colors()|n} - % endif - ${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}
+ % endif + + ${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)} + + % endfor + + +
- -% endif + % endif -% if len(pgstats) > 0 and len(pwstats) > 0: -
-
-

Accuracy Information

- - % endif -
+ % endif % endif -- 2.39.2