From 569edd833d2c68fda1d871f3cbc6df343522ab3b Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Sun, 29 Mar 2026 16:55:15 +0200 Subject: [PATCH] Header personnage : suppression Anomalie, attributs sur ligne initiative MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Suppression du bloc 'Anomalie' (type + valeur) du header - Attributs (Entregent/Fortune/Rêve/Vision) fusionnés sur la même ligne que l'initiative via .header-stat commun - CSS : remplacement .perso-attributs/.perso-attr par .header-stat unifié Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- styles/character.less | 71 ++++++++++++++++++++---------------- templates/character-main.hbs | 24 ++---------- 2 files changed, 44 insertions(+), 51 deletions(-) diff --git a/styles/character.less b/styles/character.less index 23ca57f..121a367 100644 --- a/styles/character.less +++ b/styles/character.less @@ -4,44 +4,53 @@ .fvtt-celestopol.character { - // Attributs perso (Entregent, Fortune, Rêve, Vision) - .perso-attributs { + // ── header-stats-row : initiative + attributs sur une seule ligne ────────── + .header-stats-row { display: flex; - gap: 8px; flex-wrap: wrap; + gap: 6px; margin-top: 4px; + align-items: flex-end; + } - .perso-attr { - display: flex; - flex-direction: column; - align-items: center; - background: rgba(0,0,0,0.25); - border: 1px solid var(--cel-orange); - border-radius: 4px; - padding: 4px 8px; - min-width: 60px; + .header-stat { + display: flex; + flex-direction: column; + align-items: center; + background: rgba(0,0,0,0.25); + border: 1px solid var(--cel-orange); + border-radius: 4px; + padding: 3px 8px; + min-width: 54px; - label { - font-size: 0.6em; - text-transform: uppercase; - color: var(--cel-orange-light); - } + label { + font-size: 0.58em; + text-transform: uppercase; + letter-spacing: 0.04em; + color: var(--cel-orange-light); + white-space: nowrap; + } - .attr-display, .attr-val, .attr-max { - color: var(--cel-orange); - font-family: var(--cel-font-title); - font-size: 1em; - font-weight: bold; - } + .stat-value, .attr-display { + color: var(--cel-orange); + font-family: var(--cel-font-title); + font-size: 1.05em; + font-weight: bold; + line-height: 1.2; + } - input.attr-val, input.attr-max { - width: 28px; - text-align: center; - background: transparent; - border: none; - border-bottom: 1px solid var(--cel-orange-light); - color: var(--cel-orange); - } + .attr-sep { color: rgba(196,154,26,0.5); margin: 0 1px; font-size: 0.85em; } + + input.attr-val, input.attr-max { + width: 24px; + text-align: center; + background: transparent; + border: none; + border-bottom: 1px solid var(--cel-orange-light); + color: var(--cel-orange); + font-family: var(--cel-font-title); + font-size: 1em; + font-weight: bold; } } diff --git a/templates/character-main.hbs b/templates/character-main.hbs index 50e7c61..74a4f6c 100644 --- a/templates/character-main.hbs +++ b/templates/character-main.hbs @@ -23,32 +23,16 @@ {{system.initiative}} -
- - {{#if isEditMode}} - - - {{else}} - {{localize (lookup (lookup anomalyTypes system.anomaly.type) 'label')}} - {{/if}} -
- - - {{!-- Attributs personnage (Entregent, Fortune, Rêve, Vision) --}} -
+ {{!-- Attributs personnage (Entregent, Fortune, Rêve, Vision) --}} {{#each system.attributs as |attr key|}} -
+
{{#if ../isEditMode}} - / + / {{else}} - {{attr.value}} / {{attr.max}} + {{attr.value}}/{{attr.max}} {{/if}}
{{/each}}