Skip to content

Commit 611450a

Browse files
committed
Require Tool Display Mode on all Game Foundry Studio tool pages and complete SSoT cleanup - PR_26151_007-gamefoundry-ssot-cleanup
1 parent 83002b4 commit 611450a

49 files changed

Lines changed: 407 additions & 345 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

GameFoundryStudio/assets/css/controls.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,16 @@ details.accordion[open] summary:after {
167167
grid-column: 2;
168168
grid-row: 1;
169169
margin: 0 0 12px;
170+
border: 1px solid var(--meaning-border, var(--line));
170171
border-radius: 16px;
172+
background: var(--panel);
173+
box-shadow: 0 14px 40px var(--shadow);
171174
overflow: hidden
172175
}
173176

174177
.tool-display-mode summary {
178+
color: var(--meaning-color, var(--gold));
179+
background: var(--meaning-soft, var(--panel-soft));
175180
font-weight: 900
176181
}
177182

@@ -183,6 +188,18 @@ details.tool-display-mode[open] summary:after {
183188
content: "+"
184189
}
185190

191+
body.tool-focus-mode .tool-display-mode {
192+
grid-column: 2;
193+
grid-row: 1;
194+
position: sticky;
195+
top: 10px;
196+
z-index: 50;
197+
margin: 0;
198+
border-color: var(--meaning-border, var(--line));
199+
background: var(--panel);
200+
box-shadow: 0 18px 60px var(--shadow)
201+
}
202+
186203
@media(max-width:980px) {
187204
.tool-display-mode,
188205
body.tool-focus-mode .tool-display-mode {

GameFoundryStudio/assets/css/tools.css

Lines changed: 55 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,26 @@
4444
.meaning-layout {
4545
display: grid;
4646
grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.15fr) minmax(220px, .8fr);
47+
grid-template-rows: auto minmax(0, 1fr);
4748
gap: 18px;
4849
align-items: stretch
4950
}
5051

52+
.meaning-panel.left-panel {
53+
grid-column: 1;
54+
grid-row: 1 / span 2
55+
}
56+
57+
.meaning-center {
58+
grid-column: 2;
59+
grid-row: 2
60+
}
61+
62+
.meaning-panel.right-panel {
63+
grid-column: 3;
64+
grid-row: 1 / span 2
65+
}
66+
5167
.meaning-panel,
5268
.meaning-center {
5369
border: 1px solid var(--line);
@@ -138,12 +154,6 @@
138154
grid-row: 1 / span 2
139155
}
140156

141-
.tool-display-mode {
142-
border: 1px solid rgba(255, 200, 87, .42);
143-
background: rgba(7, 10, 18, .92);
144-
box-shadow: 0 14px 40px rgba(0, 0, 0, .28)
145-
}
146-
147157
.tool-center-panel {
148158
grid-column: 2;
149159
grid-row: 2;
@@ -211,12 +221,6 @@ details.accordion summary:after {
211221
max-width: 540px
212222
}
213223

214-
.tool-display-mode summary {
215-
color: var(--gold);
216-
background: rgba(255, 122, 0, .12);
217-
font-weight: 900
218-
}
219-
220224
body.tool-focus-mode .site-header,
221225
body.tool-focus-mode .page-title,
222226
body.tool-focus-mode .footer {
@@ -245,20 +249,19 @@ body.tool-focus-mode .tool-workspace {
245249
align-items: stretch
246250
}
247251

248-
body.tool-focus-mode .tool-display-mode {
249-
grid-column: 2;
250-
grid-row: 1;
251-
position: sticky;
252-
top: 10px;
253-
z-index: 50;
254-
margin: 0;
255-
background: #111722;
256-
border-color: rgba(255, 200, 87, .72);
257-
box-shadow: 0 18px 60px rgba(0, 0, 0, .7)
252+
body.tool-focus-mode .meaning-layout {
253+
height: 100vh;
254+
grid-template-columns: 280px minmax(0, 1fr) 280px;
255+
grid-template-rows: auto minmax(0, 1fr);
256+
gap: 10px;
257+
padding: 10px;
258+
align-items: stretch
258259
}
259260

260261
body.tool-focus-mode .tool-column,
261-
body.tool-focus-mode .tool-center-panel {
262+
body.tool-focus-mode .tool-center-panel,
263+
body.tool-focus-mode .meaning-panel,
264+
body.tool-focus-mode .meaning-center {
262265
height: calc(100vh - 20px);
263266
overflow: auto
264267
}
@@ -278,6 +281,21 @@ body.tool-focus-mode .tool-column:last-of-type {
278281
grid-row: 1 / span 2
279282
}
280283

284+
body.tool-focus-mode .meaning-panel.left-panel {
285+
grid-column: 1;
286+
grid-row: 1 / span 2
287+
}
288+
289+
body.tool-focus-mode .meaning-center {
290+
grid-column: 2;
291+
grid-row: 2
292+
}
293+
294+
body.tool-focus-mode .meaning-panel.right-panel {
295+
grid-column: 3;
296+
grid-row: 1 / span 2
297+
}
298+
281299
@media(max-width:980px) {
282300
.tool-grid {
283301
grid-template-columns: repeat(2, 1fr)
@@ -288,12 +306,16 @@ body.tool-focus-mode .tool-column:last-of-type {
288306
grid-template-columns: 1fr
289307
}
290308

291-
.tool-display-mode,
292-
body.tool-focus-mode .tool-display-mode,
293309
.tool-column:first-of-type,
310+
.meaning-panel.left-panel,
311+
.meaning-center,
312+
.meaning-panel.right-panel,
294313
.tool-center-panel,
295314
.tool-column:last-of-type,
296315
body.tool-focus-mode .tool-column:first-of-type,
316+
body.tool-focus-mode .meaning-panel.left-panel,
317+
body.tool-focus-mode .meaning-center,
318+
body.tool-focus-mode .meaning-panel.right-panel,
297319
body.tool-focus-mode .tool-center-panel,
298320
body.tool-focus-mode .tool-column:last-of-type {
299321
grid-column: auto;
@@ -309,8 +331,15 @@ body.tool-focus-mode .tool-column:last-of-type {
309331
grid-template-columns: 1fr
310332
}
311333

334+
body.tool-focus-mode .meaning-layout {
335+
height: auto;
336+
grid-template-columns: 1fr
337+
}
338+
312339
body.tool-focus-mode .tool-column,
313-
body.tool-focus-mode .tool-center-panel {
340+
body.tool-focus-mode .tool-center-panel,
341+
body.tool-focus-mode .meaning-panel,
342+
body.tool-focus-mode .meaning-center {
314343
height: auto
315344
}
316345
}

GameFoundryStudio/assets/js/tool-display-mode.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
(function () {
2-
const displayMode = document.getElementById("toolDisplayMode");
3-
if (!displayMode) return;
2+
const slot = document.querySelector("[data-tool-display-mode]");
3+
if (!slot) return;
4+
5+
const displayMode = document.createElement("details");
6+
displayMode.className = "accordion tool-display-mode";
7+
displayMode.id = "toolDisplayMode";
8+
displayMode.open = true;
9+
10+
const summary = document.createElement("summary");
11+
summary.textContent = "Tool Display Mode";
12+
displayMode.appendChild(summary);
13+
slot.replaceWith(displayMode);
414

5-
const summary = displayMode.querySelector("summary");
615

716
async function enterToolMode() {
817
document.body.classList.add("tool-focus-mode");

GameFoundryStudio/tools/ai-assistant.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h2>Toolbox</h2>
3535
</details>
3636
</div>
3737
</aside>
38-
<details class="accordion tool-display-mode" id="toolDisplayMode" open>
39-
<summary>Tool Display Mode</summary>
40-
</details>
38+
<div data-tool-display-mode></div>
4139
<section class="tool-center-panel page-hero"><img src="../assets/images/tools/ai-assistant.png" alt="AI Assistant"><div><h2>Purpose</h2><p class="lede">This page is a branded landing page for AI Assistant. In the production app this becomes the place to launch the tool, read docs, see examples, and review tool-specific workflow guidance.</p><div class="hero-actions"><a class="btn primary" href="#">Launch Tool</a><a class="btn" href="../docs/index.html">Read Docs</a></div></div></section>
4240
<aside class="tool-column">
4341
<div class="tool-column-header forge-gold">

GameFoundryStudio/tools/animation-studio.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h2>Toolbox</h2>
3535
</details>
3636
</div>
3737
</aside>
38-
<details class="accordion tool-display-mode" id="toolDisplayMode" open>
39-
<summary>Tool Display Mode</summary>
40-
</details>
38+
<div data-tool-display-mode></div>
4139
<section class="tool-center-panel page-hero"><img src="../assets/images/tools/animation-studio.png" alt="Animation Studio"><div><h2>Purpose</h2><p class="lede">This page is a branded landing page for Animation Studio. In the production app this becomes the place to launch the tool, read docs, see examples, and review tool-specific workflow guidance.</p><div class="hero-actions"><a class="btn primary" href="#">Launch Tool</a><a class="btn" href="../docs/index.html">Read Docs</a></div></div></section>
4240
<aside class="tool-column">
4341
<div class="tool-column-header forge-gold">

GameFoundryStudio/tools/asset-studio.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h2>Toolbox</h2>
3535
</details>
3636
</div>
3737
</aside>
38-
<details class="accordion tool-display-mode" id="toolDisplayMode" open>
39-
<summary>Tool Display Mode</summary>
40-
</details>
38+
<div data-tool-display-mode></div>
4139
<section class="tool-center-panel page-hero"><img src="../assets/images/tools/asset-studio.png" alt="Asset Studio"><div><h2>Purpose</h2><p class="lede">This page is a branded landing page for Asset Studio. In the production app this becomes the place to launch the tool, read docs, see examples, and review tool-specific workflow guidance.</p><div class="hero-actions"><a class="btn primary" href="#">Launch Tool</a><a class="btn" href="../docs/index.html">Read Docs</a></div></div></section>
4240
<aside class="tool-column">
4341
<div class="tool-column-header forge-gold">

GameFoundryStudio/tools/code-studio.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h2>Toolbox</h2>
3535
</details>
3636
</div>
3737
</aside>
38-
<details class="accordion tool-display-mode" id="toolDisplayMode" open>
39-
<summary>Tool Display Mode</summary>
40-
</details>
38+
<div data-tool-display-mode></div>
4139
<section class="tool-center-panel page-hero"><img src="../assets/images/tools/code-studio.png" alt="Code Studio"><div><h2>Purpose</h2><p class="lede">This page is a branded landing page for Code Studio. In the production app this becomes the place to launch the tool, read docs, see examples, and review tool-specific workflow guidance.</p><div class="hero-actions"><a class="btn primary" href="#">Launch Tool</a><a class="btn" href="../docs/index.html">Read Docs</a></div></div></section>
4240
<aside class="tool-column">
4341
<div class="tool-column-header forge-gold">

GameFoundryStudio/tools/game-builder.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h2>Toolbox</h2>
3535
</details>
3636
</div>
3737
</aside>
38-
<details class="accordion tool-display-mode" id="toolDisplayMode" open>
39-
<summary>Tool Display Mode</summary>
40-
</details>
38+
<div data-tool-display-mode></div>
4139
<section class="tool-center-panel page-hero"><img src="../assets/images/tools/game-builder.png" alt="Game Builder"><div><h2>Purpose</h2><p class="lede">This page is a branded landing page for Game Builder. In the production app this becomes the place to launch the tool, read docs, see examples, and review tool-specific workflow guidance.</p><div class="hero-actions"><a class="btn primary" href="#">Launch Tool</a><a class="btn" href="../docs/index.html">Read Docs</a></div></div></section>
4240
<aside class="tool-column">
4341
<div class="tool-column-header forge-gold">

GameFoundryStudio/tools/game-design-studio.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h2>Toolbox</h2>
3535
</details>
3636
</div>
3737
</aside>
38-
<details class="accordion tool-display-mode" id="toolDisplayMode" open>
39-
<summary>Tool Display Mode</summary>
40-
</details>
38+
<div data-tool-display-mode></div>
4139
<section class="tool-center-panel page-hero"><img src="../assets/images/tools/game-design-studio.png" alt="Game Design Studio"><div><h2>Purpose</h2><p class="lede">This page is a branded landing page for Game Design Studio. In the production app this becomes the place to launch the tool, read docs, see examples, and review tool-specific workflow guidance.</p><div class="hero-actions"><a class="btn primary" href="#">Launch Tool</a><a class="btn" href="../docs/index.html">Read Docs</a></div></div></section>
4240
<aside class="tool-column">
4341
<div class="tool-column-header forge-gold">

GameFoundryStudio/tools/groups/assets-content.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ <h2>Content Inputs</h2>
3434
</ul>
3535
</div>
3636
</aside>
37+
<div data-tool-display-mode></div>
3738
<section class="meaning-center">
3839
<h2>Forge game-ready content.</h2>
3940
<p>Forge Gold marks asset creation and reusable content that creators can place, remix, and publish.
@@ -61,6 +62,7 @@ <h2>Content Output</h2>
6162
</main>
6263
<div data-partial="footer"></div>
6364
<script src="../../assets/js/gamefoundry-partials.js" defer></script>
65+
<script src="../../assets/js/tool-display-mode.js" defer></script>
6466
</body>
6567

66-
</html>
68+
</html>

0 commit comments

Comments
 (0)