Skip to content

Commit

Permalink
Make Current Spirit red to match exhausted attribute when spirit == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mezryss committed Jul 15, 2023
1 parent b2234e8 commit b91cc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/actor/character-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@
<div class="grid grid-cols-2 bg-white border-1 border-fuchsia-200 border-solid">
<span class="col-span-2 bg-fuchsia-900 text-white uppercase font-semibold flex items-center px-1 justify-center">{{ localize "Labels.Actor.Spirit" }}</span>
<label class="flex flex-col border-fuchsia-200 border-0 border-r-1 border-solid">
<input type="number" name="system.spirit.value" value="{{ system.spirit.value }}" min="0" max="{{ system.spirit.max }}" class="!border-0 rounded-none !bg-none !text-center !text-2xl font-semibold !p-2 !h-full" />
<span class="border-t-1 border-fuchsia-200 text-fuchsia-900 uppercase text-xs flex items-center justify-center">{{ localize "Labels.Current" }}</span>
<input type="number" name="system.spirit.value" value="{{ system.spirit.value }}" min="0" max="{{ system.spirit.max }}" class="!border-0 rounded-none !bg-none !text-center !text-2xl font-semibold !p-2 !h-full {{#if exhausted}}!text-red-700{{/if}}" />
<span class="border-t-1 border-fuchsia-200 text-fuchsia-900 uppercase text-xs flex items-center justify-center {{#if exhausted}}!text-red-700{{/if}}">{{ localize "Labels.Current" }}</span>
</label>
<label class="flex flex-col">
<input type="number" name="system.spirit.max" value="{{ system.spirit.max }}" min="0" class="!border-0 rounded-none !bg-none !text-center !text-2xl font-semibold !p-2 !h-full" />
Expand Down

0 comments on commit b91cc12

Please sign in to comment.