From daaa45901261b213950956d6c9a1906dd622ede2 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 4 Mar 2024 19:41:59 -0700 Subject: [PATCH] Implement the general layout for inventory (closes #94) --- .../actor/char-sheet/pages/inventory.scss | 19 +++++++++++++++---- styles/sheets/actor/char-sheet/v2.scss | 3 +++ .../v2/partials/inventory/player.v2.pc.hbs | 16 +++++++++++++++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/styles/sheets/actor/char-sheet/pages/inventory.scss b/styles/sheets/actor/char-sheet/pages/inventory.scss index 753770c..7dad233 100644 --- a/styles/sheets/actor/char-sheet/pages/inventory.scss +++ b/styles/sheets/actor/char-sheet/pages/inventory.scss @@ -1,9 +1,20 @@ -.dotdungeon .actor--pc-v2 .active .inventory-page { - margin-bottom: 100px; +.dotdungeon .actor--pc-v2 .active.inventory-page { + padding-bottom: 50px; + height: 100%; } -.dotdungeon .actor--pc-v2 .active .inventory-page .tab[data-tab="player"] { +.dotdungeon .actor--pc-v2 .active.inventory-page .tab[data-tab="player"] { display: grid; gap: 16px; - grid-template-columns: 1fr 4fr; + grid-template-columns: 1fr 3fr; + grid-template-rows: 1fr repeat(3, min-content); + height: 100%; + color: white; + + .item-list { + grid-row: 1 / -1; + grid-column: 2; + display: flex; + flex-direction: column; + } } \ No newline at end of file diff --git a/styles/sheets/actor/char-sheet/v2.scss b/styles/sheets/actor/char-sheet/v2.scss index d61ef18..b440dd4 100644 --- a/styles/sheets/actor/char-sheet/v2.scss +++ b/styles/sheets/actor/char-sheet/v2.scss @@ -3,6 +3,7 @@ @use "../../../mixins/partials" as partials; @use "./pages/stats.scss"; +@use "./pages/inventory.scss"; .dotdungeon .actor--pc-v2 { background-color: var(--sheet-bg); @@ -57,5 +58,7 @@ .page-content { padding: 16px; + padding-bottom: 69px; + height: 100%; } } \ No newline at end of file diff --git a/templates/actors/char-sheet/v2/partials/inventory/player.v2.pc.hbs b/templates/actors/char-sheet/v2/partials/inventory/player.v2.pc.hbs index 1d1a80b..6b36d4f 100644 --- a/templates/actors/char-sheet/v2/partials/inventory/player.v2.pc.hbs +++ b/templates/actors/char-sheet/v2/partials/inventory/player.v2.pc.hbs @@ -1,3 +1,17 @@
- +
+

Containers

+
+
+

Item list

+
+
+

Capacity

+
+
+

Bytes

+
+
+

Show

+
\ No newline at end of file