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 <noreply@anthropic.com>
This commit is contained in:
+24
-7
@@ -369,7 +369,8 @@ main {
|
|||||||
/* ── Playoff Banner ─────────────────────────────── */
|
/* ── Playoff Banner ─────────────────────────────── */
|
||||||
|
|
||||||
.playoff-banner {
|
.playoff-banner {
|
||||||
display: flex;
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding: 0.875rem 1.25rem;
|
padding: 0.875rem 1.25rem;
|
||||||
@@ -383,6 +384,22 @@ main {
|
|||||||
display: none;
|
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 {
|
.banner-trophy {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
@@ -391,8 +408,8 @@ main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.banner-text {
|
.banner-text {
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-title {
|
.banner-title {
|
||||||
@@ -417,6 +434,7 @@ main {
|
|||||||
margin-top: 0.2rem;
|
margin-top: 0.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
gap: 0.4rem 0.7rem;
|
gap: 0.4rem 0.7rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
color: var(--cup-silver-1);
|
color: var(--cup-silver-1);
|
||||||
@@ -478,13 +496,12 @@ main {
|
|||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.playoff-banner {
|
.playoff-banner {
|
||||||
flex-wrap: wrap;
|
grid-template-columns: 1fr;
|
||||||
|
justify-items: center;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
}
|
}
|
||||||
.banner-notify {
|
.banner-main { grid-column: 1; }
|
||||||
order: 3;
|
.banner-actions { grid-column: 1; justify-self: center; }
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Playoff Game Cards ─────────────────────────── */
|
/* ── Playoff Game Cards ─────────────────────────── */
|
||||||
|
|||||||
+31
-27
@@ -17,35 +17,39 @@
|
|||||||
<span class="header-title">NHL Scoreboard</span>
|
<span class="header-title">NHL Scoreboard</span>
|
||||||
</header>
|
</header>
|
||||||
<section id="playoff-banner" class="playoff-banner hidden" aria-hidden="true">
|
<section id="playoff-banner" class="playoff-banner hidden" aria-hidden="true">
|
||||||
<svg class="banner-trophy" viewBox="0 0 32 40" aria-hidden="true">
|
<div class="banner-main">
|
||||||
<defs>
|
<svg class="banner-trophy" viewBox="0 0 32 40" aria-hidden="true">
|
||||||
<linearGradient id="cup-gold" x1="0" x2="1" y1="0" y2="1">
|
<defs>
|
||||||
<stop offset="0%" stop-color="#f5d76e"/>
|
<linearGradient id="cup-gold" x1="0" x2="1" y1="0" y2="1">
|
||||||
<stop offset="60%" stop-color="#d4af37"/>
|
<stop offset="0%" stop-color="#f5d76e"/>
|
||||||
<stop offset="100%" stop-color="#8a6d1a"/>
|
<stop offset="60%" stop-color="#d4af37"/>
|
||||||
</linearGradient>
|
<stop offset="100%" stop-color="#8a6d1a"/>
|
||||||
</defs>
|
</linearGradient>
|
||||||
<path fill="url(#cup-gold)" d="M6 2h20v4c0 5-2 9-5 11l-1 5h-8l-1-5C8 15 6 11 6 6V2zm4 20h12v3H10v-3zm-2 4h16v3H8v-3zm1 4h14v6H9v-6z"/>
|
</defs>
|
||||||
<rect x="11" y="9" width="10" height="2" fill="#0a1628" opacity="0.35"/>
|
<path fill="url(#cup-gold)" d="M6 2h20v4c0 5-2 9-5 11l-1 5h-8l-1-5C8 15 6 11 6 6V2zm4 20h12v3H10v-3zm-2 4h16v3H8v-3zm1 4h14v6H9v-6z"/>
|
||||||
<rect x="11" y="13" width="10" height="1.5" fill="#0a1628" opacity="0.35"/>
|
<rect x="11" y="9" width="10" height="2" fill="#0a1628" opacity="0.35"/>
|
||||||
</svg>
|
<rect x="11" y="13" width="10" height="1.5" fill="#0a1628" opacity="0.35"/>
|
||||||
<div class="banner-text">
|
</svg>
|
||||||
<div class="banner-title">
|
<div class="banner-text">
|
||||||
STANLEY CUP PLAYOFFS
|
<div class="banner-title">
|
||||||
<span class="banner-year"></span>
|
STANLEY CUP PLAYOFFS
|
||||||
</div>
|
<span class="banner-year"></span>
|
||||||
<div class="banner-meta">
|
</div>
|
||||||
<span class="meta-round"></span>
|
<div class="banner-meta">
|
||||||
<span class="meta-day hidden"></span>
|
<span class="meta-round"></span>
|
||||||
<span class="meta-series"></span>
|
<span class="meta-day hidden"></span>
|
||||||
<span class="meta-elim hidden"></span>
|
<span class="meta-series"></span>
|
||||||
<span class="meta-game7 hidden"></span>
|
<span class="meta-elim hidden"></span>
|
||||||
|
<span class="meta-game7 hidden"></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="banner-bracket-link" href="/bracket">Bracket</a>
|
<div class="banner-actions">
|
||||||
<button class="banner-notify" type="button" title="Notify me on playoff OT" aria-label="Enable OT notifications">
|
<a class="banner-bracket-link" href="/bracket">Bracket</a>
|
||||||
<span class="bell-label">OT alerts</span>
|
<button class="banner-notify" type="button" title="Notify me on playoff OT" aria-label="Enable OT notifications">
|
||||||
</button>
|
<span class="bell-label">OT alerts</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<main>
|
<main>
|
||||||
<section id="pinned-section" class="section pinned-section hidden">
|
<section id="pinned-section" class="section pinned-section hidden">
|
||||||
|
|||||||
Reference in New Issue
Block a user