Show a full reserve count on the Sokko TCG menu icon and remaining openings while opening a pack
A gold count now sits on the Sokko TCG menu icon while the opening reserve is full, so players notice it from any page. A light reserve route keeps it up to date outside the game, and the game page updates it with every state it gets. The opening stage also lists the remaining openings, apart for the automatic recharge and for openings bought one at a time, since the sidebar reserve is hidden there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2231bf05e1
commit
498e171bc3
14 changed files with 186 additions and 4 deletions
|
|
@ -108,6 +108,10 @@
|
|||
.nebula-opening-stage { display: grid; width: min(100%, 1000px); margin-inline: auto; gap: var(--space-4); }
|
||||
.nebula-opening-stage > .nds-section-heading.nebula-section-heading { margin-bottom: 0; }
|
||||
.nebula-opening-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: 368px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.16), transparent 62%), rgba(5, 7, 17, 0.55); }
|
||||
.nebula-opening-remaining { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--font-size-sm); }
|
||||
.nebula-opening-remaining dl { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; }
|
||||
.nebula-opening-remaining dl > div { display: flex; gap: 6px; }
|
||||
.nebula-opening-remaining dd { margin: 0; color: var(--color-text-primary); font-weight: 700; }
|
||||
.nds-panel.nebula-opening-odds { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); }
|
||||
.nebula-opening-odds :is(h3, p) { margin: 0; }
|
||||
.nebula-opening-odds h3 { font-size: var(--font-size-sm); }
|
||||
|
|
|
|||
|
|
@ -116,6 +116,30 @@
|
|||
-webkit-mask-size: 20px 20px;
|
||||
}
|
||||
|
||||
/* Le pictogramme est un masque : la pastille vit à côté de lui, dans un conteneur positionné. */
|
||||
.nav-icon-slot {
|
||||
position: relative;
|
||||
display: block;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.nav-icon-count {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: -8px;
|
||||
min-width: 17px;
|
||||
height: 17px;
|
||||
padding: 0 4px;
|
||||
border-radius: 999px;
|
||||
background: var(--color-accent-gold);
|
||||
box-shadow: 0 0 0 2px var(--color-bg-sidebar);
|
||||
color: var(--color-text-inverse);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
line-height: 17px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.nav-icon-home {
|
||||
mask-image: url("/static/icons/home.svg");
|
||||
-webkit-mask-image: url("/static/icons/home.svg");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue