- Only the engraving burin and the workshop plan (while the workshop is open) keep a card in the bag, now compact: art on the left, name, help and action on the right. - Every other item (destination items, wind rose, anchor, balm, oblivion scroll) is shown small on the same row, with what it does and where to use it in a tooltip. - The oblivion card picker is gone: the scroll is used from a card's sheet. - The bag's styles move to their own sheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
3.5 KiB
SCSS
29 lines
3.5 KiB
SCSS
// Rôle : met en page le Sac du Veilleur des Expéditions de Sokko TCG : replié, la rangée des objets ; déplié, une carte compacte par
|
|
// objet qui s'utilise depuis le Sac (Burin, plan d'atelier), puis les autres en petit sur la même ligne, avec leur rôle au survol.
|
|
|
|
.nds-panel.nebula-expedition-bag { display: grid; gap: var(--space-2); padding: var(--space-4); }
|
|
// En-tête du Sac : le titre, replié la rangée des objets (illustration et quantité), puis le bouton qui l'ouvre ou le replie.
|
|
.nebula-expedition-bag-heading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
|
|
.nebula-expedition-bag-heading h3 { margin: 0; }
|
|
.nebula-expedition-bag-heading > .nds-button { width: auto; margin-left: auto; }
|
|
.nebula-expedition-bag ul.nebula-bag-strip { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
|
.nebula-bag-strip .nebula-bag-art { width: 56px; height: 46px; }
|
|
.nebula-bag-strip .nebula-bag-count { right: -4px; bottom: -4px; padding: 0 5px; }
|
|
// Déplié : les cartes des objets qui s'utilisent d'ici, puis les autres en petit, sur la même ligne tant que la place le permet.
|
|
.nebula-expedition-bag-items { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
|
|
// Carte compacte : l'illustration à gauche, le nom et l'aide à droite, l'action dessous, sur la largeur du texte.
|
|
.nebula-expedition-bag ul.nebula-bag-items { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
|
.nds-card.nebula-bag-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: var(--space-1) var(--space-3); width: 340px; max-width: 100%; padding: var(--space-2) var(--space-3); }
|
|
.nebula-bag-item .nebula-bag-art { grid-row: span 2; height: 64px; }
|
|
.nebula-bag-text { display: grid; gap: 2px; align-content: start; }
|
|
.nebula-bag-text strong { color: var(--color-text-primary); }
|
|
.nebula-bag-item > .nds-button { justify-self: start; width: auto; }
|
|
// Illustration de l'objet, détourée sur un fond discret, et sa quantité en pastille.
|
|
.nebula-bag-art { position: relative; display: flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 45%, rgba(167, 139, 250, 0.22), rgba(0, 0, 0, 0.12) 70%); }
|
|
.nebula-bag-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(2, 6, 18, 0.45)); }
|
|
.nebula-bag-art .nebula-mask-icon { width: 34px; height: 34px; color: var(--color-text-secondary); }
|
|
.nebula-bag-count { position: absolute; right: -4px; bottom: -4px; padding: 0 5px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-elevated); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
// Objets qui s'utilisent ailleurs : en petit, l'illustration et la quantité au-dessus du nom ; leur rôle et où s'en servir au survol.
|
|
.nebula-expedition-bag ul.nebula-bag-minis { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0; padding: 0; list-style: none; }
|
|
.nebula-bag-mini { display: grid; justify-items: center; gap: var(--space-1); width: 84px; border-radius: var(--radius-sm); color: var(--color-text-secondary); font-size: var(--font-size-xs); line-height: 1.25; text-align: center; cursor: help; }
|
|
.nebula-bag-mini .nebula-bag-art { width: 56px; height: 46px; }
|