From: Ant Zucaro Date: Sat, 7 Mar 2015 14:00:09 +0000 (-0500) Subject: Use the correct overflow for the ranks row. Percentages too! X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fe1063858586ce846d8747c212ebba4cc5ee5f57;p=xonotic%2Fxonstat.git Use the correct overflow for the ranks row. Percentages too! --- diff --git a/xonstat/static/css/app.css b/xonstat/static/css/app.css index 64dd598..2fdcc01 100644 --- a/xonstat/static/css/app.css +++ b/xonstat/static/css/app.css @@ -62,10 +62,33 @@ table thead tr th, table thead tr td, table tr th, table tr td { color: #D0D0D0; } +.table-condensed { + table-layout: fixed; + width: 100%; +} + .table-condensed th, .table-condensed td { padding: 4px 5px; } +.w15p { + width: 15%; +} + +.w60p { + width: 60%; +} + +.w25p { + width: 25%; +} + +.no-stretch { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + .top-bar { height: 50px; } @@ -125,7 +148,6 @@ 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); } - /* Footer */ #footer { background: linear-gradient( rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 95% ); @@ -148,13 +170,6 @@ table thead tr th, table thead tr td, table tr th, table tr td { margin-left: 0; } -.statline { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 0.9rem; - position: relative; - top: -20px; -} - #title { color: #08C; font-size: 1.8rem; @@ -163,3 +178,16 @@ table thead tr th, table thead tr td, table tr th, table tr td { text-align: center; text-shadow: 2px 2px 3px #333; } + +.statline { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 0.9rem; + position: relative; + top: -20px; +} + +.nostretch { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index fc7197c..05682b1 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -27,7 +27,7 @@ ##### RANKS ##### % if len(ranks) < 4:
-
+

You don't seem to have any ranks yet.

@@ -36,7 +36,7 @@
% for rs in ranks[:4]: % if len(rs) > 0: -
+
% if rs[0].game_type_cd == 'duel':
Duel Ranks
% elif rs[0].game_type_cd == 'ctf': @@ -47,12 +47,12 @@
TDM Ranks
% endif - +
- - - + + + @@ -60,7 +60,7 @@ % for r in rs: - + <% i = i+1 %> @@ -77,14 +77,14 @@ ##### ACTIVE PLAYERS #####
-
+
Most Active Players
#NickElo#NickElo
${i}${r.nick_html_colors()|n}${r.nick_html_colors()|n} ${int(round(r.elo))}
- - - + + + @@ -97,7 +97,7 @@ % else: % endif - + <% i = i+1 %> % endfor @@ -107,14 +107,14 @@ ##### ACTIVE SERVERS ##### -
+
Most Active Servers
#NickPlay Time#NickPlay Time
${nick|n}${alivetime}${alivetime}
- - - + + + @@ -123,9 +123,9 @@ % if server_id != '-': - + % else: - + % endif @@ -137,14 +137,14 @@ ##### ACTIVE MAPS ##### -
+
Most Active Maps
#ServerGames#ServerGames
${i}${name}${name}${name}${name}${count}
- - - + + + @@ -153,9 +153,9 @@ % if map_id != '-': - + % else: - + % endif @@ -166,14 +166,14 @@ -

*Most active stats are from the past 7 days

+

*Most active stats are from the past 7 days

##### RECENT GAMES ##### % if len(recent_games) > 0:
-
+

Recent Games

#MapGames#MapGames
${i}${name}${name}${name}${name}${count}
@@ -189,7 +189,7 @@ % for rg in recent_games: - +
viewview ${rg.server_name} ${rg.map_name}