From ef7585fcb988ec386d7b0d0e55a20c5462f280c2 Mon Sep 17 00:00:00 2001 From: raphaelpieroni Date: Mon, 24 May 2021 17:32:18 +0200 Subject: [PATCH] Align in Caracteristics for Characters --- styles/simple.css | 28 ++++++++++++++- templates/actor-sheet.html | 70 ++++++++++++++++++++------------------ 2 files changed, 63 insertions(+), 35 deletions(-) diff --git a/styles/simple.css b/styles/simple.css index 6935a4a1..5b6b0073 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -326,7 +326,33 @@ table {border: 1px solid #7a7971;} .rdd.sheet .window-content .sheet-body {overflow-y: scroll;} .rdd.sheet .window-content .sheet-body .tab {padding-bottom: 30px;} .rdd.sheet .window-content .sheet-body .competence-list {width: 100%;} -.rdd.sheet .window-content .sheet-body .carac-list {width: 100%;} +.rdd.sheet .window-content .sheet-body .carac-list { + width: 100%; + flex-grow: 0; +} + +.rdd.sheet .window-content .sheet-body .carac-list .competence { + flex-wrap: nowrap; + justify-content: stretch; +} +.rdd.sheet .window-content .sheet-body .carac-list .competence > .carac-label { + flex-basis: 50%; +} +.rdd.sheet .window-content .sheet-body .carac-list .competence > .attribut-label { + flex-basis: 50%; +} +.rdd.sheet .window-content .sheet-body .carac-list .competence > .competence-value.total { + flex-grow: 1; + text-align: right; +} +.rdd.sheet .window-content .sheet-body .carac-list .competence > .utiliser-attribut { + flex-basis: available; + flex-grow: 1; +} +.rdd.sheet .window-content .sheet-body .carac-list .competence > * { + flex-basis: 13%; + flex-grow: 0; +} .editor { border: 2; diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index ac6b1180..13ec61e4 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -111,11 +111,13 @@ {{!-- Carac Tab --}}
+
- blocker/débloquer{{#if options.editCaracComp}}Verrouiller{{else}}Déverrouiller{{/if}}
    {{#each data.carac as |carac key|}} {{#if carac.isLevelUp}} @@ -124,83 +126,83 @@
  • {{/if}} {{#if (eq key 'taille')}} - {{carac.label}} - -
  • {{/each}}
  • - Total Caractéristiques - {{calc.caracTotal}} + Total Caractéristiques + {{calc.caracTotal}}
  • - Beauté : - - + Beauté : + +
  • {{#each data.attributs as |attr key|}} {{#unless (eq key 'hautrevant')}}
  • - {{attr.label}} : - {{#if (eq key 'protection')}} - - {{else}} - {{attr.value}} - {{/if}} - + {{attr.label}} : + {{#if (eq key 'protection')}} + + {{else}} + + {{/if}} +
  • {{/unless}} {{/each}}
  • - Chance actuelle - - Utiliser + Chance actuelle + + Utiliser
  • {{#each data.compteurs as |compteur key|}} {{#if (eq compteur.label 'Chance')}} {{else if (eq compteur.label 'Experience')}} {{else if compteur.isInput}}
  • - {{compteur.label}} + {{compteur.label}} {{#if (eq compteur.label 'Ethylisme')}} - {{#select compteur.value}} {{>"systems/foundryvtt-reve-de-dragon/templates/niveau-ethylisme.html"}} {{/select}} {{else}} - + {{/if}} - + {{#if compteur.isStress}} Transformer {{else if (eq compteur.label 'Ethylisme')}} - Jet d'Ethylisme + Boire {{else if (eq compteur.label 'Moral')}} Jet de moral situation malheureuse Jet de moral situation neutre @@ -213,7 +215,7 @@ {{/if}} {{/each}}
-
    +