diff --git a/lang/en.json b/lang/en.json index 3493e62..9f53c1d 100644 --- a/lang/en.json +++ b/lang/en.json @@ -223,6 +223,7 @@ "world": "World" }, "CharacterNamePlaceholder": "Character Name", + "ProfilePlaceholder": "Profile", "none": "None", "bonuses": "Bonuses", "choose_ability": "Choose Ability", diff --git a/lang/fr.json b/lang/fr.json index bc7fe65..0f05774 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -314,6 +314,7 @@ "total_damage": "Dégâts totaux", "wound_thresholds": "Seuils de blessures", "CharacterNamePlaceholder": "Nom du personnage", + "ProfilePlaceholder": "Profil", "sexes": { "female": "Féminin", "male": "Masculin" diff --git a/less/actor/actor.less b/less/actor/actor.less index 31cc399..f63ef78 100644 --- a/less/actor/actor.less +++ b/less/actor/actor.less @@ -106,6 +106,10 @@ overflow-y: auto; padding: 8px; border-right: 1px solid rgba(255, 255, 255, 0.1); + + > * { + flex: 0 0 auto; + } } > nav.tabs { @@ -331,21 +335,39 @@ } .padding-with-frieze { - margin-left: 18% !important; - margin-right: 10% !important; + padding: 0.25rem; li { max-width: 100%; } - .major-totem { - position: relative; - + .resource-label { h4 { - position: absolute; - transform: rotate(-8deg); - opacity: 1; - transition: 0.2s; + font-size: 1em; + } + } + + .major-totem { + display: flex; + justify-content: center; + margin-bottom: 0.75rem; + padding: 0.6rem; + background-color: rgba(0, 0, 0, 0.12); + border: 2px groove #eeede0; + + .flexcol { + gap: 0.3rem; + + h4 { + margin: 0; + font-size: 1.1em; + } + + .img-totem { + width: 64px; + height: 64px; + filter: drop-shadow(0px 0px 10px rgb(0, 0, 0)); + } } } diff --git a/less/actor/totem.less b/less/actor/totem.less index d532431..66edb61 100644 --- a/less/actor/totem.less +++ b/less/actor/totem.less @@ -19,26 +19,39 @@ } div.minor-totems { - position: relative; - height: 8.5rem; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: stretch; + gap: 0.25rem; + min-height: 8.5rem; + padding: 0.5rem; background-color: rgba(146, 156, 111, 0.5215686275); h3 { - position: relative; - z-index: 1; + text-align: center; + margin: 0; + font-size: 1.2rem; + line-height: 1.1; + } + + .totem-row { + display: flex; + justify-content: space-between; + align-items: center; } h5 { - position: absolute; - top: 2.6rem; margin: 0; - z-index: 1; + display: inline-flex; + flex-direction: column; + align-items: center; + gap: 0.25rem; + font-size: 0.8rem; img { - max-width: 2rem; - position: absolute; - top: 1.4rem; - bottom: auto; + max-width: 1.5rem; + height: auto; } &.human, &.adapted { @@ -62,50 +75,31 @@ } .totem-dice { - position: absolute; - left: 0; - right: 0; - bottom: 0; - z-index: 2; + display: flex; + justify-content: space-between; + align-items: center; .human-dice, .adapted-dice { display: flex; flex-direction: row; - margin-left: 2rem; + align-items: center; } .human-dice i, .adapted-dice i { - padding-top: 0.5rem; color: @totem-human-color; - position: relative; - z-index: 0; pointer-events: none; } .adapted-dice { - justify-content: flex-end; - margin-left: 0; - margin-right: 2rem; transform: rotate(180deg); + + i { + transform: rotate(180deg); + color: @totem-adapted-color; + } } - - .adapted-dice i { - transform: rotate(180deg); - padding-top: 0.5rem; - color: @totem-adapted-color; - } - } - - .human { - left: 0; - img { left: 0; } - } - - .adapted { - right: 0; - img { right: 0; left: auto; } } } } diff --git a/module/applications/sheets/base-actor-sheet.mjs b/module/applications/sheets/base-actor-sheet.mjs index c6e1101..6e695bf 100644 --- a/module/applications/sheets/base-actor-sheet.mjs +++ b/module/applications/sheets/base-actor-sheet.mjs @@ -114,7 +114,8 @@ export default class VermineBaseActorSheet extends HandlebarsApplicationMixin(fo isEditable: this.isEditable, enrichedNotes: await enrich("identity.notes"), enrichedBiography: await enrich("identity.biography"), - enrichedRelations: await enrich("identity.relations") + enrichedRelations: await enrich("identity.relations"), + enrichedEquipmentNotes: await enrich("equipment.description") } } diff --git a/templates/actor/appv2/character-equipment.hbs b/templates/actor/appv2/character-equipment.hbs index 43f7644..a123ff1 100644 --- a/templates/actor/appv2/character-equipment.hbs +++ b/templates/actor/appv2/character-equipment.hbs @@ -82,18 +82,15 @@
-
+
-
+
+ alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="64"
+ height="64" />
+