Items : layout homogène basé sur le modèle Anomalie

- Mixins LESS partagés (item-body, item-section, item-section-title, item-editor-wrap)
- anomaly-body/section utilisent désormais ces mixins
- Templates equipment/weapon/armure redessinés avec .item-body + .item-section
- Fond crème, titre orange-left-border, wrap blanc ProseMirror sur tous les items

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-29 17:22:01 +02:00
parent 50f6c22a08
commit 1f7ce03498
4 changed files with 96 additions and 76 deletions

View File

@@ -8,32 +8,37 @@
</div>
</header>
<div class="armure-stats">
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.protection"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.protection" value="{{system.protection}}" min="1" max="2">
{{else}}
<span>{{system.protection}}</span>
{{/if}}
<div class="item-body">
<div class="armure-stats">
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.protection"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.protection" value="{{system.protection}}" min="1" max="2">
{{else}}
<span>{{system.protection}}</span>
{{/if}}
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.protectionHint"}}</div>
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.protectionHint"}}</div>
</div>
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.malus"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.malus" value="{{system.malus}}" min="0" max="2">
{{else}}
<span>{{system.malus}}</span>
{{/if}}
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.malus"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.malus" value="{{system.malus}}" min="0" max="2">
{{else}}
<span>{{system.malus}}</span>
{{/if}}
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.malusHint"}}</div>
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.malusHint"}}</div>
</div>
</div>
<div class="form-group description-group">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
<div class="item-section">
<div class="item-section-title">{{localize "CELESTOPOL.Actor.description"}}</div>
<div class="item-editor-wrap">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</div>
</div>
</div>
</div>

View File

@@ -8,7 +8,12 @@
</div>
</header>
<div class="form-group description-group">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
<div class="item-body">
<div class="item-section">
<div class="item-section-title">{{localize "CELESTOPOL.Actor.description"}}</div>
<div class="item-editor-wrap">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</div>
</div>
</div>
</div>

View File

@@ -40,13 +40,18 @@
</div>
</header>
<div class="weapon-damage-badge">
<span class="damage-label">{{localize "CELESTOPOL.Weapon.degats"}}</span>
<span class="damage-value">{{system.degats}}</span>
<span class="damage-hint">{{localize (lookup (lookup damageTypes system.degats) "hint")}}</span>
</div>
<div class="item-body">
<div class="weapon-damage-badge">
<span class="damage-label">{{localize "CELESTOPOL.Weapon.degats"}}</span>
<span class="damage-value">{{system.degats}}</span>
<span class="damage-hint">{{localize (lookup (lookup damageTypes system.degats) "hint")}}</span>
</div>
<div class="form-group description-group">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
<div class="item-section">
<div class="item-section-title">{{localize "CELESTOPOL.Actor.description"}}</div>
<div class="item-editor-wrap">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</div>
</div>
</div>
</div>