Skip to content

Commit b5c03cf

Browse files
author
DavidQ
committed
Level 18.5 CSS/UI Normalization (Overlay Slice)
- Flattened CSS layers - Removed redundant styles - Aligned UI classes to shared system
1 parent b549de1 commit b5c03cf

12 files changed

Lines changed: 206 additions & 56 deletions

docs/dev/CODEX_COMMANDS.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ MODEL: GPT-5.3-codex
22
REASONING: high
33

44
COMMAND:
5-
- Scan overlay runtime files only
6-
- Normalize naming conventions
7-
- Deduplicate helpers
8-
- Fix import/export patterns
9-
- Validate tests
5+
- Inspect overlay CSS only
6+
- Flatten CSS structure
7+
- Replace redundant styles with shared classes
8+
- Validate rendering + tests
109

1110
Output:
12-
<project folder>/tmp/BUILD_PR_LEVEL_18_4_CODEBASE_CONSISTENCY_OVERLAY_SLICE.zip
11+
<project folder>/tmp/BUILD_PR_LEVEL_18_5_CSS_UI_NORMALIZATION_OVERLAY_SLICE.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
Level 18.4 Codebase Consistency (Overlay Slice)
1+
Level 18.5 CSS/UI Normalization (Overlay Slice)
22

3-
- Normalized naming
4-
- Removed duplicate helpers
5-
- Fixed import/export anti-patterns
6-
- Enforced consistency rules
3+
- Flattened CSS layers
4+
- Removed redundant styles
5+
- Aligned UI classes to shared system
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[ ] naming consistent
2-
[ ] no duplicate helpers
3-
[ ] imports clean
1+
[ ] no visual regressions
2+
[ ] CSS flattened
3+
[ ] shared classes used
44
[ ] tests pass
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# BUILD PR LEVEL 18.5 — CSS & UI Normalization (Overlay Slice)
2+
3+
Purpose:
4+
Normalize overlay UI styling and CSS structure.
5+
6+
Scope:
7+
- Overlay UI only
8+
- No global CSS refactor
9+
10+
Changes:
11+
- Flatten CSS layers for overlay
12+
- Enforce shared UI class usage
13+
- Remove redundant styles
14+
- Align overlay styling with shared conventions
15+
16+
Validation:
17+
- Overlay renders correctly
18+
- No visual regressions
19+
- Tests pass

samples/phase-17/1708/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<meta charset="UTF-8" />
1111
<title>Sample 1708 - Real Gameplay Mini-Game</title>
1212
<link rel="stylesheet" href="../../../src/engine/ui/baseLayout.css" />
13+
<link rel="stylesheet" href="../shared/overlaySampleLayout.css" />
1314
</head>
1415
<body>
15-
<main>
16-
<h1>Sample 1708 - Real Gameplay Mini-Game</h1>
17-
<p>Playable 3D mini-game using existing engine systems: movement, hazards, objective scoring, camera follow, and debug panels.</p>
18-
<canvas id="game" width="960" height="540"></canvas>
16+
<main class="overlay-sample-main">
17+
<h1 class="overlay-sample-title">Sample 1708 - Real Gameplay Mini-Game</h1>
18+
<p class="overlay-sample-summary">Playable 3D mini-game using existing engine systems: movement, hazards, objective scoring, camera follow, and debug panels.</p>
19+
<canvas id="game" class="overlay-sample-canvas" width="960" height="540"></canvas>
1920

20-
<section>
21-
<h3>Engine Classes Used</h3>
22-
<ul>
21+
<section class="overlay-sample-engine-section">
22+
<h3 class="overlay-sample-engine-title">Engine Classes Used</h3>
23+
<ul class="overlay-sample-engine-list">
2324
<li>Engine</li>
2425
<li>Scene</li>
2526
</ul>

samples/phase-17/1709/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<meta charset="UTF-8" />
1111
<title>Sample 1709 - Movement Models Lab</title>
1212
<link rel="stylesheet" href="../../../src/engine/ui/baseLayout.css" />
13+
<link rel="stylesheet" href="../shared/overlaySampleLayout.css" />
1314
</head>
1415
<body>
15-
<main>
16-
<h1>Sample 1709 - Movement Models Lab</h1>
17-
<p>Compares direct axis movement, tank rotation controls, and weighted movement using existing engine systems.</p>
18-
<canvas id="game" width="960" height="540"></canvas>
16+
<main class="overlay-sample-main">
17+
<h1 class="overlay-sample-title">Sample 1709 - Movement Models Lab</h1>
18+
<p class="overlay-sample-summary">Compares direct axis movement, tank rotation controls, and weighted movement using existing engine systems.</p>
19+
<canvas id="game" class="overlay-sample-canvas" width="960" height="540"></canvas>
1920

20-
<section>
21-
<h3>Engine Classes Used</h3>
22-
<ul>
21+
<section class="overlay-sample-engine-section">
22+
<h3 class="overlay-sample-engine-title">Engine Classes Used</h3>
23+
<ul class="overlay-sample-engine-list">
2324
<li>Engine</li>
2425
<li>Scene</li>
2526
</ul>

