summaryrefslogtreecommitdiff
path: root/views/stats.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-13 19:59:06 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-13 22:41:09 +0200
commit4c5d2e4afe02479dcfb770fa1d6cfccb499e4fff (patch)
tree9206a2c5472c5c1480ad5c035b776a74d74a602f /views/stats.pug
parent5cdc7862b20c8642a235e8ea46686939e5f6032a (diff)
downloadserver-4c5d2e4afe02479dcfb770fa1d6cfccb499e4fff.tar.gz
Clean up stylesheet and improve layout on small and large screens.
Use variables for color theming.
Diffstat (limited to 'views/stats.pug')
-rw-r--r--views/stats.pug5
1 files changed, 2 insertions, 3 deletions
diff --git a/views/stats.pug b/views/stats.pug
index 6c8a268..ececb85 100644
--- a/views/stats.pug
+++ b/views/stats.pug
@@ -5,18 +5,17 @@ html
include head
title Game Statistics
style.
- table { min-width: auto; margin-bottom: 30px; }
+ table { margin-bottom: 30px; }
td:not(:first-child) { text-align: right; }
th:not(:first-child) { text-align: right; }
td:not(:first-child) { width: 50px; }
- td:first-child { width: 400px; }
body
include header
article
h1 Game Statistics
- function p(t,r) { return r > 0 ? Math.round(r*100/t) + "%" : "" }
each row in stats
- table
+ table.half.striped
thead
tr
th