From 86297bd14bc12a52bf6fd0cd57b241e820754e4a Mon Sep 17 00:00:00 2001 From: moliloo Date: Tue, 14 Oct 2025 01:21:59 -0300 Subject: [PATCH] style limited sheets --- .../applications/sheets/actors/adversary.mjs | 1 + .../sheets/actors/actor-sheet-shared.less | 170 +++++++++++++++++- templates/sheets/actors/adversary/limited.hbs | 19 +- templates/sheets/actors/character/limited.hbs | 93 +++++++++- templates/sheets/actors/companion/limited.hbs | 27 ++- .../sheets/actors/environment/limited.hbs | 17 +- 6 files changed, 319 insertions(+), 8 deletions(-) diff --git a/module/applications/sheets/actors/adversary.mjs b/module/applications/sheets/actors/adversary.mjs index a7deaf7a..4ecbb2a9 100644 --- a/module/applications/sheets/actors/adversary.mjs +++ b/module/applications/sheets/actors/adversary.mjs @@ -69,6 +69,7 @@ export default class AdversarySheet extends DHBaseActorSheet { context = await super._preparePartContext(partId, context, options); switch (partId) { case 'header': + case 'limited': await this._prepareHeaderContext(context, options); const adversaryTypes = CONFIG.DH.ACTOR.allAdversaryTypes(); diff --git a/styles/less/sheets/actors/actor-sheet-shared.less b/styles/less/sheets/actors/actor-sheet-shared.less index d1a3f888..d3e45013 100644 --- a/styles/less/sheets/actors/actor-sheet-shared.less +++ b/styles/less/sheets/actors/actor-sheet-shared.less @@ -1,3 +1,22 @@ +@import '../../utils/fonts.less'; +@import '../../utils/colors.less'; +@import '../../utils/mixin.less'; + +.appTheme({ + .limited-container { + .domains-section img { + filter: @golden-filter; + } + } +}, { + .limited-container { + + .domains-section img { + filter: brightness(0) saturate(100%); + } + } +}); + .application.sheet.daggerheart.actor.dh-style { .portrait img, .profile { @@ -24,11 +43,12 @@ &.environment, &.companion { width: 360px !important; - height: auto !important; + height: max-content !important; .window-content { display: unset; padding-bottom: 20px; + background-image: url('../assets/parchments/dh-parchment-dark.png'); } .limited-container { @@ -39,23 +59,169 @@ gap: 8px; header { + position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; + top: -36px; + margin-bottom: -30px; .profile { - width: 275px; + width: 100%; + max-height: 275px; + mask-image: linear-gradient(0deg, transparent 0%, black 10%); } .title-name { + text-align: start; + font-size: var(--font-size-28); + color: light-dark(@dark-blue, @golden); text-align: center; } } + .character-details { + display: flex; + flex-direction: column; + gap: 5px; + + .basic-info, + .multiclass { + text-align: center; + padding: 0 10px; + } + } + + .domain-details, + .bio-details, + .partner-details { + margin-top: 10px; + + .domain-header, + .bio-header, + .partner-header { + display: flex; + align-items: center; + padding: 0 10px; + gap: 10px; + + h3 { + font-size: var(--font-size-20); + } + } + + .items-list { + padding: 0 20px; + } + + .partner-placeholder { + display: flex; + opacity: 0.6; + text-align: center; + font-style: italic; + justify-content: center; + padding: 10px 0; + } + + .domains-section { + position: relative; + display: flex; + gap: 10px; + background-color: light-dark(transparent, @dark-blue); + color: light-dark(@dark-blue, @golden); + padding: 5px 10px; + border: 1px solid light-dark(@dark-blue, @golden); + border-radius: 6px; + align-items: center; + width: fit-content; + height: 30px; + place-self: center; + margin-top: 10px; + + h4 { + font-size: var(--font-size-14); + font-weight: bold; + text-transform: uppercase; + color: light-dark(@dark-blue, @golden); + } + + .domain { + display: flex; + align-items: center; + gap: 5px; + + .label { + font-size: var(--font-size-14); + font-weight: bold; + text-transform: uppercase; + color: light-dark(@dark-blue, @golden); + } + + img { + height: 20px; + width: 20px; + } + } + } + + .bio-list { + display: flex; + gap: 20px; + flex-wrap: wrap; + justify-content: center; + margin-top: 10px; + + .bio-info { + display: flex; + flex-direction: column; + align-items: center; + padding: 10px; + border-radius: 5px; + min-width: 90px; + color: light-dark(@dark-blue, @golden); + background-color: light-dark(@dark-blue-10, @golden-40); + } + } + } + + .level-details { + align-self: center; + } + .description { font-style: italic; text-align: center; + padding: 0 20px; + } + + .tags { + display: flex; + gap: 10px; + padding-bottom: 10px; + justify-content: center; + + .tag { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 3px 5px; + font-size: var(--font-size-12); + font: @font-body; + + background: light-dark(@dark-15, @beige-15); + border: 1px solid light-dark(@dark, @beige); + border-radius: 3px; + } + + .label { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + font-size: var(--font-size-12); + } } } } diff --git a/templates/sheets/actors/adversary/limited.hbs b/templates/sheets/actors/adversary/limited.hbs index b2f20ec9..a9c53185 100644 --- a/templates/sheets/actors/adversary/limited.hbs +++ b/templates/sheets/actors/adversary/limited.hbs @@ -1,8 +1,23 @@
{{document.name}} -

{{document.name}}

+

{{document.name}}

- +
+
+ + {{localize (concat 'DAGGERHEART.GENERAL.Tiers.' source.system.tier)}} + +
+
+ {{adversaryType}} +
+ {{#if (eq source.system.type 'horde')}} +
+ {{source.system.hordeHp}} + /{{localize "DAGGERHEART.GENERAL.HitPoints.short"}} +
+ {{/if}} +
{{{document.system.description}}}
\ No newline at end of file diff --git a/templates/sheets/actors/character/limited.hbs b/templates/sheets/actors/character/limited.hbs index f623eeda..ecf7e7b6 100644 --- a/templates/sheets/actors/character/limited.hbs +++ b/templates/sheets/actors/character/limited.hbs @@ -1,6 +1,97 @@
{{document.name}} -

{{document.name}}

+

{{document.name}}

+
+
+ {{#if document.system.class.value}} + {{document.system.class.value.name}} + {{else}} + {{localize 'TYPES.Item.class'}} + {{/if}} + + {{#if document.system.class.subclass}} + {{document.system.class.subclass.name}} + {{else}} + {{localize 'TYPES.Item.subclass'}} + {{/if}} + + {{#if document.system.community}} + {{document.system.community.name}} + {{else}} + {{localize 'TYPES.Item.community'}} + {{/if}} + + {{#if document.system.ancestry}} + {{document.system.ancestry.name}} + {{else}} + {{localize 'TYPES.Item.ancestry'}} + {{/if}} +
+ + {{#if document.system.multiclass.value}} +
+ {{#if document.system.multiclass.value}} + {{document.system.multiclass.value.name}} + {{else}} + {{localize 'DAGGERHEART.GENERAL.multiclass'}} + {{/if}} + + {{#if document.system.multiclass.subclass}} + {{document.system.multiclass.subclass.name}} + {{else}} + {{localize 'TYPES.Item.subclass'}} + {{/if}} +
+ {{/if}} +
+

+ {{localize 'DAGGERHEART.GENERAL.level'}} + {{document.system.levelData.level.changed}} +

+
+
+ +

{{localize "DAGGERHEART.GENERAL.Domain.plural"}}

+ +
+ {{#if document.system.class.value}} +
+ {{#each document.system.domainData as |data|}} +
+ + {{data.label}} +
+ {{/each}} +
+ {{/if}} +
+
+
+ +

{{localize "DAGGERHEART.GENERAL.Tabs.biography"}}

+ +
+
+ {{#if source.system.biography.characteristics.pronouns}} +
+ {{localize 'DAGGERHEART.ACTORS.Character.pronouns'}} + {{source.system.biography.characteristics.pronouns}} +
+ {{/if}} + {{#if source.system.biography.characteristics.age}} +
+ {{localize 'DAGGERHEART.ACTORS.Character.age'}} + {{source.system.biography.characteristics.age}} +
+ {{/if}} + {{#if source.system.biography.characteristics.faith}} +
+ {{localize 'DAGGERHEART.ACTORS.Character.faith'}} + {{source.system.biography.characteristics.faith}} +
+ {{/if}} +
+
\ No newline at end of file diff --git a/templates/sheets/actors/companion/limited.hbs b/templates/sheets/actors/companion/limited.hbs index f623eeda..363b5bd7 100644 --- a/templates/sheets/actors/companion/limited.hbs +++ b/templates/sheets/actors/companion/limited.hbs @@ -1,6 +1,31 @@
{{document.name}} -

{{document.name}}

+

{{document.name}}

+

+ {{localize 'DAGGERHEART.GENERAL.level'}} + {{document.system.levelData.level.changed}} +

+
+
+ +

{{localize "DAGGERHEART.GENERAL.partner"}}

+ +
+ {{#if document.system.partner}} +
    + {{> 'daggerheart.inventory-item' + item=document.system.partner + type='companion' + hideTags=true + hideDescription=true + isActor=true + hideTooltip=true + }} +
+ {{else}} + {{localize "DAGGERHEART.ACTORS.Companion.noPartner"}} + {{/if}} +
\ No newline at end of file diff --git a/templates/sheets/actors/environment/limited.hbs b/templates/sheets/actors/environment/limited.hbs index b2f20ec9..87cc5174 100644 --- a/templates/sheets/actors/environment/limited.hbs +++ b/templates/sheets/actors/environment/limited.hbs @@ -1,8 +1,21 @@
{{document.name}} -

{{document.name}}

+

{{document.name}}

- +
+
+ + {{localize (concat 'DAGGERHEART.GENERAL.Tiers.' source.system.tier)}} + +
+ {{#if source.system.type}} +
+ + {{localize (concat 'DAGGERHEART.CONFIG.EnvironmentType.' source.system.type '.label')}} + +
+ {{/if}} +
{{{document.system.description}}}
\ No newline at end of file