new _kit_bag_panel.html partial in core to allow user to manage equipped kit items from anywhere on site; #id_kit_btn moved from _footer.html partial directly into a base.html include; new trinket for superusers now incl. in apps.lyric.models; apps.gameboard.views handles this new type of PASS token; apps.epic.views allows payment with several different token types based on rarity & expiration hierarchy; kit bag and PASS functionality now handled in apps.dashboard.views; /kit-bag/ now pathed in .urls; styles abound; fully passing test suite (tho much work to be done, chiefly with stacking like coins in FEFO order)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-03-15 01:17:09 -04:00
parent 4baaa63430
commit 2d453dbc78
16 changed files with 521 additions and 23 deletions

View File

@@ -77,6 +77,27 @@
#id_wallet_applet_menu { @extend %applet-menu; }
#id_room_menu { @extend %applet-menu; }
// Page-level gear buttons — fixed to viewport bottom-right
.gameboard-page,
.dashboard-page,
.wallet-page {
> .gear-btn {
position: fixed;
bottom: 4.2rem;
right: 0.5rem;
z-index: 202;
}
}
#id_dash_applet_menu,
#id_game_applet_menu,
#id_wallet_applet_menu {
position: fixed;
bottom: 6.6rem;
right: 1rem;
z-index: 202;
}
// ── Applets grid (shared across all boards) ────────────────
%applets-grid {
container-type: inline-size;

View File

@@ -0,0 +1,123 @@
#id_kit_btn {
position: fixed;
bottom: 0.5rem;
right: 0.5rem;
z-index: 205;
font-size: 1.75rem;
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);
&:hover,
&.active {
color: rgba(var(--quaUser), 1);
border-color: rgba(var(--quaUser), 1);
}
}
#id_kit_bag_dialog {
// Override dialog's native display:none so we can drive visibility via max-height
display: block !important;
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
max-width: none;
margin: 0;
padding: 0;
border: none;
border-top: 0.1rem solid rgba(var(--terUser), 0.3);
background: rgba(var(--priUser), 0.97);
z-index: 204;
overflow: hidden;
// Closed state
max-height: 0;
visibility: hidden;
transition: max-height 0.25s ease-out, visibility 0s 0.25s;
&[open] {
max-height: 5rem;
visibility: visible;
transition: max-height 0.25s ease-out, visibility 0s;
display: flex !important;
flex-direction: row;
gap: 1.5rem;
align-items: center;
padding: 0.4rem 1rem;
}
}
.kit-bag-section {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.kit-bag-label {
font-size: 0.55rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: rgba(var(--secUser), 0.35);
writing-mode: vertical-rl;
text-orientation: mixed;
transform: rotate(180deg);
}
.kit-bag-row {
display: flex;
flex-direction: row;
gap: 0.4rem;
}
.kit-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.15rem;
padding: 0.3rem 0.4rem;
border: 0.1rem solid rgba(var(--terUser), 0.35);
border-radius: 0.4rem;
cursor: pointer;
min-width: 3rem;
transition: border-color 0.15s, box-shadow 0.15s;
i {
font-size: 1.1rem;
color: rgba(var(--terUser), 0.7);
}
.kit-card-label {
font-size: 0.5rem;
color: rgba(var(--secUser), 0.45);
text-align: center;
white-space: nowrap;
}
&:hover {
border-color: rgba(var(--terUser), 0.7);
}
&.selected {
border-color: rgba(var(--terUser), 1);
box-shadow:
0 0 0.4rem rgba(var(--terUser), 0.5),
0 0 1rem rgba(var(--terUser), 0.2)
;
i { color: rgba(var(--terUser), 1); }
}
}
.kit-bag-empty {
font-size: 0.7rem;
color: rgba(var(--secUser), 0.4);
}

View File

