- Onglets item (Anomalie/Aspect/Attribut): correction tabGroups + data-group sur chaque <a> et <section> - Onglets acteur (PJ/PNJ): tab.cssClass dans les templates pour l'état actif initial - Message de tchat: alignement des noms de variables _getChatCardData <-> chat-message.hbs - actorName, actorImg, success/failure, diceResults, statLabel/skillLabel localisés - difficultyLabel et moonPhaseLabel localisés depuis SYSTEM - Dialogue de jet (roll-dialog.hbs): correction noms variables + min/max modificateur - lang/fr.json: ajout Roll.title, Roll.roll, clés Moon (minuscules), Difficulty (unknown/ardu) - character.mjs: passage statLabel à CelestopolRoll.prompt() - global.less: padding + overflow-y sur .tab pour contenu visible - item-scores.hbs: passage system=system au partial + suppression garde isEditable - Templates anomaly/aspect/attribute: passage system=system au partial item-scores - chat-message.mjs: getHTML() → renderHTML() (dépréciation FVTT v13) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
168 lines
4.7 KiB
Plaintext
168 lines
4.7 KiB
Plaintext
// ─── Variables CSS (couleurs + typo) ────────────────────────────────────────
|
|
|
|
// ─── FVTT-wide type label fix ────────────────────────────────────────────────
|
|
// Override window title color for celestopol sheets
|
|
.fvtt-celestopol .window-title { color: var(--cel-orange, #e07b00); }
|
|
|
|
:root {
|
|
--cel-green: rgb(12, 76, 12);
|
|
--cel-green-light: rgb(20, 110, 20);
|
|
--cel-green-dark: rgb(6, 40, 6);
|
|
--cel-orange: #e07b00;
|
|
--cel-orange-light: #f0a040;
|
|
--cel-cream: #f5f0e8;
|
|
--cel-border: #8b7355;
|
|
--cel-shadow: rgba(0,0,0,0.4);
|
|
|
|
--cel-font-title: "CopaseticNF", "Palatino Linotype", serif;
|
|
--cel-font-body: "Palatino Linotype", "Book Antiqua", Palatino, serif;
|
|
--cel-font-ui: "Signika", "Palatino Linotype", sans-serif;
|
|
}
|
|
|
|
// ─── Sheet base layout ───────────────────────────────────────────────────────
|
|
|
|
.fvtt-celestopol {
|
|
&.sheet {
|
|
background: var(--cel-cream);
|
|
font-family: var(--cel-font-body);
|
|
color: #1a1209;
|
|
|
|
.window-content {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--cel-cream);
|
|
}
|
|
}
|
|
|
|
// ─── Header ──────────────────────────────────────────────────────────────
|
|
|
|
.sheet-header {
|
|
display: flex;
|
|
align-items: stretch;
|
|
background: var(--cel-green);
|
|
background-image: url("../assets/ui/fond_cadrille.jpg");
|
|
background-blend-mode: overlay;
|
|
padding: 8px;
|
|
gap: 8px;
|
|
border-bottom: 3px solid var(--cel-orange);
|
|
|
|
.actor-portrait {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border: 2px solid var(--cel-orange);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-fields {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
color: var(--cel-cream);
|
|
|
|
input[type="text"] {
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 1px solid var(--cel-orange-light);
|
|
color: var(--cel-orange);
|
|
font-family: var(--cel-font-title);
|
|
font-size: 1.4em;
|
|
font-weight: bold;
|
|
padding: 2px 4px;
|
|
&::placeholder { color: var(--cel-orange-light); }
|
|
}
|
|
|
|
.actor-name {
|
|
font-family: var(--cel-font-title);
|
|
font-size: 1.4em;
|
|
color: var(--cel-orange);
|
|
margin: 0;
|
|
}
|
|
|
|
.concept-display,
|
|
input[name="system.concept"] {
|
|
font-style: italic;
|
|
font-size: 0.9em;
|
|
color: var(--cel-cream);
|
|
background: transparent;
|
|
border-bottom: 1px solid rgba(255,255,255,0.3);
|
|
}
|
|
}
|
|
|
|
.header-stats-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
|
|
.header-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: rgba(0,0,0,0.3);
|
|
border: 1px solid var(--cel-orange);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
|
|
label {
|
|
font-size: 0.65em;
|
|
text-transform: uppercase;
|
|
color: var(--cel-orange-light);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.4em;
|
|
font-family: var(--cel-font-title);
|
|
color: var(--cel-orange);
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ─── Tabs ────────────────────────────────────────────────────────────────
|
|
|
|
.sheet-tabs {
|
|
display: flex;
|
|
background: var(--cel-green-dark);
|
|
padding: 0;
|
|
border-bottom: 2px solid var(--cel-orange);
|
|
|
|
.item {
|
|
padding: 6px 12px;
|
|
color: var(--cel-cream);
|
|
font-family: var(--cel-font-title);
|
|
font-size: 0.85em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
cursor: pointer;
|
|
border-right: 1px solid var(--cel-green-light);
|
|
transition: background 0.2s;
|
|
|
|
&:hover { background: var(--cel-green-light); }
|
|
&.active {
|
|
background: var(--cel-orange);
|
|
color: #1a0a00;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ─── Sheet body / tabs content ───────────────────────────────────────────
|
|
|
|
.sheet-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
.tab {
|
|
display: none;
|
|
padding: 8px;
|
|
overflow-y: auto;
|
|
&.active { display: block; }
|
|
}
|
|
}
|