2026-03-09 21:52:54 -04:00
|
|
|
// ── Gear button ────────────────────────────────────────────
|
|
|
|
|
.gear-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0.5rem;
|
|
|
|
|
right: 0.5rem;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: rgba(var(--secUser), 1);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 3rem;
|
|
|
|
|
height: 3rem;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: rgba(var(--priUser), 1);
|
|
|
|
|
border: 0.15rem solid rgba(var(--secUser), 1);
|
2026-03-15 16:39:14 -04:00
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
color: rgba(var(--quaUser), 1);
|
|
|
|
|
border-color: rgba(var(--quaUser), 1);
|
|
|
|
|
}
|
2026-03-09 21:52:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ── Applet menu (shared structure) ─────────────────────────
|
|
|
|
|
%applet-menu {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 3rem;
|
|
|
|
|
right: 0.5rem;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
background-color: rgba(var(--priUser), 0.95);
|
2026-03-09 22:42:30 -04:00
|
|
|
border: 0.15rem solid rgba(var(--secUser), 1);
|
2026-03-09 21:52:54 -04:00
|
|
|
box-shadow:
|
2026-03-09 22:42:30 -04:00
|
|
|
0 0 0.5rem rgba(var(--secUser), 0.75),
|
2026-03-09 21:52:54 -04:00
|
|
|
0.12rem 0.12rem 0.5rem rgba(0, 0, 0, 0.25),
|
|
|
|
|
;
|
|
|
|
|
border-radius: 0.75rem;
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
|
|
.menu-btns {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
margin-top: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
|
appearance: none;
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
width: 0.9em;
|
|
|
|
|
height: 0.9em;
|
|
|
|
|
border: 0.1rem solid rgba(var(--secUser), 0.4);
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
background: transparent;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
top: 0.1em;
|
|
|
|
|
|
|
|
|
|
&:checked::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0.2em;
|
|
|
|
|
bottom: 0.2em;
|
|
|
|
|
width: 0.55em;
|
|
|
|
|
height: 1em;
|
|
|
|
|
border: 0.12em solid rgba(var(--ninUser), 1);
|
|
|
|
|
border-top: none;
|
|
|
|
|
border-left: none;
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_dash_applet_menu { @extend %applet-menu; }
|
|
|
|
|
#id_game_applet_menu { @extend %applet-menu; }
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_game_kit_menu { @extend %applet-menu; }
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_wallet_applet_menu { @extend %applet-menu; }
|
|
|
|
|
#id_room_menu { @extend %applet-menu; }
|
2026-05-12 22:26:12 -04:00
|
|
|
#id_post_menu { @extend %applet-menu; }
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_billboard_applet_menu { @extend %applet-menu; }
|
2026-04-13 00:34:05 -04:00
|
|
|
#id_billscroll_menu { @extend %applet-menu; }
|
2026-05-20 09:47:47 -04:00
|
|
|
#id_my_sea_menu { @extend %applet-menu; }
|
2026-03-09 21:52:54 -04:00
|
|
|
|
2026-03-15 01:17:09 -04:00
|
|
|
// Page-level gear buttons — fixed to viewport bottom-right
|
|
|
|
|
.gameboard-page,
|
|
|
|
|
.dashboard-page,
|
Django Channels role-select sprint: turn_changed, roles_revealed, role_select_start consumer handlers; WS URL changed from room_slug to room_id UUID; TableSeat model - room, gamer, slot_number, role, role_revealed, seat_position fields; Room.table_status field with ROLE_SELECT, SIG_SELECT, IN_GAME choices; migration 0006_table_status_and_table_seat; pick_roles and select_role views; _role_select_context helper; _notify_turn_changed, _notify_roles_revealed, _notify_role_select_start notifiers; all gate-mutation views now call _notify_gate_update; ChannelsFunctionalTest base class with serve_static, screenshot, dump helpers; SQLite TEST NAME set to file path for ChannelsLiveServerTestCase; InMemoryChannelLayer added to test CHANNEL_LAYERS settings; FT 5 and FT 6 now passing - active seat arc and turn advance via WS, no page refresh; room.js, gatekeeper.js, role-select.js added to apps/epic/static; applets.js, game-kit.js, dashboard.js, wallet.js relocated to app-scoped static dirs; room.html: hex table, table-seat arcs, card-stack, inventory panel, role-card hand, WS scripts; _room.scss: room-shell flex layout, .table-hex polygon clip-path, .table-seat and .seat-card-arc, .card-stack eligible/ineligible states, .card flip animation, .inv-role-card stacked hand, .role-select-backdrop; gear btn and room menu always position: fixed; 375 tests, 0 skipped
2026-03-17 00:24:23 -04:00
|
|
|
.wallet-page,
|
2026-03-24 17:22:49 -04:00
|
|
|
.room-page,
|
2026-05-12 22:26:12 -04:00
|
|
|
.post-page,
|
2026-04-13 00:34:05 -04:00
|
|
|
.billboard-page,
|
2026-05-20 09:47:47 -04:00
|
|
|
.billscroll-page,
|
|
|
|
|
.my-sea-page {
|
2026-03-15 01:17:09 -04:00
|
|
|
> .gear-btn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 4.2rem;
|
|
|
|
|
right: 0.5rem;
|
2026-03-28 18:52:46 -04:00
|
|
|
z-index: 314;
|
2026-03-15 01:17:09 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#id_dash_applet_menu,
|
|
|
|
|
#id_game_applet_menu,
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_game_kit_menu,
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_wallet_applet_menu,
|
room.html burger btn + 5-fan; universal landscape btn refactor; kit_bag_dialog vertical bar — TDD
Major feature push staging room.html for sprint A.8 — adds the burger btn + fan-of-five sub-btns affordance, then rotates the whole landscape btn layout to make room for it. The landscape refactor is universal (not .room-page-scoped) so every page that hosts these btns reads consistently.
## Burger btn + fan-of-five (room.html only)
`templates/apps/gameboard/_partials/_room_burger.html` (NEW) — `#id_burger_btn` (.fa-burger) + `#id_burger_fan` containing 5 sub-btns: `#id_voice_btn` (headset), `#id_sky_btn` (cloud), `#id_earth_btn` (earth-americas), `#id_sea_btn` (bridge-water), `#id_text_btn` (keyboard). Pure scaffolding — no click handlers in this sprint; wire-up lands later as each surface matures.
`apps/epic/static/apps/epic/burger-btn.js` (NEW) — toggle `.active` on click; Escape + click-outside close; opening burger auto-closes the kit dialog (`#id_kit_bag_dialog`) + the bud slide-out panel (`html.bud-open`) by dispatching a click to the owning btn (routes through that btn's own toggle/close path — no fetch on close). `bindBurger()` returns an `AbortController` so test code (+ any future re-bind callers) can detach all listeners cleanly via `ac.abort()`.
`static_src/scss/_burger.scss` (NEW) — burger sits parallel to gear-above-kit but on the bud-side. Portrait: bottom:4.2rem; left:0.5rem (above #id_bud_btn). Landscape: bottom:0.5rem; right:4.2rem (to the LEFT of #id_bud_btn). Fan is a CSS radial menu w. each sub-btn's `--angle = --base + --i * 30deg`. Portrait `--base: 0deg` (arc 12→4 o'clock), landscape `--base: -90deg` (arc 9→1 o'clock). Sub-btn radius `--r: 7.75rem`. Indices: voice=0, sky=1, earth=2, sea=3, text=4 (user-spec'd clockwise order).
room.html includes the partial + the script; the burger renders unconditionally regardless of `gate_status` / `table_status`.
## Universal landscape btn refactor
Sprint replaces the prior centred-in-sidebar landscape arrangement w. a kit-at-top + bud-at-bottom + gear/burger as horizontal partners. Applies to every page in landscape (was scoped to .room-page in the first iteration).
`_game-kit.scss` — kit_btn landscape moves to top:0.5rem; right:0.5rem (was bottom:0.5rem centred in sidebar). The 0.5rem right literal (not the calc((--sidebar-w - 3rem)/2)=1rem) produces a 0.7rem edge-to-edge gap w. gear at right:4.2rem — matching the portrait gear-above-kit gap exactly.
`_bud.scss` — bud_btn landscape moves to bottom:0.5rem; right:0.5rem (was top:0.5rem centred in sidebar). Same 0.5rem literal as kit_btn. bud_panel #id_recipient relocates to bottom:0.5rem (was top:0.5rem) + transform-origin flips to right center. .bud-suggestions rise upward from above the panel (bottom:4rem) instead of dropping from below.
`_applets.scss` — .gear-btn landscape moves to top:0.5rem; right:4.2rem (was centred bottom:3.95rem). All applet menus anchor at top:2.6rem; right:4.2rem (beneath the gear's leftward arc) extending DOWN-LEFT into the viewport. #id_room_menu joins the shared portrait position list (was bespoke in _room.scss).
`_room.scss` — bespoke #id_room_menu rule deleted entirely. The menu now inherits %applet-menu + the shared portrait position list — same chrome + behaviour as #id_post_menu / #id_billscroll_menu. Earlier iteration tried flex-direction:row in landscape; reverted per user request — "lose all scss specificity" wins.
`_card-deck.scss` — obsolete `#id_room_menu { right: 2.5rem; }` override in the XL+landscape block deleted. Was a same-specificity hack to beat _applets.scss's old centred position; no longer needed w. the consolidated rule.
## kit_bag_dialog vertical bar in landscape
`_game-kit.scss` — when open in landscape, dialog covers the right sidebar (top:0; bottom:0; right:0; width: var(--sidebar-w)). Slides in from off-viewport right by animating max-width 0 → var(--sidebar-w). Opaque bg (rgba(--priUser, 1) — was 0.97). z-index: 319 (above burger at 318) so it lands in front of the burger btn when open. Top-edge border → left-edge border.
Inner content flips to `flex-direction: column-reverse` so DOM order Deck→Dice→Trinket→Tokens paints visually bottom→top. .kit-bag-section also column-reverse → icon row above label. .kit-bag-label drops vertical-rl + the rotate(180deg) scaleX(1.3) transform, reads horizontally. .kit-bag-row--scroll flips to column + overflow-y for the Tokens scrollable row.
`game-kit.js attachTooltip()` — 2-axis tooltip clamp matching sky-wheel.js + wallet.js's pattern. Horizontal: left edge stays within [1rem, viewport-ttW-1rem]. Vertical: prefer ABOVE the element; flip BELOW when tooltip is too tall to fit above (e.g. landscape kit bar w. Tokens row near top). Resets top/bottom on mouseleave so next show measures fresh.
## Tests
`apps/epic/tests/integrated/test_views.py` (+1 class, 6 ITs) — RoomBurgerBtnRenderTest: burger_btn renders, fan container renders, 5 sub-btns w. correct ids, icons match spec, burger-btn.js loaded, burger persists thru table_status.
`static_src/tests/BurgerSpec.js` (NEW, 19 Jasmine specs) — bindBurger() returns AbortController; click toggle; Escape close; click-outside close; opening burger closes kit dialog + bud panel when set; AbortController teardown removes listeners.
All 1356 IT+UT green (+6 new from RoomBurgerBtnRenderTest, was 1350). Jasmine suite green (was 220-something specs, +19 BurgerSpec).
Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 20:40:33 -04:00
|
|
|
#id_room_menu,
|
2026-05-12 22:26:12 -04:00
|
|
|
#id_post_menu,
|
2026-04-13 00:34:05 -04:00
|
|
|
#id_billboard_applet_menu,
|
2026-05-20 09:47:47 -04:00
|
|
|
#id_billscroll_menu,
|
|
|
|
|
#id_my_sea_menu {
|
2026-03-15 01:17:09 -04:00
|
|
|
position: fixed;
|
|
|
|
|
bottom: 6.6rem;
|
|
|
|
|
right: 1rem;
|
2026-03-28 18:52:46 -04:00
|
|
|
z-index: 312;
|
2026-03-15 01:17:09 -04:00
|
|
|
}
|
|
|
|
|
|
room.html burger btn + 5-fan; universal landscape btn refactor; kit_bag_dialog vertical bar — TDD
Major feature push staging room.html for sprint A.8 — adds the burger btn + fan-of-five sub-btns affordance, then rotates the whole landscape btn layout to make room for it. The landscape refactor is universal (not .room-page-scoped) so every page that hosts these btns reads consistently.
## Burger btn + fan-of-five (room.html only)
`templates/apps/gameboard/_partials/_room_burger.html` (NEW) — `#id_burger_btn` (.fa-burger) + `#id_burger_fan` containing 5 sub-btns: `#id_voice_btn` (headset), `#id_sky_btn` (cloud), `#id_earth_btn` (earth-americas), `#id_sea_btn` (bridge-water), `#id_text_btn` (keyboard). Pure scaffolding — no click handlers in this sprint; wire-up lands later as each surface matures.
`apps/epic/static/apps/epic/burger-btn.js` (NEW) — toggle `.active` on click; Escape + click-outside close; opening burger auto-closes the kit dialog (`#id_kit_bag_dialog`) + the bud slide-out panel (`html.bud-open`) by dispatching a click to the owning btn (routes through that btn's own toggle/close path — no fetch on close). `bindBurger()` returns an `AbortController` so test code (+ any future re-bind callers) can detach all listeners cleanly via `ac.abort()`.
`static_src/scss/_burger.scss` (NEW) — burger sits parallel to gear-above-kit but on the bud-side. Portrait: bottom:4.2rem; left:0.5rem (above #id_bud_btn). Landscape: bottom:0.5rem; right:4.2rem (to the LEFT of #id_bud_btn). Fan is a CSS radial menu w. each sub-btn's `--angle = --base + --i * 30deg`. Portrait `--base: 0deg` (arc 12→4 o'clock), landscape `--base: -90deg` (arc 9→1 o'clock). Sub-btn radius `--r: 7.75rem`. Indices: voice=0, sky=1, earth=2, sea=3, text=4 (user-spec'd clockwise order).
room.html includes the partial + the script; the burger renders unconditionally regardless of `gate_status` / `table_status`.
## Universal landscape btn refactor
Sprint replaces the prior centred-in-sidebar landscape arrangement w. a kit-at-top + bud-at-bottom + gear/burger as horizontal partners. Applies to every page in landscape (was scoped to .room-page in the first iteration).
`_game-kit.scss` — kit_btn landscape moves to top:0.5rem; right:0.5rem (was bottom:0.5rem centred in sidebar). The 0.5rem right literal (not the calc((--sidebar-w - 3rem)/2)=1rem) produces a 0.7rem edge-to-edge gap w. gear at right:4.2rem — matching the portrait gear-above-kit gap exactly.
`_bud.scss` — bud_btn landscape moves to bottom:0.5rem; right:0.5rem (was top:0.5rem centred in sidebar). Same 0.5rem literal as kit_btn. bud_panel #id_recipient relocates to bottom:0.5rem (was top:0.5rem) + transform-origin flips to right center. .bud-suggestions rise upward from above the panel (bottom:4rem) instead of dropping from below.
`_applets.scss` — .gear-btn landscape moves to top:0.5rem; right:4.2rem (was centred bottom:3.95rem). All applet menus anchor at top:2.6rem; right:4.2rem (beneath the gear's leftward arc) extending DOWN-LEFT into the viewport. #id_room_menu joins the shared portrait position list (was bespoke in _room.scss).
`_room.scss` — bespoke #id_room_menu rule deleted entirely. The menu now inherits %applet-menu + the shared portrait position list — same chrome + behaviour as #id_post_menu / #id_billscroll_menu. Earlier iteration tried flex-direction:row in landscape; reverted per user request — "lose all scss specificity" wins.
`_card-deck.scss` — obsolete `#id_room_menu { right: 2.5rem; }` override in the XL+landscape block deleted. Was a same-specificity hack to beat _applets.scss's old centred position; no longer needed w. the consolidated rule.
## kit_bag_dialog vertical bar in landscape
`_game-kit.scss` — when open in landscape, dialog covers the right sidebar (top:0; bottom:0; right:0; width: var(--sidebar-w)). Slides in from off-viewport right by animating max-width 0 → var(--sidebar-w). Opaque bg (rgba(--priUser, 1) — was 0.97). z-index: 319 (above burger at 318) so it lands in front of the burger btn when open. Top-edge border → left-edge border.
Inner content flips to `flex-direction: column-reverse` so DOM order Deck→Dice→Trinket→Tokens paints visually bottom→top. .kit-bag-section also column-reverse → icon row above label. .kit-bag-label drops vertical-rl + the rotate(180deg) scaleX(1.3) transform, reads horizontally. .kit-bag-row--scroll flips to column + overflow-y for the Tokens scrollable row.
`game-kit.js attachTooltip()` — 2-axis tooltip clamp matching sky-wheel.js + wallet.js's pattern. Horizontal: left edge stays within [1rem, viewport-ttW-1rem]. Vertical: prefer ABOVE the element; flip BELOW when tooltip is too tall to fit above (e.g. landscape kit bar w. Tokens row near top). Resets top/bottom on mouseleave so next show measures fresh.
## Tests
`apps/epic/tests/integrated/test_views.py` (+1 class, 6 ITs) — RoomBurgerBtnRenderTest: burger_btn renders, fan container renders, 5 sub-btns w. correct ids, icons match spec, burger-btn.js loaded, burger persists thru table_status.
`static_src/tests/BurgerSpec.js` (NEW, 19 Jasmine specs) — bindBurger() returns AbortController; click toggle; Escape close; click-outside close; opening burger closes kit dialog + bud panel when set; AbortController teardown removes listeners.
All 1356 IT+UT green (+6 new from RoomBurgerBtnRenderTest, was 1350). Jasmine suite green (was 220-something specs, +19 BurgerSpec).
Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 20:40:33 -04:00
|
|
|
// In landscape: gear-btn relocates to the LEFT of kit_btn at the top of
|
|
|
|
|
// the right sidebar (kit at right:0.5rem, gear at right:4.2rem — same
|
|
|
|
|
// 3.7rem centre-to-centre delta as the portrait gear-above-kit stack,
|
|
|
|
|
// rotated 90deg into the horizontal axis). Each page that hosts a page-
|
|
|
|
|
// level `.gear-btn` gets the same anchor.
|
|
|
|
|
//
|
|
|
|
|
// Applet menus all anchor at top:2.1rem; right:4.2rem (beneath the gear's
|
|
|
|
|
// leftward arc) and extend DOWN-LEFT. Vertical column flow stays the
|
|
|
|
|
// default — the only menu that rotates aspect is #id_room_menu, which
|
|
|
|
|
// carries that override in _room.scss (2-btn menu → row layout).
|
2026-04-06 01:30:31 -04:00
|
|
|
@media (orientation: landscape) {
|
room.html burger btn + 5-fan; universal landscape btn refactor; kit_bag_dialog vertical bar — TDD
Major feature push staging room.html for sprint A.8 — adds the burger btn + fan-of-five sub-btns affordance, then rotates the whole landscape btn layout to make room for it. The landscape refactor is universal (not .room-page-scoped) so every page that hosts these btns reads consistently.
## Burger btn + fan-of-five (room.html only)
`templates/apps/gameboard/_partials/_room_burger.html` (NEW) — `#id_burger_btn` (.fa-burger) + `#id_burger_fan` containing 5 sub-btns: `#id_voice_btn` (headset), `#id_sky_btn` (cloud), `#id_earth_btn` (earth-americas), `#id_sea_btn` (bridge-water), `#id_text_btn` (keyboard). Pure scaffolding — no click handlers in this sprint; wire-up lands later as each surface matures.
`apps/epic/static/apps/epic/burger-btn.js` (NEW) — toggle `.active` on click; Escape + click-outside close; opening burger auto-closes the kit dialog (`#id_kit_bag_dialog`) + the bud slide-out panel (`html.bud-open`) by dispatching a click to the owning btn (routes through that btn's own toggle/close path — no fetch on close). `bindBurger()` returns an `AbortController` so test code (+ any future re-bind callers) can detach all listeners cleanly via `ac.abort()`.
`static_src/scss/_burger.scss` (NEW) — burger sits parallel to gear-above-kit but on the bud-side. Portrait: bottom:4.2rem; left:0.5rem (above #id_bud_btn). Landscape: bottom:0.5rem; right:4.2rem (to the LEFT of #id_bud_btn). Fan is a CSS radial menu w. each sub-btn's `--angle = --base + --i * 30deg`. Portrait `--base: 0deg` (arc 12→4 o'clock), landscape `--base: -90deg` (arc 9→1 o'clock). Sub-btn radius `--r: 7.75rem`. Indices: voice=0, sky=1, earth=2, sea=3, text=4 (user-spec'd clockwise order).
room.html includes the partial + the script; the burger renders unconditionally regardless of `gate_status` / `table_status`.
## Universal landscape btn refactor
Sprint replaces the prior centred-in-sidebar landscape arrangement w. a kit-at-top + bud-at-bottom + gear/burger as horizontal partners. Applies to every page in landscape (was scoped to .room-page in the first iteration).
`_game-kit.scss` — kit_btn landscape moves to top:0.5rem; right:0.5rem (was bottom:0.5rem centred in sidebar). The 0.5rem right literal (not the calc((--sidebar-w - 3rem)/2)=1rem) produces a 0.7rem edge-to-edge gap w. gear at right:4.2rem — matching the portrait gear-above-kit gap exactly.
`_bud.scss` — bud_btn landscape moves to bottom:0.5rem; right:0.5rem (was top:0.5rem centred in sidebar). Same 0.5rem literal as kit_btn. bud_panel #id_recipient relocates to bottom:0.5rem (was top:0.5rem) + transform-origin flips to right center. .bud-suggestions rise upward from above the panel (bottom:4rem) instead of dropping from below.
`_applets.scss` — .gear-btn landscape moves to top:0.5rem; right:4.2rem (was centred bottom:3.95rem). All applet menus anchor at top:2.6rem; right:4.2rem (beneath the gear's leftward arc) extending DOWN-LEFT into the viewport. #id_room_menu joins the shared portrait position list (was bespoke in _room.scss).
`_room.scss` — bespoke #id_room_menu rule deleted entirely. The menu now inherits %applet-menu + the shared portrait position list — same chrome + behaviour as #id_post_menu / #id_billscroll_menu. Earlier iteration tried flex-direction:row in landscape; reverted per user request — "lose all scss specificity" wins.
`_card-deck.scss` — obsolete `#id_room_menu { right: 2.5rem; }` override in the XL+landscape block deleted. Was a same-specificity hack to beat _applets.scss's old centred position; no longer needed w. the consolidated rule.
## kit_bag_dialog vertical bar in landscape
`_game-kit.scss` — when open in landscape, dialog covers the right sidebar (top:0; bottom:0; right:0; width: var(--sidebar-w)). Slides in from off-viewport right by animating max-width 0 → var(--sidebar-w). Opaque bg (rgba(--priUser, 1) — was 0.97). z-index: 319 (above burger at 318) so it lands in front of the burger btn when open. Top-edge border → left-edge border.
Inner content flips to `flex-direction: column-reverse` so DOM order Deck→Dice→Trinket→Tokens paints visually bottom→top. .kit-bag-section also column-reverse → icon row above label. .kit-bag-label drops vertical-rl + the rotate(180deg) scaleX(1.3) transform, reads horizontally. .kit-bag-row--scroll flips to column + overflow-y for the Tokens scrollable row.
`game-kit.js attachTooltip()` — 2-axis tooltip clamp matching sky-wheel.js + wallet.js's pattern. Horizontal: left edge stays within [1rem, viewport-ttW-1rem]. Vertical: prefer ABOVE the element; flip BELOW when tooltip is too tall to fit above (e.g. landscape kit bar w. Tokens row near top). Resets top/bottom on mouseleave so next show measures fresh.
## Tests
`apps/epic/tests/integrated/test_views.py` (+1 class, 6 ITs) — RoomBurgerBtnRenderTest: burger_btn renders, fan container renders, 5 sub-btns w. correct ids, icons match spec, burger-btn.js loaded, burger persists thru table_status.
`static_src/tests/BurgerSpec.js` (NEW, 19 Jasmine specs) — bindBurger() returns AbortController; click toggle; Escape close; click-outside close; opening burger closes kit dialog + bud panel when set; AbortController teardown removes listeners.
All 1356 IT+UT green (+6 new from RoomBurgerBtnRenderTest, was 1350). Jasmine suite green (was 220-something specs, +19 BurgerSpec).
Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 20:40:33 -04:00
|
|
|
.gameboard-page > .gear-btn,
|
|
|
|
|
.dashboard-page > .gear-btn,
|
|
|
|
|
.wallet-page > .gear-btn,
|
|
|
|
|
.room-page > .gear-btn,
|
|
|
|
|
.post-page > .gear-btn,
|
|
|
|
|
.billboard-page > .gear-btn,
|
|
|
|
|
.billscroll-page > .gear-btn,
|
|
|
|
|
.my-sea-page > .gear-btn {
|
|
|
|
|
top: 0.5rem;
|
|
|
|
|
bottom: auto;
|
|
|
|
|
right: 4.2rem;
|
2026-03-23 01:06:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#id_dash_applet_menu,
|
|
|
|
|
#id_game_applet_menu,
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_game_kit_menu,
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_wallet_applet_menu,
|
2026-04-05 23:33:13 -04:00
|
|
|
#id_room_menu,
|
2026-05-12 22:26:12 -04:00
|
|
|
#id_post_menu,
|
2026-04-13 00:34:05 -04:00
|
|
|
#id_billboard_applet_menu,
|
2026-05-20 09:47:47 -04:00
|
|
|
#id_billscroll_menu,
|
|
|
|
|
#id_my_sea_menu {
|
room.html burger btn + 5-fan; universal landscape btn refactor; kit_bag_dialog vertical bar — TDD
Major feature push staging room.html for sprint A.8 — adds the burger btn + fan-of-five sub-btns affordance, then rotates the whole landscape btn layout to make room for it. The landscape refactor is universal (not .room-page-scoped) so every page that hosts these btns reads consistently.
## Burger btn + fan-of-five (room.html only)
`templates/apps/gameboard/_partials/_room_burger.html` (NEW) — `#id_burger_btn` (.fa-burger) + `#id_burger_fan` containing 5 sub-btns: `#id_voice_btn` (headset), `#id_sky_btn` (cloud), `#id_earth_btn` (earth-americas), `#id_sea_btn` (bridge-water), `#id_text_btn` (keyboard). Pure scaffolding — no click handlers in this sprint; wire-up lands later as each surface matures.
`apps/epic/static/apps/epic/burger-btn.js` (NEW) — toggle `.active` on click; Escape + click-outside close; opening burger auto-closes the kit dialog (`#id_kit_bag_dialog`) + the bud slide-out panel (`html.bud-open`) by dispatching a click to the owning btn (routes through that btn's own toggle/close path — no fetch on close). `bindBurger()` returns an `AbortController` so test code (+ any future re-bind callers) can detach all listeners cleanly via `ac.abort()`.
`static_src/scss/_burger.scss` (NEW) — burger sits parallel to gear-above-kit but on the bud-side. Portrait: bottom:4.2rem; left:0.5rem (above #id_bud_btn). Landscape: bottom:0.5rem; right:4.2rem (to the LEFT of #id_bud_btn). Fan is a CSS radial menu w. each sub-btn's `--angle = --base + --i * 30deg`. Portrait `--base: 0deg` (arc 12→4 o'clock), landscape `--base: -90deg` (arc 9→1 o'clock). Sub-btn radius `--r: 7.75rem`. Indices: voice=0, sky=1, earth=2, sea=3, text=4 (user-spec'd clockwise order).
room.html includes the partial + the script; the burger renders unconditionally regardless of `gate_status` / `table_status`.
## Universal landscape btn refactor
Sprint replaces the prior centred-in-sidebar landscape arrangement w. a kit-at-top + bud-at-bottom + gear/burger as horizontal partners. Applies to every page in landscape (was scoped to .room-page in the first iteration).
`_game-kit.scss` — kit_btn landscape moves to top:0.5rem; right:0.5rem (was bottom:0.5rem centred in sidebar). The 0.5rem right literal (not the calc((--sidebar-w - 3rem)/2)=1rem) produces a 0.7rem edge-to-edge gap w. gear at right:4.2rem — matching the portrait gear-above-kit gap exactly.
`_bud.scss` — bud_btn landscape moves to bottom:0.5rem; right:0.5rem (was top:0.5rem centred in sidebar). Same 0.5rem literal as kit_btn. bud_panel #id_recipient relocates to bottom:0.5rem (was top:0.5rem) + transform-origin flips to right center. .bud-suggestions rise upward from above the panel (bottom:4rem) instead of dropping from below.
`_applets.scss` — .gear-btn landscape moves to top:0.5rem; right:4.2rem (was centred bottom:3.95rem). All applet menus anchor at top:2.6rem; right:4.2rem (beneath the gear's leftward arc) extending DOWN-LEFT into the viewport. #id_room_menu joins the shared portrait position list (was bespoke in _room.scss).
`_room.scss` — bespoke #id_room_menu rule deleted entirely. The menu now inherits %applet-menu + the shared portrait position list — same chrome + behaviour as #id_post_menu / #id_billscroll_menu. Earlier iteration tried flex-direction:row in landscape; reverted per user request — "lose all scss specificity" wins.
`_card-deck.scss` — obsolete `#id_room_menu { right: 2.5rem; }` override in the XL+landscape block deleted. Was a same-specificity hack to beat _applets.scss's old centred position; no longer needed w. the consolidated rule.
## kit_bag_dialog vertical bar in landscape
`_game-kit.scss` — when open in landscape, dialog covers the right sidebar (top:0; bottom:0; right:0; width: var(--sidebar-w)). Slides in from off-viewport right by animating max-width 0 → var(--sidebar-w). Opaque bg (rgba(--priUser, 1) — was 0.97). z-index: 319 (above burger at 318) so it lands in front of the burger btn when open. Top-edge border → left-edge border.
Inner content flips to `flex-direction: column-reverse` so DOM order Deck→Dice→Trinket→Tokens paints visually bottom→top. .kit-bag-section also column-reverse → icon row above label. .kit-bag-label drops vertical-rl + the rotate(180deg) scaleX(1.3) transform, reads horizontally. .kit-bag-row--scroll flips to column + overflow-y for the Tokens scrollable row.
`game-kit.js attachTooltip()` — 2-axis tooltip clamp matching sky-wheel.js + wallet.js's pattern. Horizontal: left edge stays within [1rem, viewport-ttW-1rem]. Vertical: prefer ABOVE the element; flip BELOW when tooltip is too tall to fit above (e.g. landscape kit bar w. Tokens row near top). Resets top/bottom on mouseleave so next show measures fresh.
## Tests
`apps/epic/tests/integrated/test_views.py` (+1 class, 6 ITs) — RoomBurgerBtnRenderTest: burger_btn renders, fan container renders, 5 sub-btns w. correct ids, icons match spec, burger-btn.js loaded, burger persists thru table_status.
`static_src/tests/BurgerSpec.js` (NEW, 19 Jasmine specs) — bindBurger() returns AbortController; click toggle; Escape close; click-outside close; opening burger closes kit dialog + bud panel when set; AbortController teardown removes listeners.
All 1356 IT+UT green (+6 new from RoomBurgerBtnRenderTest, was 1350). Jasmine suite green (was 220-something specs, +19 BurgerSpec).
Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 20:40:33 -04:00
|
|
|
position: fixed;
|
|
|
|
|
top: 2.6rem;
|
|
|
|
|
right: 4.2rem;
|
|
|
|
|
bottom: auto;
|
|
|
|
|
left: auto;
|
2026-03-23 01:06:14 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-24 17:31:51 -04:00
|
|
|
// ── Applet box visual shell (reusable outside the grid) ────
|
|
|
|
|
%applet-box {
|
|
|
|
|
border:
|
|
|
|
|
0.2rem solid rgba(var(--secUser), 0.5),
|
|
|
|
|
;
|
|
|
|
|
box-shadow:
|
|
|
|
|
inset -0.125rem -0.125rem 0 rgba(var(--ninUser), 0.125),
|
|
|
|
|
inset 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.8)
|
|
|
|
|
;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.125);
|
|
|
|
|
border-radius: 0.75rem;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 0.75rem 0.75rem 0.75rem 2.5rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
2026-05-08 14:50:28 -04:00
|
|
|
// Hide any inner scrollbars (e.g. My Sky applet's #id_applet_sky_form_wrap)
|
|
|
|
|
// so they obey the same scrollbar-less treatment as the page apertures
|
|
|
|
|
// (gameboard / billboard / dashboard apertures already use this same pair
|
|
|
|
|
// — keeps the dark theme consistent w.o. the OS-default white track bleeding
|
|
|
|
|
// through inside an applet).
|
|
|
|
|
*::-webkit-scrollbar { display: none; }
|
|
|
|
|
* { scrollbar-width: none; }
|
|
|
|
|
|
2026-03-24 17:31:51 -04:00
|
|
|
> h2 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 2rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
writing-mode: vertical-rl;
|
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding-right: 0.2rem;
|
|
|
|
|
color: rgba(var(--secUser), 1);
|
|
|
|
|
text-shadow:
|
|
|
|
|
1px 1px 0 rgba(255, 255, 255, 0.06),
|
|
|
|
|
-0.06rem -0.06rem 0 rgba(0, 0, 0, 0.25)
|
|
|
|
|
;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.125);
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 0 0.5rem rgba(var(--priUser), 0.5),
|
|
|
|
|
0.12rem 0.12rem 0.5rem rgba(0, 0, 0, 0.5),
|
|
|
|
|
;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
2026-04-03 14:55:37 -04:00
|
|
|
a {
|
|
|
|
|
color: rgba(var(--terUser), 1);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: rgba(var(--ninUser), 1);
|
|
|
|
|
text-shadow: 0 0 0.5rem rgba(var(--terUser), 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-03-24 17:31:51 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 21:52:54 -04:00
|
|
|
// ── Applets grid (shared across all boards) ────────────────
|
|
|
|
|
%applets-grid {
|
|
|
|
|
container-type: inline-size;
|
|
|
|
|
--grid-gap: 0.5rem;
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(12, 1fr);
|
|
|
|
|
grid-auto-rows: 3rem;
|
|
|
|
|
gap: var(--grid-gap);
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
mask-image: linear-gradient(
|
|
|
|
|
to bottom,
|
|
|
|
|
transparent 0%,
|
|
|
|
|
black 2%,
|
2026-03-22 14:36:02 -04:00
|
|
|
black 99%,
|
2026-03-09 21:52:54 -04:00
|
|
|
transparent 100%
|
|
|
|
|
);
|
2026-04-06 20:11:24 -04:00
|
|
|
margin-left: 1rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
@media (orientation: landscape) and (min-width: 900px) {
|
|
|
|
|
margin-left: 2rem;
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
}
|
|
|
|
|
@media (orientation: landscape) and (min-width: 1800px) {
|
|
|
|
|
margin-left: 4rem;
|
|
|
|
|
margin-top: 4rem;
|
|
|
|
|
}
|
2026-03-09 21:52:54 -04:00
|
|
|
|
|
|
|
|
section {
|
2026-03-24 17:31:51 -04:00
|
|
|
@extend %applet-box;
|
2026-03-09 21:52:54 -04:00
|
|
|
grid-column: span var(--applet-cols, 12);
|
|
|
|
|
grid-row: span var(--applet-rows, 3);
|
|
|
|
|
|
|
|
|
|
@container (max-width: 550px) {
|
|
|
|
|
grid-column: span 12;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-24 16:46:46 -04:00
|
|
|
#id_applets_container { @extend %applets-grid; }
|
|
|
|
|
#id_game_applets_container { @extend %applets-grid; }
|
|
|
|
|
#id_wallet_applets_container { @extend %applets-grid; }
|
|
|
|
|
#id_billboard_applets_container { @extend %applets-grid; }
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_gk_sections_container { @extend %applets-grid; }
|