From 643e7892c8139c5b84c32d3d4491fbd2ebcdbe9f Mon Sep 17 00:00:00 2001 From: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com> Date: Fri, 22 Sep 2023 22:10:11 +0200 Subject: [PATCH] Minor redesign of printed character sheets --- .../CharacterSheetPrinted.vue | 35 +++- .../PrintedInventory.vue | 131 +++++++-------- .../printedCharacterSheet/PrintedStats.vue | 154 +++++++++--------- .../components/PrintedAction.vue | 118 +++++++++----- .../{PrintedItem.vue => PrintedBlockItem.vue} | 0 .../components/PrintedLineItem.vue | 122 ++++++++++++++ .../components/PrintedSkill.vue | 4 +- 7 files changed, 366 insertions(+), 198 deletions(-) rename app/imports/client/ui/creature/character/printedCharacterSheet/components/{PrintedItem.vue => PrintedBlockItem.vue} (100%) create mode 100644 app/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedLineItem.vue diff --git a/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue b/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue index 1d47cd09..61cc7628 100644 --- a/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue +++ b/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue @@ -32,7 +32,10 @@ light >
-
+
{{ creature.name }} @@ -59,7 +62,7 @@
{{ creatureUrl }}
@@ -234,7 +237,7 @@ export default { .character-sheet-printed { background: white; color: black; - font-size: 11pt; + font-size: 10pt; } .character-sheet-printed * { @@ -247,6 +250,14 @@ export default { padding: 4px; } +.character-sheet-printed p { + margin-bottom: 8px; +} + +.character-sheet-printed .double-border > .label:first-child { + margin-bottom: 8px; +} + .character-sheet-printed .column-layout, .character-sheet-printed .column-layout.wide-columns { position:relative; width: 100%; @@ -256,6 +267,10 @@ export default { column-fill: balance-all; } +.character-sheet-printed .column-layout { + column-width: 200px; +} + .character-sheet-printed .column-layout>div { position:relative; } @@ -267,9 +282,10 @@ export default { opacity: 1 !important; } .character-sheet-printed .creature-name { - font-size: 24pt; + font-size: 16pt; background-color: white; } + .character-sheet-printed .logo-background { width: 60px; height: 60px; @@ -284,6 +300,10 @@ export default { max-width: unset; } +.character-sheet-printed .tree-node-title { + min-height: unset !important; +} + .character-sheet-printed .double-border { position: relative; padding: 11px 10px; @@ -291,6 +311,8 @@ export default { border-image-slice: 110 126 fill; border-image-width: 16px; border-image-repeat: stretch; + box-decoration-break: clone; + page-break-inside: avoid; } .character-sheet-printed .octagon-border { @@ -298,6 +320,8 @@ export default { padding: 4px 20px; border-image: url(/images/print/octagonBorder.png) 124 118 fill; border-image-width: 22px; + box-decoration-break: clone; + page-break-inside: avoid; } .character-sheet-printed .span-all { @@ -322,6 +346,7 @@ export default { .character-sheet-printed .span-all { column-span: all; + display: block; } @media screen { @@ -337,7 +362,7 @@ export default { @media print { @page { size: auto; - margin: 8mm 8mm 8mm 8mm; + margin: 8mm; } body { margin: 0; diff --git a/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue b/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue index 416e8b00..6a6c97c3 100644 --- a/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue +++ b/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue @@ -2,83 +2,72 @@
- -
-
-
- Inventory -
-
- $vuetify.icons.injustice - Weight Carried: - {{ weightCarried }} lb -
-
- $vuetify.icons.cash - Net worth: - -
-
- $vuetify.icons.spell - Items attuned: - {{ variables.itemsAttuned && variables.itemsAttuned.value }} -
-
+
+
+ Inventory
-
-
- Equipped -
+
+ $vuetify.icons.injustice + Weight Carried: + {{ weightCarried }} lb
-
- + $vuetify.icons.cash + Net worth: +
-
-
- Carried -
-
+ $vuetify.icons.spell + Items attuned: + {{ variables.itemsAttuned && variables.itemsAttuned.value }} +
+
+
+
+ Equipped +
+ + +
+
+
+ Carried
- - + :model="item" + /> + +
@@ -90,7 +79,7 @@ import getParentRefByTag from '/imports/api/creature/creatureProperties/methods/ import BUILT_IN_TAGS from '/imports/constants/BUILT_IN_TAGS.js'; import CoinValue from '/imports/client/ui/components/CoinValue.vue'; import stripFloatingPointOddities from '/imports/api/engine/computation/utility/stripFloatingPointOddities.js'; -import PrintedItem from '/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedItem.vue'; +import PrintedLineItem from '/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedLineItem.vue'; import PrintedContainer from '/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedContainer.vue'; import CreatureVariables from '/imports/api/creature/creatures/CreatureVariables.js'; @@ -98,7 +87,7 @@ export default { components: { ColumnLayout, CoinValue, - PrintedItem, + PrintedItem: PrintedLineItem, PrintedContainer, }, props: { @@ -233,15 +222,17 @@ export default { \ No newline at end of file diff --git a/app/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedSkill.vue b/app/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedSkill.vue index 404da2aa..a1765b98 100644 --- a/app/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedSkill.vue +++ b/app/imports/client/ui/creature/character/printedCharacterSheet/components/PrintedSkill.vue @@ -11,7 +11,7 @@ :value="model.proficiency" class="prof-icon" /> -
+
{{ displayedModifier }}
.printed-skill{ - min-height: 30px; + min-height: 0; } .prof-icon {