feat: ajoute le champ 'valeur' sur l'item Aspect
- DataModel : champ NumberField 'valeur' (entier, min 0, défaut 0) - Fiche item aspect.hbs : champ valeur dans le header - Fiche personnage : affiche item.system.valeur dans la liste des aspects - CSS : .item-value dans cel-item-row (vert, gras) ; .item-header-valeur dans items.less - i18n : CELESTOPOL.Aspect.valeur Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -82,6 +82,29 @@
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.item-header-valeur {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
label {
|
||||
font-size: 0.8em;
|
||||
color: var(--cel-orange-light);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
input[type="number"] {
|
||||
width: 52px;
|
||||
background: rgba(0,0,0,0.15);
|
||||
border: 1px solid var(--cel-orange-light);
|
||||
border-radius: 3px;
|
||||
color: var(--cel-orange);
|
||||
font-weight: bold;
|
||||
font-size: 1em;
|
||||
text-align: center;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-meta {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
|
||||
@@ -72,6 +72,13 @@
|
||||
|
||||
.item-name { flex: 1; font-style: italic; }
|
||||
|
||||
.item-value {
|
||||
font-weight: bold;
|
||||
min-width: 24px;
|
||||
text-align: center;
|
||||
color: var(--cel-green);
|
||||
}
|
||||
|
||||
.item-controls {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
|
||||
Reference in New Issue
Block a user