GAME KIT: DON|DOFF equip system — portal tooltips, kit bag sync, btn-disabled fix
- DON/DOFF buttons on left edge of game kit applet portal tooltip (mirroring FLIP/FYI) - equip-trinket/unequip-trinket/equip-deck/unequip-deck views + URLs - Portal stays open after DON/DOFF; buttons swap state in-place (_setEquipState) - _syncTokenButtons: updates all .tt DON/DOFF buttons after equip state change - _syncKitBagDialog (DOFF): replaces card with grayed placeholder icon in-place - _refreshKitDialog (DON): re-fetches kit content so newly-equipped card appears immediately - kit-content-refreshed event: game-kit.js re-attaches card listeners after re-fetch - Bounding box expanded 24px left so buttons at portal edge don't trigger close - mini-portal pinned with right (not left) so text width changes grow/shrink leftward - btn-disabled moved dead last in .btn block — wins by source order, no !important needed - Kit bag panel: trinket + token sections always render (placeholder when empty) - Backstage Pass in GameKitEquipTest setUp (is_staff, natural unequipped state) - Portal padding 0.75rem / 1.5rem; tt-description/shoptalk smaller; tt-expiry --priRd - Wallet tokens CSS hover rule for .tt removed (portal-only now) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -122,6 +122,25 @@ body.page-gameboard {
|
||||
position: fixed;
|
||||
z-index: 9999;
|
||||
|
||||
padding: 0.75rem 1.5rem;
|
||||
|
||||
.tt-title { font-size: 1rem; }
|
||||
.tt-description { padding: 0.125rem; font-size: 0.75rem; }
|
||||
.tt-shoptalk { font-size: 0.75rem; opacity: 0.75; }
|
||||
.tt-expiry { font-size: 1rem; color: rgba(var(--priRd), 1); }
|
||||
|
||||
.tt-equip-btns {
|
||||
position: absolute;
|
||||
left: -1rem;
|
||||
top: -1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
z-index: 1;
|
||||
|
||||
.btn { margin: 0; }
|
||||
}
|
||||
|
||||
&.active { display: block; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user