tweak scoreboard

This commit is contained in:
Neale Pickett 2012-02-02 16:51:19 -07:00
parent eb9786e45d
commit a88ae62c40
3 changed files with 27 additions and 7 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
*# *#
*.pyc *.pyc
*.o *.o
bin/ ./bin/
build/ build/
cache/ cache/
target/ target/

View File

@ -134,7 +134,7 @@ BEGIN {
# Now we can start writing the document # Now we can start writing the document
print "<!DOCTYPE html>" print "<!DOCTYPE html>"
print "<html>" print "<html class=\"scoreboard\">"
print " <head>" print " <head>"
print " <title>Scoreboard</title>" print " <title>Scoreboard</title>"
print " <link rel=\"stylesheet\" href=\"ctf.css\" type=\"text/css\">" print " <link rel=\"stylesheet\" href=\"ctf.css\" type=\"text/css\">"
@ -242,8 +242,7 @@ BEGIN {
print " </tr>" print " </tr>"
print " </table>" print " </table>"
print " <canvas id=\"chart\" width=\"800\" height=\"300\"></canvas>" print " <canvas id=\"chart\" width=\"1024\" height=\"240\"></canvas>"
print " <p><a href=\"scoring.html\">About scoring</a></p>"
print " </body>" print " </body>"
print "</html>" print "</html>"
} }

View File

@ -46,7 +46,7 @@ h1:first-child {
h1:first-child:before { h1:first-child:before {
letter-spacing: -0.1em; letter-spacing: -0.1em;
content: "NSM FIRE: "; content: "Tracer FIRE: ";
} }
/**** body ****/ /**** body ****/
@ -134,10 +134,31 @@ nav li + li:before {
text-align: center; text-align: center;
} }
#scoreboard td { /* Scoreboard stuff */
height: 300px;
.scoreboard, .scoreboard body {
height: 100%;
margin: 0;
padding: 0;
max-width: none;
} }
#scoreboard {
height: 60%;
font-size: 75%;
}
#scoreboard td {
height: 100%;
}
#chart {
height: 30%;
width: 100%;
}
/* Tanks stuff */
#battlefield { #battlefield {
border: 2px solid green; border: 2px solid green;
} }