@@ -10,11 +10,49 @@ $gate-line: 2px;
min-height: 60vh;
}
.room-page .gear-btn,
#id_room_menu {
.room-page .gear-btn {
z-index: 101;
}
#id_room_menu {
position: absolute;
bottom: 3.5rem;
right: 0.5rem;
z-index: 101;
background-color: rgba(var(--priUser), 0.95);
border: 0.15rem solid rgba(var(--secUser), 1);
box-shadow:
0 0 0.5rem rgba(var(--secUser), 0.75),
0.12rem 0.12rem 0.5rem rgba(0, 0, 0, 0.25)
;
border-radius: 0.75rem;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
body:has(.gate-overlay) {
overflow: hidden;
// Pin gear controls to the visual viewport,
// bypassing iOS 100vh chrome-inclusion bug.
// Offset upward so gear btn clears the kit btn below it.
.room-page .gear-btn {
position: fixed;
bottom: 4.2rem;
right: 0.5rem;
z-index: 202;
}
#id_room_menu {
position: fixed;
bottom: 6.6rem;
right: 0.5rem;
z-index: 202;
}
}
.gate-overlay {
position: fixed;
inset: 0;
@@ -24,6 +62,9 @@ $gate-line: 2px;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 100;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
.gate-modal {
@@ -43,7 +84,7 @@ $gate-line: 2px;
color: rgba(var(--secUser), 0.6);
margin-bottom: 1rem;
text-align: justify;
text-align-last: justify;
text-align-last: center;
text-justify: inter-character;
text-transform: uppercase;
text-shadow:
@@ -92,6 +133,14 @@ $gate-line: 2px;
pointer-events: none;
}
&.ready {
border-color: rgba(var(--terUser), 1);
box-shadow:
0 0 0.6rem rgba(var(--terUser), 0.6),
0 0 1.6rem rgba(var(--terUser), 0.25)
;
}
&.pending,
&.claimed {
box-shadow:
@@ -264,21 +313,85 @@ $gate-line: 2px;
}
}
// Mobile: 2×3 grid, both rows left-to-right
// Narrow viewport — scale down, 2×3 slot grid (portrait mobile + narrow desktop)
@media (max-width: 550px) {
.gate-modal .gate-slots {
display: grid;
grid-template-columns: repeat(3, $gate-node);
grid-template-rows: repeat(2, $gate-node);
gap: $gate-gap;
.gate-modal {
padding: 1.25rem 1.5rem;
.gate-slot {
&:nth-child(1) { grid-column: 1; grid-row: 1; }
&:nth-child(2) { grid-column: 2; grid-row: 1; }
&:nth-child(3) { grid-column: 3; grid-row: 1; }
&:nth-child(4) { grid-column: 1; grid-row: 2; }
&:nth-child(5) { grid-column: 2; grid-row: 2; }
&:nth-child(6) { grid-column: 3; grid-row: 2; }
.gate-header {
h1 { font-size: 1.5rem; }
.gate-status-wrap { margin-bottom: 0.5rem; }
}
.token-slot { min-width: 150px; }
.gate-slots {
display: grid;
grid-template-columns: repeat(3, 52px);
grid-template-rows: repeat(2, 52px);
gap: 24px;
.gate-slot {
width: 52px;
height: 52px;
&:nth-child(1) { grid-column: 1; grid-row: 1; }
&:nth-child(2) { grid-column: 2; grid-row: 1; }
&:nth-child(3) { grid-column: 3; grid-row: 1; }
&:nth-child(4) { grid-column: 1; grid-row: 2; }
&:nth-child(5) { grid-column: 2; grid-row: 2; }
&:nth-child(6) { grid-column: 3; grid-row: 2; }
}
}
}
}
// Landscape mobile — aggressively scale down to fit short viewport
@media (orientation: landscape) and (max-width: 1023px) {
.room-page .gear-btn {
bottom: 3.5rem;
}
.gate-modal {
padding: 0.6rem 1.25rem;
.gate-header {
h1 { font-size: 1rem; margin: 0 0 0.25rem; }
.gate-status-wrap { font-size: 0.65em; margin-bottom: 0.35rem; }
}
.token-slot {
min-width: 130px;
.token-rails,
button.token-rails { padding: 0.4rem 0.35rem; }
.token-panel {
padding: 0.3rem 0.5rem;
.token-denomination { font-size: 1.1em; }
}
}
.gate-slots {
gap: 14px;
.gate-slot {
width: 40px;
height: 40px;
.slot-number { font-size: 0.6em; }
}
}
.form-container {
h3 { font-size: 0.85rem; margin: 0.25rem 0; }
form { gap: 0.35rem; }
.form-control-lg {
--_pad-v: 0.4rem;
font-size: 0.9rem;
}
}
}
}

View File

@@ -6,6 +6,7 @@
@import 'gameboard';
@import 'palette-picker';
@import 'room';
@import 'game-kit';
@import 'wallet-tokens';