Files
dogfather-universe/workspace/assets/css/cockpit.css
T
DogFatherGitandClaude Opus 5.5 3cd40d4a55 Regie: Cockpit - Zuschauerkurve, Ampel, Moment (H), Beenden halten, Backstage
cockpit.js/.css in der Sendeleiste: Kurve der letzten zehn Minuten,
Ampel aus Ton/Leitung/Rechner mit drittem Ausgang (nicht messbar),
Moment per H oder Knopf - neue Tabelle reaktion_protokoll, Stelle
rechnet der Server, doppelt binnen 2 s = derselbe, nur Regie sieht sie;
Beenden eine Sekunde halten statt Rueckfrage (der Knopf in der Regie
fragt weiter), Backstage-Zeile mit Gefragten und Gaesten. Am kurzen
Handy wartet das Cockpit, bis die Regie zu ist (pruef-reaktion-schmal).
pruef-reaktion 664, Browserprobe cockpit-test 21/21.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:30:53 +01:00

112 lines
5.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* =====================================================================
DAS COCKPIT (03.11.2026) – siehe cockpit.js
Ruhig und augenschonend: keine Signalfarben-Flächen, nur Punkte. Die
einzige Bewegung ist das Füllen beim Halten – über `transform`, also
Arbeit des Compositors (Hausregel 15.10.2026).
===================================================================== */
.cockpit {
position: relative;
display: flex; align-items: center; flex-wrap: wrap;
gap: 8px 10px;
margin-left: auto;
}
.cockpit [hidden],
.cockpit-backstage[hidden] { display: none !important; }
.cockpit-kurve { width: 72px; height: 22px; flex: none; }
.cockpit-kurve polyline { stroke: #8fd3ff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.cockpit-kurve[data-leer="ja"] { opacity: .35; }
.cockpit-ampel {
appearance: none; cursor: pointer;
display: inline-flex; align-items: center; gap: 8px;
min-height: 36px; padding: 0 12px;
border: 1px solid var(--rand-hell); border-radius: 999px;
background: rgba(255, 255, 255, .03);
color: var(--schrift); font: inherit; font-size: .8rem; font-weight: 700;
}
.cockpit-ampel__punkte { display: inline-flex; gap: 3px; }
.cockpit-ampel__punkt { width: 8px; height: 8px; border-radius: 50%; background: #5d5a6e; display: block; }
.cockpit-ampel__punkt[data-stufe="gut"] { background: #6fcf97; }
.cockpit-ampel__punkt[data-stufe="knapp"] { background: #e6c35c; }
.cockpit-ampel__punkt[data-stufe="problem"] { background: #ef7b7b; }
.cockpit-ampel[data-stufe="unbekannt"] .cockpit-ampel__wort { color: var(--schrift-leise); }
.cockpit-ampel__tafel {
position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
min-width: 260px; padding: 10px 12px;
border: 1px solid var(--rand-hell); border-radius: 12px;
background: #0d0c16; box-shadow: 0 20px 50px -20px #000;
display: grid; gap: 6px;
}
.cockpit-ampel__zeile { display: flex; justify-content: space-between; gap: 14px; font-size: .82rem; }
.cockpit-ampel__name { color: var(--schrift-leise); }
.cockpit-ampel__zeile[data-stufe="problem"] .cockpit-ampel__wert { color: #ef9a9a; }
.cockpit-ampel__zeile[data-stufe="knapp"] .cockpit-ampel__wert { color: #ecd38a; }
.cockpit-ampel__zeile[data-stufe="unbekannt"] .cockpit-ampel__wert { color: var(--schrift-leise); }
.cockpit-moment kbd, .cockpit-beenden kbd { margin-left: 4px; font-size: .72rem; opacity: .75; }
.cockpit-moment__zahl {
margin-left: 2px; padding: 0 6px; border-radius: 999px;
background: rgba(230, 195, 92, .16); color: #ecd38a; font-size: .74rem;
}
@media (prefers-reduced-motion: no-preference) {
.cockpit-moment--blitz { animation: cockpit-blitz .5s ease-out; }
@keyframes cockpit-blitz { from { opacity: .55; } to { opacity: 1; } }
}
/* Mit Kennung davor: Die Hausregel `:is(.sg, .sg-teil) .btn` ist stärker
als eine einzelne Klasse und nahm dem Knopf sonst Rand und Farbe. */
#cockpit .cockpit-beenden {
position: relative; overflow: hidden;
border: 1px solid rgba(239, 123, 123, .45);
background: rgba(239, 123, 123, .06);
color: #f3b3b3;
touch-action: none;
user-select: none; -webkit-user-select: none;
}
.cockpit-beenden__wort { position: relative; }
.cockpit-beenden__fuell {
position: absolute; inset: 0;
background: rgba(239, 123, 123, .28);
transform: scaleX(0); transform-origin: left center;
}
.cockpit-beenden[data-halten="ja"] .cockpit-beenden__fuell { transform: scaleX(1); transition: transform 1s linear; }
#cockpit .cockpit-beenden:disabled { opacity: .45; }
.cockpit-sagt { font-size: .78rem; color: var(--schrift-leise); min-height: 1em; }
.cockpit-sagt:empty { display: none; }
.cockpit-backstage {
display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
padding: 8px 16px;
border-bottom: 1px solid var(--rand);
font-size: .82rem;
}
.cockpit-backstage__titel { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--schrift-leise); }
.cockpit-backstage__liste { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.cockpit-backstage__person { display: inline-flex; gap: 6px; align-items: baseline; }
.cockpit-backstage__person span { color: var(--schrift-leise); }
.cockpit-backstage__person[data-art="dabei"] strong { color: #8fd3ff; }
/* Mit dem Finger gibt es keine Tasten. */
@media (pointer: coarse) { .cockpit kbd { display: none; } }
/* AM HANDY ZÄHLT JEDE ZEILE. Gemessen (pruef-reaktion-schmal, 320×568 mit
Lasthinweis): Eine eigene Ampelzeile im geschlossenen Saal schob die drei
großen Knöpfe aus dem Fenster. Deshalb erscheint das Cockpit dort erst,
wenn es etwas zu führen gibt, und in EINER kompakten Zeile. */
@media (max-width: 860px) {
.cockpit { margin-left: 0; width: 100%; flex-wrap: nowrap; gap: 6px; }
.cockpit[data-stand="zu"] { display: none; }
.cockpit-ampel__wort, .cockpit-kurve { display: none; }
.cockpit-ampel, .cockpit .btn { min-height: 44px; }
.cockpit .btn { padding-inline: 10px; }
.cockpit-sagt { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; background: #0d0c16; padding: 4px 8px; border-radius: 8px; }
}
/* Kurze Handys (SE, 568 px): Mit aufgeklappter Regie stehen dort die drei
großen Knöpfe samt „Beenden“ – das Cockpit wartet, bis sie zu ist. */
@media (max-width: 860px) and (max-height: 700px) {
.pult[data-auf="ja"] .cockpit { display: none; }
}