From dcaa39fe8fb7443da4bfe908cabd47b2401763d8 Mon Sep 17 00:00:00 2001 From: TheLastScrub <67403321+TheLastScrub@users.noreply.github.com> Date: Sat, 5 Jun 2021 15:57:40 -0700 Subject: [PATCH] made armor/weapon/gear sheets more uniform --- css/deltagreen.css | 72 +++++++++++++++++++++++---- templates/item/item-armor-sheet.html | 20 +++++--- templates/item/item-bond-sheet.html | 4 +- templates/item/item-gear-sheet.html | 4 +- templates/item/item-weapon-sheet.html | 56 ++++++++++++--------- 5 files changed, 110 insertions(+), 46 deletions(-) diff --git a/css/deltagreen.css b/css/deltagreen.css index aef64b2..74e2bd4 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -631,6 +631,25 @@ div.motivation-editor-container div.editor{ height: 300px; } +/* + Item Sheet Common CSS +*/ + +.item-img { + -webkit-box-flex: 0; + -ms-flex: 0 0 100px; + flex: 0 0 100px; + height: 100px; + border: 0px solid black; +} + +input.item-sheet-short-input{ + width: 75px; + margin-right: 5px; + margin-left: 5px; + text-align: center !important; +} + /* Bonds Item Sheet */ @@ -680,8 +699,9 @@ div.motivation-editor-container div.editor{ align-items: center; justify-content: center; text-align: center; - padding-left: 5px; grid-gap: 5px; + padding-bottom: 10px; + padding-left: 5px; } .armor-sheet-horizontal-grid-2col{ @@ -689,12 +709,22 @@ div.motivation-editor-container div.editor{ grid-template-columns: 100px auto; align-items: center; text-align: left; - padding-bottom: 10px; column-gap: 10px; row-gap: 10px; + padding-bottom: 10px; padding-right: 5px; } +.armor-sheet-secondary-grid-2col{ + display: grid; + grid-template-columns: 25% 75%; + align-items: center; + justify-content: left; + text-align: left; + grid-gap: 5px; + padding-bottom: 10px; +} + /* Gear Item Sheet */ @@ -705,8 +735,8 @@ div.motivation-editor-container div.editor{ align-items: center; justify-content: center; text-align: center; - padding-left: 5px; grid-gap: 5px; + padding-left: 5px; } .gear-sheet-horizontal-grid-2col{ @@ -714,9 +744,9 @@ div.motivation-editor-container div.editor{ grid-template-columns: 100px auto; align-items: center; text-align: left; - padding-bottom: 10px; column-gap: 10px; row-gap: 10px; + padding-bottom: 10px; padding-right: 5px; } @@ -724,15 +754,25 @@ div.motivation-editor-container div.editor{ Weapon Item Sheet */ -.weapon-sheet-header-grid-3col{ +.weapon-sheet-grid-2col{ display: grid; - grid-template-columns: 25% 15% 60%; + grid-template-columns: 25% 75%; align-items: center; - justify-content: left; - text-align: left; - padding-left: 5px; + justify-content: center; + text-align: center; grid-gap: 5px; - padding-right: 10px; + padding-left: 5px; +} + +.weapon-sheet-horizontal-grid-2col{ + display: grid; + grid-template-columns: 100px auto; + align-items: center; + text-align: left; + column-gap: 10px; + row-gap: 10px; + padding-bottom: 10px; + padding-right: 5px; } .weapon-sheet-outer-grid-2col{ @@ -743,7 +783,8 @@ div.motivation-editor-container div.editor{ text-align: center; padding-left: 5px; padding-right: 5px; - grid-gap: 5px; + column-gap: 10px; + row-gap: 5px; } .weapon-sheet-horizontal-grid-left-2col{ @@ -766,4 +807,13 @@ div.motivation-editor-container div.editor{ column-gap: 10px; row-gap: 10px; padding-right: 10px; +} + +.weapon-sheet-secondary-grid-2col{ + display: grid; + grid-template-columns: 40% 60%; + align-items: center; + justify-content: left; + text-align: left; + grid-gap: 5px; } \ No newline at end of file diff --git a/templates/item/item-armor-sheet.html b/templates/item/item-armor-sheet.html index d950569..c7a3d74 100644 --- a/templates/item/item-armor-sheet.html +++ b/templates/item/item-armor-sheet.html @@ -1,15 +1,14 @@
-
+
- + + +
{{localize 'DG.Bonds.Name'}}: - - {{localize 'DG.ItemWindow.Armor.ArmorRating'}}: - - + {{localize 'DG.ItemWindow.Armor.Expense'}}: {{localize 'DG.ItemWindow.Armor.Equipped'}}: - +
- + +
+ {{localize 'DG.ItemWindow.Armor.ArmorRating'}}: + +
+
{{!-- Sheet Tab Navigation --}} diff --git a/templates/item/item-bond-sheet.html b/templates/item/item-bond-sheet.html index 38ef7c7..a995800 100644 --- a/templates/item/item-bond-sheet.html +++ b/templates/item/item-bond-sheet.html @@ -1,7 +1,7 @@ -
+
- +
{{localize 'DG.Bonds.Name'}}: diff --git a/templates/item/item-gear-sheet.html b/templates/item/item-gear-sheet.html index 9ba1299..22660f7 100644 --- a/templates/item/item-gear-sheet.html +++ b/templates/item/item-gear-sheet.html @@ -1,8 +1,8 @@ -
+
- +
diff --git a/templates/item/item-weapon-sheet.html b/templates/item/item-weapon-sheet.html index 9cf60f4..0680839 100644 --- a/templates/item/item-weapon-sheet.html +++ b/templates/item/item-weapon-sheet.html @@ -1,11 +1,27 @@
-
+
- + - {{localize 'DG.Bonds.Name'}}: - +
+ + {{localize 'DG.Bonds.Name'}}: + + + {{localize 'DG.ItemWindow.Weapons.Expense'}}: + + + {{localize 'DG.ItemWindow.Gear.Equipped'}}: + + +
@@ -23,22 +39,15 @@ - {{localize 'DG.ItemWindow.Weapons.Expense'}}: - + - {{localize 'DG.ItemWindow.Weapons.IsLethality'}}: + {{localize 'DG.ItemWindow.Weapons.IsLethality'}}: - {{localize 'DG.ItemWindow.Weapons.Ammo'}}: - + {{localize 'DG.ItemWindow.Weapons.KillRadius'}}: +
@@ -47,9 +56,6 @@ {{localize 'DG.ItemWindow.Weapons.Range'}}: - {{localize 'DG.ItemWindow.Weapons.ArmorPiercing'}}: - - {{!-- If a weapon is 'Lethal', need to show the d100% Lethality input, otherwise only show the regular Damage formula (e.g. 1D6, 1D4+2, etc...) --}} {{#unless data.data.isLethal}} @@ -61,21 +67,25 @@ {{#if data.data.isLethal}} - {{localize 'DG.ItemWindow.Weapons.Lethality'}}: + {{localize 'DG.ItemWindow.Weapons.Lethality'}} %: {{/if}} - {{localize 'DG.ItemWindow.Weapons.KillRadius'}}: - + {{localize 'DG.ItemWindow.Weapons.ArmorPiercing'}}: +
- - + +
+ {{localize 'DG.ItemWindow.Weapons.Ammo'}}: + +
+
{{!-- Sheet Tab Navigation --}}