Center the Guild's done sign and grey finished quest art
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m31s
Validate and deploy Sokko G / deploy (push) Successful in 19s

The "Fait" sign keeps its two nails like "En groupe", with the green
check inside the text so it stays centered. A finished quest's art is
greyed at 80 %, still brighter than a locked quest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-28 17:17:38 +01:00
parent 8c0771f06f
commit 4321559831
4 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,7 @@ function QuestTile({ id, art, kind, title, description, status = null, action, h
{sign ? <div className="nds-card-cover nebula-quest-cover" aria-hidden="true"><img src={art} alt="" loading="lazy" /></div>
: <a className="nds-card-cover nebula-quest-cover" href={href} tabIndex={-1} aria-hidden="true"><img src={art} alt="" loading="lazy" /></a>}
{sign && <span className="nebula-quest-sign">{sign}</span>}
{done && doneSign && <span className="nebula-quest-sign" data-kind="done">{doneSign}</span>}
{done && doneSign && <span className="nebula-quest-sign" data-kind="done"><i aria-hidden="true">✓</i>{doneSign}</span>}
{badge}
</div>
<div className="nds-card-body nebula-quest-body">

View file

@ -177,11 +177,11 @@
.nebula-quest-sign { position: absolute; z-index: 1; top: 34%; left: 50%; padding: 6px var(--space-6); border: 2px solid #4a2c17; border-radius: 4px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 6px), linear-gradient(180deg, #c58a4f, #9a6233); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 228, 180, 0.45); color: #fff3dc; font-size: var(--font-size-lg); font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; text-shadow: 0 1px 1px rgba(60, 30, 10, 0.9); transform: translate(-50%, -50%) rotate(-7deg); pointer-events: none; }
.nebula-quest-sign::before, .nebula-quest-sign::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8e2d6, #6b6257); }
.nebula-quest-sign::before { left: 8px; }
// « Fait » : la même pancarte, penchée de l'autre côté, avec une coche verte ; l'illustration s'assombrit un peu.
.nebula-quest-sign[data-kind="done"] { z-index: 2; transform: translate(-50%, -50%) rotate(6deg); }
.nebula-quest-sign[data-kind="done"] { padding-left: calc(var(--space-6) + 0.2em); }
.nebula-quest-sign[data-kind="done"]::before { content: "✓"; position: static; display: inline-block; width: auto; height: auto; margin: 0 0.35em 0 0; border-radius: 0; background: none; color: #8ff0b8; text-shadow: 0 1px 1px rgba(10, 40, 20, 0.9); }
.nebula-guild-notices .nds-card.nebula-quest[data-done] .nebula-quest-cover img { filter: brightness(0.62) saturate(0.85); }
// « Fait » : la même pancarte (deux clous), penchée de l'autre côté, la coche verte dans le texte pour qu'il reste centré entre les
// clous ; l'illustration se grise, en restant plus claire qu'une quête verrouillée.
.nebula-quest-sign[data-kind="done"] { z-index: 2; display: inline-flex; align-items: center; gap: 0.35em; transform: translate(-50%, -50%) rotate(6deg); }
.nebula-quest-sign[data-kind="done"] i { color: #8ff0b8; font-style: normal; text-shadow: 0 1px 1px rgba(10, 40, 20, 0.9); }
.nebula-guild-notices .nds-card.nebula-quest[data-done] .nebula-quest-cover img { filter: grayscale(0.8) brightness(0.72); }
.nebula-quest-sign::after { right: 8px; }
.nebula-guild-notices .nds-card-body.nebula-quest-body { grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--space-2); align-content: normal; padding: var(--space-4); }
.nebula-guild-notices .nebula-quest-body .nds-card-actions { align-self: end; padding-top: var(--space-2); }