Offer the destination items under Sokko TCG's destinations of the day
- Each owned item that would add a destination today (guide star, sky chart, or enough treasure map fragments) gets a dashed frame under the destinations: what it does, the difficulty and the loot bonus of the added destination. A click uses the item, as in the bag. - Frames appear only while the item is owned in sufficient number and its slot is still free, and share the destinations' grid. - "1 destinations débloquées" becomes singular. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bffbe36cbe
commit
9d2c561fc6
10 changed files with 94 additions and 6 deletions
|
|
@ -103,3 +103,17 @@
|
|||
.nebula-loot-legend [data-trend="up"] .nebula-loot-arrow { fill: var(--color-success); }
|
||||
.nebula-loot-legend [data-trend="down"] .nebula-loot-arrow { fill: var(--color-danger); }
|
||||
|
||||
|
||||
// Destinations à ajouter avec un objet du Sac, sous celles du jour : un cadre pointillé par objet, l'illustration de l'objet à
|
||||
// gauche, l'invitation, l'effet et ce que vaudrait la destination. Un clic utilise l'objet.
|
||||
// Même grille que les destinations du jour : chaque cadre a la largeur d'une destination, quel que soit leur nombre.
|
||||
.nebula-bonus-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); margin: 0; padding: 0; list-style: none; }
|
||||
@media (max-width: 760px) {
|
||||
.nebula-bonus-offers { grid-template-columns: minmax(0, 1fr); }
|
||||
}
|
||||
.nebula-bonus-offer { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: center; width: 100%; height: 100%; padding: var(--space-3); border: 2px dashed rgba(246, 196, 83, 0.45); border-radius: var(--radius-md); background: rgba(246, 196, 83, 0.04); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard); }
|
||||
.nebula-bonus-offer:hover:not(:disabled) { border-color: rgba(246, 196, 83, 0.85); background: rgba(246, 196, 83, 0.1); }
|
||||
.nebula-bonus-offer:disabled { cursor: default; opacity: 0.6; }
|
||||
.nebula-bonus-offer img { width: 72px; height: 60px; object-fit: contain; }
|
||||
.nebula-bonus-offer-copy { display: grid; gap: var(--space-1); min-width: 0; }
|
||||
.nebula-bonus-offer-badges { display: flex; flex-wrap: wrap; gap: var(--space-1); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue