From d388c3ba4b98efd34acf9918fe15026b1d4b7df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Guillois?= Date: Mon, 5 Jun 2023 21:27:34 +0200 Subject: [PATCH] page histoire - v0.0.11 --- assets/images/ui/barre_lateral.webp | Bin 52976 -> 52976 bytes css/style.css | 5 +++++ css/totem.css | 21 +++++++++++++----- lang/en.json | 2 +- module/sheets/actor-sheet.mjs | 3 ++- module/system/handlebars-manager.mjs | 1 + system.json | 2 +- templates/actor/actor-character-sheet.html | 19 ++++------------ templates/actor/parts/actor-id.hbs | 8 +++---- templates/actor/parts/actor-stories.hbs | 24 +++++++++++++++++++++ 10 files changed, 58 insertions(+), 27 deletions(-) create mode 100644 templates/actor/parts/actor-stories.hbs diff --git a/assets/images/ui/barre_lateral.webp b/assets/images/ui/barre_lateral.webp index 395cc50e66f35a186f4613885456d97f047e1e70..47fe9ae70f4584d13af869e8dd3d435c84f369ec 100644 GIT binary patch delta 238 zcmXw!JxT*X7(f?-qOes0Ru-a*-3K$@&&+&_jR+|$#S6@D?>W*4TjvM{#499eyv!cK zZLA-U$D8-7dB6I6zP{`(x^?&1_1~}aSMNq6cW6cmBmZm<_csq&ylp8#w7CFNc94)1 zIIAs;nAo;ycf1|QIaG8Jq}2diqX!K^!E^Dsm1wll^m`nJkeYaL3eGQ>nHwlMhQ!s7 zRg%IyZBB2!sv)$5qQcY1=`bK$3NbjqU=~xNED02-R7=S@TUXoka(?O^7h2j$MA*Pkyg+wXRqi=95jx%@xFB9(cM~r& zM{pA1hwnZ3^L{n&SD(+97u`+QcemZ+_v`%C(}d>E`iaKL{%jBT*ALF3#LOU)2z(9^ zGD?NW5}YGW%+hwp&A_pmFa`yTir}plC_ENOgp#m2S0lII<1kobT+Uh{6jAUYTF8n4 z(6ExNIVUdd>h#uova}2nMQk6Z!$8E9kOOei#jG(wS!hU3%Ba3*6x&|TPdzQM_x~5W Hv#kFBGbKgS diff --git a/css/style.css b/css/style.css index 95a97a3..50bd2e2 100644 --- a/css/style.css +++ b/css/style.css @@ -192,6 +192,11 @@ align-items: flex-end; } +.gap-xs { gap: 2px; } +.gap-sm { gap: 4px; } +.gap-md { gap: 8px; } +.gap-lg { gap: 16px; } + .flexshrink { -webkit-box-flex: 0; -ms-flex: 0; diff --git a/css/totem.css b/css/totem.css index c38f4e3..8146015 100644 --- a/css/totem.css +++ b/css/totem.css @@ -64,6 +64,11 @@ ul.unstyled li { width:100%; } +.mx-auto { + margin-left: auto; + margin-right:auto; +} + /* ----------------------------------------- */ /* Sheet Structure */ /* ----------------------------------------- */ @@ -132,6 +137,7 @@ ul.unstyled li { font-family: "DistressBlack", sans-serif; font-size: 2em; text-transform: uppercase; + margin-top:0.875rem; } .system-totem .char-header { @@ -156,7 +162,7 @@ ul.unstyled li { display: flex; flex-direction: column; flex-wrap: nowrap; - max-height: 720px; + max-height: 688px; padding-bottom:1rem; } .system-totem .sheet.actor form { @@ -230,8 +236,8 @@ ul.unstyled li { /* Actor Sheet */ /* ---------------------------------------- */ .system-totem .sheet.actor { - min-width: 650px; - min-height: 450px; + min-width: 690px; + min-height: 800px; } .system-totem .sheet.actor .sidebar { width: 230px; @@ -307,13 +313,18 @@ ul.unstyled li { background: url(../assets/images/ui/barre_haut.webp) no-repeat right top; width:100%; position: relative; - padding-right:2rem; + padding-right:4rem; } .actor.sheet nav.sheet-navigation .item { - height: 24px; + line-height: 54px; width: 24px; + display: inline-block; border-radius: 50%; z-index: 1; transition: all 0.1s ease-out; +} + +.system-totem .sheet.actor form nav.sheet-navigation.sheet-tabs { + height:54px; } \ No newline at end of file diff --git a/lang/en.json b/lang/en.json index 59e0efc..bb2dcca 100644 --- a/lang/en.json +++ b/lang/en.json @@ -22,7 +22,7 @@ "prohibits": "Interdits", "objectives": "Objectifs", "relations": "Relations", - "biography": "Histoire" + "notes": "Notes" }, "TOTEM": { "stats": "Statistiques", diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index a743889..82cb58d 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -11,8 +11,9 @@ export class TotemActorSheet extends ActorSheet { return mergeObject(super.defaultOptions, { classes: ["totem", "sheet", "actor"], template: "systems/totem/templates/actor/actor-sheet.html", + height: 820, width: 690, - height: 800, + resizable: false, tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "features" }] }); } diff --git a/module/system/handlebars-manager.mjs b/module/system/handlebars-manager.mjs index db0781e..2f52e6e 100644 --- a/module/system/handlebars-manager.mjs +++ b/module/system/handlebars-manager.mjs @@ -18,6 +18,7 @@ "systems/totem/templates/actor/parts/actor-items.html", "systems/totem/templates/actor/parts/actor-weapons.hbs", "systems/totem/templates/actor/parts/actor-defenses.hbs", + "systems/totem/templates/actor/parts/actor-stories.hbs", "systems/totem/templates/actor/parts/actor-effects.html", // additional templates diff --git a/system.json b/system.json index 20d6338..ce926ff 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "totem", "title": "Totem", "description": "The Totem system for FoundryVTT!", - "version": "0.0.10", + "version": "0.0.11", "compatibility": { "minimum": 10, "verified": "10.287", diff --git a/templates/actor/actor-character-sheet.html b/templates/actor/actor-character-sheet.html index 57979ae..517eb41 100644 --- a/templates/actor/actor-character-sheet.html +++ b/templates/actor/actor-character-sheet.html @@ -1,7 +1,7 @@