From 91bf5a6b2b98ec7e705903642f0c0b2a1bb35bc6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 2 Dec 2024 01:39:18 +0100 Subject: Tweak layout of tournament lists (registrations and active in same group) --- public/style.css | 3 ++- views/head.pug | 14 +++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/public/style.css b/public/style.css index 0792dd1..2707345 100644 --- a/public/style.css +++ b/public/style.css @@ -328,7 +328,8 @@ div.body img { margin: 16px 0; } -.tour_list table { margin: 0 } +.tour_list table { margin: 0; } +.tour_list table + table { margin-top: 24px; } .game_item { border: var(--thin-border); diff --git a/views/head.pug b/views/head.pug index 3792429..7489651 100644 --- a/views/head.pug +++ b/views/head.pug @@ -185,12 +185,8 @@ mixin tourlist(seeds, pools, fin) if (seeds && seeds.length > 0) || (pools && pools.length > 0) || (fin && fin.length > 0) h2 Tournaments div.tour_list - if seeds && seeds.length > 0 - div - +seedlist(seeds, "Registrations") - if pools && pools.length > 0 - div - +poollist(pools, "Active", TM_ICON_ACTIVE) - if fin && fin.length > 0 - div - +poollist(fin, "Finished", TM_ICON_FINISHED) + div + +seedlist(seeds, "Registrations") + +poollist(pools, "Active", TM_ICON_ACTIVE) + div + +poollist(fin, "Finished", TM_ICON_FINISHED) -- cgit v1.2.3