Anomalie : refonte fiche — 3 champs Technique/Narratif/Exemples

- DataModel : suppression 'description', ajout 'exemples' (HTMLField)
- Template anomaly.hbs : suppression onglets, 3 sections éditables
  directement (sans bouton masqué), scroll interne
- Styles : fond crème + titres de section Art Déco + éditeurs blancs
  avec texte sombre lisible (fix couleur jaune illisible)
- item-sheets.mjs : contexte enrichedExemples + hauteur fenêtre 560px
- lang/fr.json : clé CELESTOPOL.Item.exemples

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-29 16:35:37 +02:00
parent 39f390f361
commit e0ccf6de9c
5 changed files with 69 additions and 20 deletions

View File

@@ -276,6 +276,50 @@
color: var(--cel-orange-light);
}
}
// Corps principal sans onglets
.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;
// ProseMirror reset
.editor-content, .prosemirror { color: #1a1209; background: transparent; }
p { margin: 0 0 4px 0; color: #1a1209; }
}
}
}
// Equipment-specific