samples/phase-17/1710/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<meta charset="UTF-8" />
1111
<title>Sample 1710 - Real Gameplay Mini-Game</title>
1212
<link rel="stylesheet" href="../../../src/engine/ui/baseLayout.css" />
13+
<link rel="stylesheet" href="../shared/overlaySampleLayout.css" />
1314
</head>
1415
<body>
15-
<main>
16-
<h1>Sample 1710 - Real Gameplay Mini-Game</h1>
17-
<p>Playable 3D mini-game using existing engine systems: movement, hazards, objective scoring, camera follow, and debug panels.</p>
18-
<canvas id="game" width="960" height="540"></canvas>
16+
<main class="overlay-sample-main">
17+
<h1 class="overlay-sample-title">Sample 1710 - Real Gameplay Mini-Game</h1>
18+
<p class="overlay-sample-summary">Playable 3D mini-game using existing engine systems: movement, hazards, objective scoring, camera follow, and debug panels.</p>
19+
<canvas id="game" class="overlay-sample-canvas" width="960" height="540"></canvas>
1920

20-
<section>
21-
<h3>Engine Classes Used</h3>
22-
<ul>
21+
<section class="overlay-sample-engine-section">
22+
<h3 class="overlay-sample-engine-title">Engine Classes Used</h3>
23+
<ul class="overlay-sample-engine-list">
2324
<li>Engine</li>
2425
<li>Scene</li>
2526
</ul>

samples/phase-17/1711/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<meta charset="UTF-8" />
1111
<title>Sample 1711 - Movement Models Lab</title>
1212
<link rel="stylesheet" href="../../../src/engine/ui/baseLayout.css" />
13+
<link rel="stylesheet" href="../shared/overlaySampleLayout.css" />
1314
</head>
1415
<body>
15-
<main>
16-
<h1>Sample 1711 - Movement Models Lab</h1>
17-
<p>Compares direct axis movement, tank rotation controls, and weighted movement using existing engine systems.</p>
18-
<canvas id="game" width="960" height="540"></canvas>
16+
<main class="overlay-sample-main">
17+
<h1 class="overlay-sample-title">Sample 1711 - Movement Models Lab</h1>
18+
<p class="overlay-sample-summary">Compares direct axis movement, tank rotation controls, and weighted movement using existing engine systems.</p>
19+
<canvas id="game" class="overlay-sample-canvas" width="960" height="540"></canvas>
1920

20-
<section>
21-
<h3>Engine Classes Used</h3>
22-
<ul>
21+
<section class="overlay-sample-engine-section">
22+
<h3 class="overlay-sample-engine-title">Engine Classes Used</h3>
23+
<ul class="overlay-sample-engine-list">
2324
<li>Engine</li>
2425
<li>Scene</li>
2526
</ul>

samples/phase-17/1712/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<meta charset="UTF-8" />
1111
<title>Sample 1712 - Gameplay Metrics & Telemetry</title>
1212
<link rel="stylesheet" href="../../../src/engine/ui/baseLayout.css" />
13+
<link rel="stylesheet" href="../shared/overlaySampleLayout.css" />
1314
</head>
1415
<body>
15-
<main>
16-
<h1>Sample 1712 - Gameplay Metrics & Telemetry</h1>
17-
<p>Adds live gameplay metrics and telemetry overlay to a real mini-game using existing debug systems only.</p>
18-
<canvas id="game" width="960" height="540"></canvas>
16+
<main class="overlay-sample-main">
17+
<h1 class="overlay-sample-title">Sample 1712 - Gameplay Metrics & Telemetry</h1>
18+
<p class="overlay-sample-summary">Adds live gameplay metrics and telemetry overlay to a real mini-game using existing debug systems only.</p>
19+
<canvas id="game" class="overlay-sample-canvas" width="960" height="540"></canvas>
1920

20-
<section>
21-
<h3>Engine Classes Used</h3>
22-
<ul>
21+
<section class="overlay-sample-engine-section">
22+
<h3 class="overlay-sample-engine-title">Engine Classes Used</h3>
23+
<ul class="overlay-sample-engine-list">
2324
<li>Engine</li>
2425
<li>Scene</li>
2526
</ul>

samples/phase-17/1713/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<meta charset="UTF-8" />
1111
<title>Sample 1713 - Final Reference Game</title>
1212
<link rel="stylesheet" href="../../../src/engine/ui/baseLayout.css" />
13+
<link rel="stylesheet" href="../shared/overlaySampleLayout.css" />
1314
</head>
1415
<body>
15-
<main>
16-
<h1>Sample 1713 - Final Reference Game</h1>
17-
<p>Final reference mini-game that combines gameplay loop, camera debug panels, collision overlays, and telemetry in one bounded sample.</p>
18-
<canvas id="game" width="960" height="540"></canvas>
16+
<main class="overlay-sample-main">
17+
<h1 class="overlay-sample-title">Sample 1713 - Final Reference Game</h1>
18+
<p class="overlay-sample-summary">Final reference mini-game that combines gameplay loop, camera debug panels, collision overlays, and telemetry in one bounded sample.</p>
19+
<canvas id="game" class="overlay-sample-canvas" width="960" height="540"></canvas>
1920

20-
<section>
21-
<h3>Engine Classes Used</h3>
22-
<ul>
21+
<section class="overlay-sample-engine-section">
22+
<h3 class="overlay-sample-engine-title">Engine Classes Used</h3>
23+
<ul class="overlay-sample-engine-list">
2324
<li>Engine</li>
2425
<li>Scene</li>
2526
</ul>

0 commit comments

Comments
 (0)