From 9243dd9670537da5396c7f65247cb63165279a0c Mon Sep 17 00:00:00 2001 From: Tyler Mulligan Date: Wed, 29 Jun 2011 23:00:20 -0400 Subject: [PATCH] classified the headers of all scoreboards and tweaked the css a tad for better display --- xonstat/static/css/style.css | 23 ++++++++++++++++++---- xonstat/templates/scoreboard.mako | 32 +++++++++++++++---------------- 2 files changed, 35 insertions(+), 20 deletions(-) diff --git a/xonstat/static/css/style.css b/xonstat/static/css/style.css index ec9ec54..3039127 100755 --- a/xonstat/static/css/style.css +++ b/xonstat/static/css/style.css @@ -1,4 +1,10 @@ -/* html5doctor.com Reset Stylesheet v1.6.1 Last Updated: 2010-09-17 Author: Richard Clark - http://richclarkdesign.com Twitter: @rich_clark */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent; } body { line-height:1; } article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section { display:block; } nav ul { list-style:none; } blockquote, q { quotes:none; } blockquote:before, blockquote:after, q:before, q:after { content:''; content:none; } a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; } /* change colours to suit your needs */ ins { background-color:#ff9; color:#000; text-decoration:none; } /* change colours to suit your needs */ mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; } del { text-decoration: line-through; } abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; } table { border-collapse:collapse; border-spacing:0; } /* change border colour to suit your needs */ hr { display:block; height:1px; border:0; border-top:1px solid #888; margin:1em 0; padding:0; } input, select { vertical-align:middle; } +/* Author: Tyler "-z-" Mulligan + * Notes: Graphics paritially generated from a Xonotic game theme with + * the idea of future support for other game skins to be generated and + * supported by this framework. + * Reset by Richard Clark @ html5doctor.com, v1.6.1 + * Last Updated: 2011-06-29 + */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent; } body { line-height:1; } article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section { display:block; } nav ul { list-style:none; } blockquote, q { quotes:none; } blockquote:before, blockquote:after, q:before, q:after { content:''; content:none; } a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; } /* change colours to suit your needs */ ins { background-color:#C59240; color:#000; text-decoration:none; } /* change colours to suit your needs */ mark { background-color:#B58224; color:#000; font-style:italic; font-weight:bold; } del { text-decoration: line-through; } abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; } table { border-collapse:collapse; border-spacing:0; } /* change border colour to suit your needs */ hr { display:block; height:1px; border:0; border-top:1px solid #888; margin:1em 0; padding:0; } input, select { vertical-align:middle; } @font-face { font-family: 'Xolonium'; @@ -417,7 +423,7 @@ tr.even.blue { margin-bottom: 20px; padding: 10px 7px; box-shadow: 0 0 3px 1px; - min-width:600px; + min-width:700px; } .game h3 { color:#93B1CF; @@ -434,10 +440,19 @@ tr.even.blue { .game th { font-size:10px; padding:2px 5px; - min-width:40px; + min-width:50px; } .game th.nick { - min-width:160px; + text-align:right; + width:160px; + max-width:260px; +} +.game tr { + font-size:14px; +} +.game td:first-child { + text-align:right; + padding-right:8px; } .permalink { float:right; diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index d0444f2..a7da00a 100755 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -35,12 +35,12 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % if game_type_cd == 'dm' or game_type_cd == 'tdm': - Nick - Kills - Deaths - Suicides - Score - Accuracy + Nick + Kills + Deaths + Suicides + Score + Accuracy % endif @@ -63,10 +63,10 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % if game_type_cd == 'ca': - Nick - Kills - Score - Accuracy + Nick + Kills + Score + Accuracy % endif @@ -74,12 +74,12 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % if game_type_cd == 'freezetag': - Nick - Kills - Deaths - Suicides - Score - Accuracy + Nick + Kills + Deaths + Suicides + Score + Accuracy % endif -- 2.39.2