- Players turn on alerts one by one in their account: someone opens an expedition group, or one of their expeditions returns; both stay off until chosen. - Opening a group queues a direct message for each other subscribed player; every 30 seconds the server queues returned expeditions once and sends pending messages to palico-bot's direct message route. - Permanent refusals (unknown account, closed direct messages) or five failures stop retries; only real Discord accounts receive alerts, and sent rows are purged after 30 days. - CARDS_DISCORD_ALERTS_URL and CARDS_DISCORD_ALERTS_KEY enable the feature; Administration › Guilde can turn every alert off, and the privacy notice explains what is sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
120 lines
12 KiB
SCSS
120 lines
12 KiB
SCSS
// Rôle : met en page les Expéditions de Sokko TCG (expéditions du joueur, destinations du jour, équipe par rôle, aperçu).
|
||
// Les composants restent ceux du design system (nds-panel, nds-card, nds-button, nds-badge, nds-inline-notice) ; ce fichier ne règle que la disposition.
|
||
|
||
.nebula-expeditions { display: grid; gap: var(--space-4); min-width: 0; }
|
||
.nebula-expeditions .nds-section-heading.nebula-section-heading { margin-bottom: 0; }
|
||
.nebula-expeditions > .nebula-form-help { margin: 0; }
|
||
.nebula-expeditions > .nds-inline-notice { margin: 0; }
|
||
.nebula-expeditions h3, .nebula-expeditions h4 { margin: 0; }
|
||
|
||
// Expéditions du joueur : une carte par expédition, couverture de la destination, équipe et butin.
|
||
.nebula-expedition-active { display: grid; gap: var(--space-3); }
|
||
.nebula-expedition-reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); }
|
||
.nds-card.nebula-expedition-report { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-4); }
|
||
.nds-card-cover.nebula-expedition-report-cover { width: 88px; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-md); }
|
||
.nebula-expedition-report-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||
.nds-card-body.nebula-expedition-report-body { display: grid; gap: var(--space-2); justify-items: start; min-width: 0; padding: 0; }
|
||
.nebula-expedition-report-body p { margin: 0; }
|
||
.nebula-expedition-report-status { color: var(--color-text-primary); font-weight: 700; }
|
||
.nebula-expedition-report-body .nds-card-actions { padding: 0; }
|
||
.nebula-expedition-report-team { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
||
.nebula-expedition-report-team li { display: grid; gap: var(--space-1); justify-items: center; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
|
||
.nebula-expedition-rewards { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||
|
||
// Préparation : quatre étapes empilées.
|
||
.nebula-expedition-plan-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
|
||
.nebula-expedition-planner { display: grid; gap: var(--space-4); }
|
||
.nds-panel.nebula-expedition-step { display: grid; gap: var(--space-3); padding: var(--space-5); }
|
||
.nebula-expedition-step > .nebula-form-help, .nebula-expedition-step > .nds-inline-notice { margin: 0; }
|
||
|
||
.nebula-expedition-destinations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
|
||
.nebula-expedition-destination { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-surface-alt); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard); }
|
||
.nebula-expedition-destination:hover { background: var(--color-bg-hover); }
|
||
.nebula-expedition-destination[aria-pressed="true"] { border-color: rgba(246, 196, 83, 0.54); background: rgba(246, 196, 83, 0.12); }
|
||
.nebula-expedition-destination img { width: 72px; aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: cover; }
|
||
.nebula-expedition-destination-copy { display: grid; gap: var(--space-1); min-width: 0; }
|
||
.nebula-expedition-destination-copy > span:not(.nebula-expedition-destination-roles) { color: var(--color-text-secondary); font-size: var(--font-size-sm); text-wrap: pretty; }
|
||
.nebula-expedition-destination-roles { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
|
||
|
||
.nebula-expedition-choices { display: flex; flex-wrap: wrap; gap: var(--space-3); }
|
||
.nebula-expedition-requirements { display: grid; gap: var(--space-2); }
|
||
.nebula-expedition-requirements ul, .nebula-expedition-checks { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
||
.nebula-expedition-requirements li, .nebula-expedition-checks li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--color-bg-surface-alt); }
|
||
.nebula-expedition-requirements li > span { display: inline-flex; align-items: center; gap: var(--space-2); }
|
||
.nebula-expedition-requirements p { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||
.nebula-expedition-checks li[data-met] strong { color: var(--color-success); }
|
||
|
||
// Équipe : une place par rôle, puis les cartes jouables, triées pour la place choisie.
|
||
.nebula-expedition-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
|
||
.nebula-expedition-slot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
|
||
.nebula-expedition-slot[data-active] { border-color: rgba(246, 196, 83, 0.54); }
|
||
.nebula-expedition-slot > span { flex: 1 1 120px; min-width: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||
.nebula-expedition-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-4) var(--space-3); max-height: 640px; margin: 0; padding: var(--space-1); overflow-y: auto; list-style: none; }
|
||
.nebula-expedition-cards li { display: grid; gap: var(--space-1); justify-items: center; text-align: center; }
|
||
.nebula-expedition-cards li[data-busy] { opacity: 0.55; }
|
||
.nebula-expedition-card-power { color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; }
|
||
.nebula-expedition-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-2); color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||
|
||
.nebula-expedition-preview { display: grid; gap: var(--space-3); }
|
||
.nebula-expedition-preview .nds-inline-notice { margin: 0; }
|
||
.nebula-expedition-expected { margin: 0; color: var(--color-text-primary); }
|
||
|
||
// Administration › Guilde : un panneau par groupe de réglages, des champs alignés en grille.
|
||
.nebula-admin-expeditions { display: grid; gap: var(--space-4); }
|
||
.nebula-admin-expeditions > h2 { margin: var(--space-4) 0 0; }
|
||
.nebula-admin-expedition-group > .nebula-form-help { margin: 0; }
|
||
.nebula-admin-expedition-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-3) var(--space-4); }
|
||
.nebula-admin-expedition-field { display: grid; gap: var(--space-1); align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
|
||
.nebula-admin-expedition-field > span, .nebula-admin-expedition-field > legend { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||
.nebula-admin-expedition-field > legend { margin-bottom: var(--space-1); padding: 0; }
|
||
.nebula-admin-expedition-field > .nds-button { justify-self: start; }
|
||
.nebula-admin-expedition-items { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||
.nebula-admin-expedition-items label { display: grid; flex: 1 1 72px; gap: 2px; min-width: 64px; color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||
.nebula-admin-expedition-destinations { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
||
.nebula-admin-expedition-destinations .nds-list-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3); }
|
||
.nebula-admin-expedition-destinations .nds-list-row > strong { display: inline-flex; flex: 1 1 200px; align-items: center; gap: var(--space-2); }
|
||
.nebula-admin-expedition-destinations .nds-list-row > span { flex: 1 1 200px; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||
.nebula-admin-expedition-destinations label { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||
.nebula-admin-expedition-destinations input { width: 80px; }
|
||
.nebula-admin-expedition-destinations .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
|
||
|
||
// Groupe : membres par rôle (places libres en pointillés), inscription sous la carte du groupe.
|
||
.nebula-expedition-group h4 { margin: 0; }
|
||
.nebula-expedition-group-members { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
||
.nebula-expedition-group-members li, .nebula-expedition-report-team li { min-width: 0; }
|
||
.nebula-expedition-group-members li { display: grid; gap: var(--space-1); justify-items: center; color: var(--color-text-secondary); font-size: var(--font-size-xs); text-align: center; }
|
||
.nebula-expedition-group-members li span { display: grid; }
|
||
.nebula-expedition-group-members strong { color: var(--color-text-primary); }
|
||
.nebula-expedition-group-free { display: grid; place-items: center; min-width: 96px; min-height: 64px; padding: var(--space-2); border: 1px dashed var(--color-border); border-radius: var(--radius-md); }
|
||
.nebula-expedition-group-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||
.nebula-expedition-join { display: grid; gap: var(--space-3); justify-self: stretch; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
|
||
|
||
// Pont des Veilleurs et progression d'une carte dans sa fiche.
|
||
.nds-panel.nebula-expedition-bridge { display: grid; gap: var(--space-2); padding: var(--space-4); }
|
||
.nebula-expedition-bridge p { margin: 0; }
|
||
.nebula-expedition-bridge-row { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2) var(--space-4); }
|
||
.nebula-expedition-bridge-row label { display: grid; gap: 2px; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||
.nebula-expedition-bridge-row input { width: 120px; }
|
||
.nebula-card-progress { display: grid; gap: var(--space-2); margin: var(--space-3) 0; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
|
||
.nebula-card-progress h3, .nebula-card-progress p { margin: 0; }
|
||
.nebula-card-progress h3 { font-size: var(--font-size-base); }
|
||
.nebula-card-progress p { font-size: var(--font-size-sm); }
|
||
|
||
// Équipements dans la fiche de carte et Grimoire des Expéditions.
|
||
.nebula-card-equipment { display: grid; gap: var(--space-2); }
|
||
.nebula-card-equipment h4 { margin: 0; font-size: var(--font-size-sm); }
|
||
.nebula-card-equipment-slots, .nebula-card-equipment-choices { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
||
.nebula-card-equipment-choices { max-height: 260px; overflow-y: auto; }
|
||
.nebula-card-equipment .nds-list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: var(--font-size-sm); }
|
||
.nebula-card-equipment .nds-list-row > span { display: inline-flex; flex: 1 1 200px; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
|
||
.nebula-card-equipment .nds-list-row[data-locked] { color: var(--color-text-muted); border-style: dashed; }
|
||
.nds-panel.nebula-expedition-grimoire { display: grid; gap: var(--space-2); padding: var(--space-4); }
|
||
.nebula-expedition-grimoire h3 { display: flex; align-items: center; gap: var(--space-2); }
|
||
.nebula-expedition-grimoire ul { margin: 0; padding: 0; list-style: none; }
|
||
.nebula-expedition-grimoire p { margin: 0; }
|
||
.nebula-card-equipment .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
|
||
|
||
// Alertes Discord dans la page Compte.
|
||
.nebula-account-alerts ul { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
||
.nebula-account-alerts .nds-list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3); }
|
||
.nebula-account-alerts .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
|