Révision complète des styles des items et des onglets
- global.less : réécriture complète
* Fusion des deux blocs .sheet-tabs en un seul
* Déplacement des styles faction hors de .sheet-tabs
* Onglet actif : gradient or avec texte sombre (bon contraste)
* CSS variables centralisées + hiérarchie propre
- templates/aspect.hbs + attribute.hbs : normalisation
* Ajout de wrappers .form-group pour tous les champs
* Labels explicites (Technique, Narratif, Référence)
* .item-meta container pour les métadonnées du header
- templates/equipment.hbs : suppression de .form-grid
(conflictait avec le grid CSS natif de FoundryVTT)
- styles/items.less
* Labels : var(--cel-orange) → var(--cel-border) (#7a5c20)
contraste WCAG AA sur fond crème (ratio ~5.9)
* Score rows : couleur de texte explicite #1a1209 (lisible)
* Onglet actif : gradient or + texte sombre (cohérent)
* Ajout .item-value-display, .item-qty styles
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -96,14 +96,42 @@
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--cel-orange);
|
||||
background: rgba(196,154,26,0.1);
|
||||
border-bottom-color: var(--cel-orange);
|
||||
color: var(--cel-green-dark);
|
||||
background: linear-gradient(to bottom, var(--cel-orange-light), var(--cel-orange));
|
||||
border-bottom: 3px solid var(--cel-accent);
|
||||
font-weight: bold;
|
||||
transform: translateY(-1px);
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Affichage valeur en mode play
|
||||
.item-value-display {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: var(--cel-orange);
|
||||
min-width: 28px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// Champ quantité équipement
|
||||
.item-qty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
label { color: var(--cel-orange-light); font-size: 0.72em; text-transform: uppercase; }
|
||||
input[type="number"] {
|
||||
width: 44px;
|
||||
background: transparent;
|
||||
border: 1px solid var(--cel-orange-light);
|
||||
color: var(--cel-orange);
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
section.tab {
|
||||
padding: 8px;
|
||||
display: none;
|
||||
@@ -117,7 +145,7 @@
|
||||
font-size: 0.75em;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--cel-orange); // gold label instead of vivid green
|
||||
color: var(--cel-border); // #7a5c20 — contraste WCAG AA sur fond crème
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
input[type="text"], input[type="number"] { .cel-input-std(); width: 100%; box-sizing: border-box; }
|
||||
@@ -149,6 +177,7 @@
|
||||
gap: 4px;
|
||||
padding: 2px 0;
|
||||
font-size: 0.8em;
|
||||
color: #1a1209; // texte sombre lisible sur fond crème
|
||||
|
||||
&:nth-child(even) { background: rgba(224,212,184,0.35); border-radius: 2px; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user