feat: power play indicator with live countdown clock
Shows a red pill below the team rows when a PP is active, displaying the team on the power play and a ticking countdown. PP clock always resyncs from the API (no local anchoring) since 2-minute penalties are short enough that accuracy matters throughout. Removed the old inline PP text from team rows. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -209,6 +209,47 @@ main {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Power Play Indicator ───────────────────────── */
|
||||
|
||||
.pp-indicator {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-top: 0.5rem;
|
||||
padding: 0.35rem 0.5rem;
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.pp-label {
|
||||
font-size: 0.6rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--red);
|
||||
text-transform: uppercase;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pp-team {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.pp-clock {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
color: var(--red);
|
||||
flex-shrink: 0;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ── Hype Meter ─────────────────────────────────── */
|
||||
|
||||
.hype-meter {
|
||||
|
||||
Reference in New Issue
Block a user