This repository has been archived on 2026-05-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tippspiel/frontend/src/components/DevPanel.module.css
T
Ronny e175bb8804
Build & Deploy Tippspiel / build (push) Successful in 50s
fix: kickoff time centered without 'Uhr', unified countdown badge, DevPanel close button
- Kickoff: centered "21:00" above flags (no 'Uhr' suffix)
- Countdown: always rendered as badge (was unstyled span for <60min)
- DevPanel: added close button (✕) in panel header for reliable closing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:46:53 +02:00

229 lines
5.1 KiB
CSS

/* Dev Panel — floating bottom right */
.wrap {
position: fixed;
bottom: 80px; /* über der Nav-Bar */
right: 16px;
z-index: 9999;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.toggleBtn {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
border-radius: 24px;
background: rgba(254,174,50,0.15);
border: 1px solid rgba(254,174,50,0.3);
color: var(--gold);
font-size: 14px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
transition: all 0.15s;
}
.toggleBtn:hover { background: rgba(254,174,50,0.25); }
.toggleLabel { font-size: 12px; }
/* Panel */
.panel {
width: 300px;
background: #111827;
border: 1px solid rgba(254,174,50,0.2);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
display: flex;
flex-direction: column;
max-height: 80vh;
overflow-y: auto;
}
.panelHeader {
padding: 12px 16px;
background: rgba(254,174,50,0.08);
border-bottom: 1px solid rgba(254,174,50,0.15);
display: flex;
align-items: center;
justify-content: space-between;
}
.closeBtn {
background: none;
border: none;
color: var(--text-muted);
font-size: 16px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
}
.closeBtn:hover {
background: rgba(255,255,255,0.1);
color: var(--text-primary);
}
.panelTitle {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 13px;
font-weight: 700;
color: var(--gold);
letter-spacing: 0.03em;
}
/* Sections */
.section {
padding: 12px 16px;
border-bottom: 1px solid rgba(255,255,255,0.05);
display: flex;
flex-direction: column;
gap: 8px;
}
.section:last-child { border-bottom: none; }
.sectionDisabled { opacity: 0.4; pointer-events: none; }
.sectionLabel {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
}
/* User buttons */
.userButtons { display: flex; flex-direction: column; gap: 6px; }
.userBtn {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: 10px;
background: var(--surface-high);
border: 1px solid transparent;
cursor: pointer;
transition: all 0.15s;
text-align: left;
}
.userBtn:hover { border-color: rgba(75,183,248,0.3); }
.userBtnActive {
background: rgba(75,183,248,0.12);
border-color: rgba(75,183,248,0.4);
}
.userInitial {
width: 28px; height: 28px;
border-radius: 50%;
background: var(--primary-dim);
color: var(--primary);
font-weight: 800;
font-size: 12px;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.userBtnActive .userInitial { background: rgba(75,183,248,0.2); }
.userName { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.userRole { font-size: 10px; color: var(--text-muted); }
/* Select */
.select {
width: 100%;
background: var(--surface-high);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px;
padding: 8px 10px;
font-size: 12px;
color: var(--text-primary);
font-family: inherit;
cursor: pointer;
outline: none;
}
.select:focus { border-color: var(--primary); }
/* Preset grid */
.presetGrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
.presetBtn {
padding: 7px 8px;
border-radius: 8px;
background: var(--surface-high);
border: 1px solid rgba(255,255,255,0.08);
color: var(--text-secondary);
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
text-align: center;
}
.presetBtn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.presetBtn:disabled { opacity: 0.4; cursor: not-allowed; }
.presetBtnLive { color: var(--error) !important; border-color: rgba(248,113,113,0.2) !important; }
.presetBtnDanger { color: #34D399 !important; border-color: rgba(52,211,153,0.2) !important; }
/* Reset */
.resetGrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
/* Tipps-löschen nimmt volle Breite (dritte Zeile) */
.resetBtnTips {
grid-column: 1 / -1;
}
.resetBtn {
padding: 8px 6px;
border-radius: 8px;
background: rgba(75,183,248,0.08);
border: 1px solid rgba(75,183,248,0.18);
color: var(--primary);
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.resetBtn:hover:not(:disabled) { background: rgba(75,183,248,0.16); }
.resetBtn:disabled { opacity: 0.4; cursor: not-allowed; }
/* "Alle Spiele" — etwas warnender */
.resetBtnAll {
background: rgba(254,174,50,0.08);
border-color: rgba(254,174,50,0.2);
color: var(--gold);
}
.resetBtnAll:hover:not(:disabled) { background: rgba(254,174,50,0.16); }
/* Tipps löschen — rot */
.resetBtnTips {
background: rgba(248,113,113,0.08);
border-color: rgba(248,113,113,0.18);
color: var(--error);
}
.resetBtnTips:hover:not(:disabled) { background: rgba(248,113,113,0.18); }
/* Log */
.log {
padding: 10px 16px;
background: rgba(0,0,0,0.2);
border-top: 1px solid rgba(255,255,255,0.05);
}
.logLine {
font-size: 10px;
color: var(--text-muted);
font-family: monospace;
line-height: 1.6;
}