diff --git a/styles/items.less b/styles/items.less index ff03582..6141e31 100644 --- a/styles/items.less +++ b/styles/items.less @@ -2,52 +2,49 @@ // ─── Item sheets shared ─────────────────────────────────────────────────────── -// ── Mixins : corps de fiche homogène ────────────────────────────────────────── -.item-body-mixin() { - background: var(--cel-cream, #f0e8d4); - padding: 10px 12px; - display: flex; - flex-direction: column; - gap: 10px; - overflow-y: auto; - max-height: 370px; -} -.item-section-mixin() { - display: flex; - flex-direction: column; - gap: 4px; -} -.item-section-title-mixin() { - font-family: var(--cel-font-title); - font-size: 0.78em; - text-transform: uppercase; - letter-spacing: 0.07em; - color: var(--cel-green-dark, #0c4c0c); - background: linear-gradient(to right, rgba(12,76,12,0.12), transparent); - border-left: 3px solid var(--cel-orange, #e07b00); - padding: 2px 6px; - margin-bottom: 2px; -} -.item-editor-wrap-mixin() { - background: white; - border: 1px solid rgba(122,92,32,0.3); - border-radius: 3px; - min-height: 60px; - padding: 4px 6px; - color: #1a1209; - font-size: 0.88em; - line-height: 1.5; - .editor-content, .prosemirror { color: #1a1209; background: transparent; } - p { margin: 0 0 4px 0; color: #1a1209; } -} - .fvtt-celestopol.item { - // Classes partagées entre tous les types d'items - .item-body { .item-body-mixin(); } - .item-section { .item-section-mixin(); } - .item-section-title { .item-section-title-mixin(); } - .item-editor-wrap { .item-editor-wrap-mixin(); } + // ── Corps de fiche homogène (partagé par tous les types d'items) ─────────── + .anomaly-body { + background: var(--cel-cream, #f0e8d4); + padding: 10px 12px; + display: flex; + flex-direction: column; + gap: 10px; + overflow-y: auto; + max-height: 370px; + } + + .anomaly-section { + display: flex; + flex-direction: column; + gap: 4px; + + .anomaly-section-title { + font-family: var(--cel-font-title); + font-size: 0.78em; + text-transform: uppercase; + letter-spacing: 0.07em; + color: var(--cel-green-dark, #0c4c0c); + background: linear-gradient(to right, rgba(12,76,12,0.12), transparent); + border-left: 3px solid var(--cel-orange, #e07b00); + padding: 2px 6px; + margin-bottom: 2px; + } + + .anomaly-editor-wrap { + background: white; + border: 1px solid rgba(122,92,32,0.3); + border-radius: 3px; + min-height: 60px; + padding: 4px 6px; + color: #1a1209; + font-size: 0.88em; + line-height: 1.5; + .editor-content, .prosemirror { color: #1a1209; background: transparent; } + p { margin: 0 0 4px 0; color: #1a1209; } + } + } .item-header { display: flex; @@ -324,14 +321,9 @@ } } - // Corps principal sans onglets - .anomaly-body { .item-body-mixin(); } - .anomaly-section { .item-section-mixin(); } - - .anomaly-section { - .anomaly-section-title { .item-section-title-mixin(); } - .anomaly-editor-wrap { .item-editor-wrap-mixin(); } - } + // Corps principal sans onglets : les classes .anomaly-body/.anomaly-section + // sont désormais définies au niveau partagé (voir début du fichier) + } // Equipment-specific &.equipment { diff --git a/templates/armure.hbs b/templates/armure.hbs index 8188153..c99cc15 100644 --- a/templates/armure.hbs +++ b/templates/armure.hbs @@ -8,7 +8,7 @@ -
+
@@ -33,10 +33,9 @@
{{localize "CELESTOPOL.Armure.malusHint"}}
- -
-
{{localize "CELESTOPOL.Actor.description"}}
-
+
+
{{localize "CELESTOPOL.Actor.description"}}
+
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
diff --git a/templates/aspect.hbs b/templates/aspect.hbs index d228e0e..a346ba5 100644 --- a/templates/aspect.hbs +++ b/templates/aspect.hbs @@ -25,19 +25,30 @@
-
- {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}} +
+
+
{{localize "CELESTOPOL.Tab.description"}}
+
+ {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}} +
+
-
- - {{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}} -
-
- - {{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}} +
+
+
{{localize "CELESTOPOL.Item.technique"}}
+
+ {{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}} +
+
+
+
{{localize "CELESTOPOL.Item.narratif"}}
+
+ {{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}} +
+
diff --git a/templates/equipment.hbs b/templates/equipment.hbs index 9721378..322bc7c 100644 --- a/templates/equipment.hbs +++ b/templates/equipment.hbs @@ -8,10 +8,10 @@
-
-
-
{{localize "CELESTOPOL.Actor.description"}}
-
+
+
+
{{localize "CELESTOPOL.Actor.description"}}
+
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
diff --git a/templates/weapon.hbs b/templates/weapon.hbs index 48ee0cc..1a294ee 100644 --- a/templates/weapon.hbs +++ b/templates/weapon.hbs @@ -10,9 +10,7 @@
@@ -20,9 +18,7 @@
@@ -30,9 +26,7 @@
@@ -40,16 +34,15 @@
-
+
{{localize "CELESTOPOL.Weapon.degats"}} {{system.degats}} {{localize (lookup (lookup damageTypes system.degats) "hint")}}
- -
-
{{localize "CELESTOPOL.Actor.description"}}
-
+
+
{{localize "CELESTOPOL.Actor.description"}}
+
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}