From 4c5d2e4afe02479dcfb770fa1d6cfccb499e4fff Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 13 Oct 2023 19:59:06 +0200 Subject: Clean up stylesheet and improve layout on small and large screens. Use variables for color theming. --- views/stats.pug | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'views/stats.pug') 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 -- cgit v1.2.3