From 4ea6b87326f63c2940e169816f9b874ac331caef Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 19 Apr 2026 13:08:27 -0400 Subject: [PATCH] style: center trophy + title + meta within playoff banner Switch the banner to a 3-column grid (1fr auto 1fr) so the main group sits truly centered regardless of the right-side action cluster width. Co-Authored-By: Claude Opus 4.7 --- app/static/styles.css | 31 ++++++++++++++++----- app/templates/index.html | 58 +++++++++++++++++++++------------------- 2 files changed, 55 insertions(+), 34 deletions(-) diff --git a/app/static/styles.css b/app/static/styles.css index d18cb6f..608ba9b 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -369,7 +369,8 @@ main { /* ── Playoff Banner ─────────────────────────────── */ .playoff-banner { - display: flex; + display: grid; + grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.875rem 1.25rem; @@ -383,6 +384,22 @@ main { display: none; } +.banner-main { + grid-column: 2; + display: flex; + align-items: center; + gap: 1rem; + min-width: 0; +} + +.banner-actions { + grid-column: 3; + justify-self: end; + display: flex; + align-items: center; + gap: 0.5rem; +} + .banner-trophy { width: 36px; height: 44px; @@ -391,8 +408,8 @@ main { } .banner-text { - flex: 1; min-width: 0; + text-align: center; } .banner-title { @@ -417,6 +434,7 @@ main { margin-top: 0.2rem; display: flex; flex-wrap: wrap; + justify-content: center; gap: 0.4rem 0.7rem; font-size: 0.75rem; color: var(--cup-silver-1); @@ -478,13 +496,12 @@ main { @media (max-width: 640px) { .playoff-banner { - flex-wrap: wrap; + grid-template-columns: 1fr; + justify-items: center; padding: 0.75rem 1rem; } - .banner-notify { - order: 3; - margin-left: auto; - } + .banner-main { grid-column: 1; } + .banner-actions { grid-column: 1; justify-self: center; } } /* ── Playoff Game Cards ─────────────────────────── */ diff --git a/app/templates/index.html b/app/templates/index.html index 37b8e66..c8ea56f 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -17,35 +17,39 @@ NHL Scoreboard