mirror of https://github.com/dirtbags/moth.git
tweak scoreboard
This commit is contained in:
parent
d356e18e97
commit
6c74cc1f83
|
@ -2,7 +2,7 @@
|
|||
*#
|
||||
*.pyc
|
||||
*.o
|
||||
bin/
|
||||
./bin/
|
||||
build/
|
||||
cache/
|
||||
target/
|
||||
|
|
|
@ -134,7 +134,7 @@ BEGIN {
|
|||
|
||||
# Now we can start writing the document
|
||||
print "<!DOCTYPE html>"
|
||||
print "<html>"
|
||||
print "<html class=\"scoreboard\">"
|
||||
print " <head>"
|
||||
print " <title>Scoreboard</title>"
|
||||
print " <link rel=\"stylesheet\" href=\"ctf.css\" type=\"text/css\">"
|
||||
|
@ -242,8 +242,7 @@ BEGIN {
|
|||
print " </tr>"
|
||||
|
||||
print " </table>"
|
||||
print " <canvas id=\"chart\" width=\"800\" height=\"300\"></canvas>"
|
||||
print " <p><a href=\"scoring.html\">About scoring</a></p>"
|
||||
print " <canvas id=\"chart\" width=\"1024\" height=\"240\"></canvas>"
|
||||
print " </body>"
|
||||
print "</html>"
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ h1:first-child {
|
|||
|
||||
h1:first-child:before {
|
||||
letter-spacing: -0.1em;
|
||||
content: "NSM FIRE: ";
|
||||
content: "Tracer FIRE: ";
|
||||
}
|
||||
|
||||
/**** body ****/
|
||||
|
@ -134,10 +134,31 @@ nav li + li:before {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
#scoreboard td {
|
||||
height: 300px;
|
||||
/* Scoreboard stuff */
|
||||
|
||||
.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 {
|
||||
border: 2px solid green;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue