diff --git a/README.md b/README.md index a429548..3e74b02 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,5 @@ Umschaltbar, Persistenz via `localStorage` (`breakout.options`): - Combo-Sound: Tonhöhe steigt mit jedem Stein in der Combo-Kette - Combo-Multiplikator, Leben, Level, Steine mit Hitpoints - Power-up-HUD mit Countdown-Balken, Highscore-Top-5 via `localStorage` (Beim Game Over einsortiert) +- Breites Fenster (ab 940 px): Statuswerte (Punkte/Bestwert/Level/Combo/Leben) als Liste links, aktive Power-ups + Legende immer offen rechts; schmale/niedrige Fenster stapeln alles unter das Spielfeld - Automatische Skalung: Spielfeld löst Fensterbreite und -höhe gemeinsam auf, UI skaliert proportional, HiDPI-scharf, Kompakt-Modus bei niedrigen Fenstern diff --git a/index.html b/index.html index bf980dc..6f6553d 100644 --- a/index.html +++ b/index.html @@ -114,8 +114,9 @@ #msg .accent { color: var(--green); } #dims { font-variant-numeric: tabular-nums; color: var(--dim); } - #foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: calc(11.5px * var(--s)); color: var(--muted); flex-wrap: wrap; } - #actions { margin-left: auto; display: flex; gap: 8px; } + #foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: calc(11.5px * var(--s)); color: var(--muted); flex-wrap: nowrap; } + #foot .info { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + #actions { margin-left: auto; display: flex; gap: 8px; flex: none; white-space: nowrap; } button { font-family: var(--font); font-size: calc(11.5px * var(--s)); color: var(--text); background: var(--chip); border: 1px solid var(--border-2); @@ -125,8 +126,18 @@ button:hover { background: #16203a; border-color: var(--green); } button:active { transform: translateY(1px); } - details { margin-top: 10px; } - summary { font-size: calc(12px * var(--s)); color: var(--muted); cursor: pointer; } + #main { display: block; } + #side { margin-bottom: 8px; } + #rail { margin-top: 10px; } + body.cols #main { display: flex; align-items: flex-start; gap: 10px; } + body.cols #side { flex: none; width: calc(148px * var(--s)); margin: 0; } + body.cols #rail { flex: none; width: calc(238px * var(--s)); margin: 0; } + body.cols #strip { flex-direction: column; align-items: stretch; gap: calc(6px * var(--s)); margin-left: 0; } + body.cols .pill { border-radius: 10px; justify-content: space-between; } + body.cols #wrap { flex: 1 1 0; min-width: 0; width: auto; } + body.cols #pu-legend { grid-template-columns: 1fr; } + body.cols #fxbar { flex-direction: column; align-items: flex-start; gap: calc(6px * var(--s)); } + #legend .ltitle { font-size: calc(12px * var(--s)); color: var(--muted); margin: 4px 0 6px; } #pu-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin-top: 10px; } .card { display: flex; gap: 9px; align-items: center; @@ -143,7 +154,7 @@ .card .d { font-size: calc(11px * var(--s)); color: var(--dim); margin-top: 2px; } /* sehr niedrige Fenster: Kopf/Links ausblenden, Spielfeld bekommt den Platz */ - body.compact #sub, body.compact #foot, body.compact details { display: none; } + body.compact #sub, body.compact #foot, body.compact #rail { display: none; } body.compact #fxbar { min-height: 22px; } body.compact #head { margin-bottom: 6px; } body.compact { padding-top: 6px; padding-bottom: 6px; } @@ -156,18 +167,20 @@
Breakout · Neon Clone
Maus klickt ins Spielfeld und wird dort gefangen · ESC gibt sie frei · Klick / Leertaste schießt · P pausiert · R Neustart
-
- Punkte 0 - Bestwert 0 - Level 1 - Combo ×1,0 - Leben -
-
Aktive Power-ups
+
+ -
+
Breakout
@@ -182,19 +195,23 @@
+ +
+ - -
- Power-ups & Legende -
-