Nouveaux items Arme et Armure (DataModel + feuille + CSS)
Items: - CelestopolWeapon : degats (0/1/2/X), portee (contact/courte/longue), description - CelestopolArmure : protection (1-2), malus (0-2), description Config: - WEAPON_DAMAGE_TYPES et WEAPON_RANGE_TYPES ajoutés dans system.mjs - Enregistrement des DataModels, sheets et templates dans fvtt-celestopol.mjs - system.json : types weapon et armure avec htmlFields UI: - weapon.hbs : badge de dégâts avec hint, sélecteurs portée/dégâts - armure.hbs : blocs protection + malus art-déco - items.less : styles .weapon et .armure i18n: clés Weapon.*, Armure.*, Sheet.weapon, Sheet.armure Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -333,4 +333,61 @@
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
// Weapon-specific
|
||||
&.weapon {
|
||||
.weapon-meta {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
.form-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
label { font-size: 0.75em; color: var(--cel-orange-light); white-space: nowrap; }
|
||||
select { background: rgba(0,0,0,0.3); border: 1px solid var(--cel-orange); color: var(--cel-orange); font-family: var(--cel-font-title); border-radius: 3px; padding: 2px 4px; font-size: 0.85em; }
|
||||
}
|
||||
}
|
||||
.weapon-damage-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: var(--cel-green-dark);
|
||||
border: 1px solid var(--cel-orange);
|
||||
border-radius: 6px;
|
||||
padding: 6px 12px;
|
||||
margin: 8px 0;
|
||||
.damage-label { font-size: 0.72em; text-transform: uppercase; color: var(--cel-orange-light); letter-spacing: 0.05em; }
|
||||
.damage-value { font-family: var(--cel-font-title); font-size: 1.6em; font-weight: bold; color: var(--cel-orange); min-width: 28px; text-align: center; }
|
||||
.damage-hint { font-size: 0.78em; color: var(--cel-cream); font-style: italic; }
|
||||
}
|
||||
}
|
||||
|
||||
// Armure-specific
|
||||
&.armure {
|
||||
.armure-stats {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
justify-content: center;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.armure-stat-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: var(--cel-green-dark);
|
||||
border: 1px solid var(--cel-orange);
|
||||
border-radius: 6px;
|
||||
padding: 8px 20px;
|
||||
min-width: 110px;
|
||||
label { font-size: 0.72em; text-transform: uppercase; color: var(--cel-orange-light); letter-spacing: 0.05em; }
|
||||
.armure-stat-value {
|
||||
input, span {
|
||||
font-family: var(--cel-font-title); font-size: 1.8em; font-weight: bold; color: var(--cel-orange);
|
||||
text-align: center; background: transparent; border: none; width: 40px;
|
||||
}
|
||||
}
|
||||
.armure-stat-hint { font-size: 0.7em; color: var(--cel-cream); font-style: italic; text-align: center; margin-top: 4px; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user