diff --git a/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue b/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue index 721ab5e0..1d47cd09 100644 --- a/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue +++ b/app/imports/client/ui/creature/character/printedCharacterSheet/CharacterSheetPrinted.vue @@ -32,7 +32,7 @@ light >
-
+
{{ creature.name }} @@ -259,11 +259,10 @@ export default { .character-sheet-printed .column-layout>div { position:relative; } -.character-sheet-printed .column-layout>div>* { - -webkit-column-break-inside: avoid; - break-inside: avoid; +.character-sheet-printed .column-layout > div > * { page-break-inside: avoid; } + .character-sheet-printed .inactive { opacity: 1 !important; } @@ -288,38 +287,26 @@ export default { .character-sheet-printed .double-border { position: relative; padding: 11px 10px; -} - -.character-sheet-printed .double-border::before { - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; border-image-source: url(/images/print/doubleLineImageBorder.png); border-image-slice: 110 126 fill; border-image-width: 16px; border-image-repeat: stretch; - box-sizing: content-box; - z-index: -1; } .character-sheet-printed .octagon-border { position: relative; padding: 4px 20px; -} - -.character-sheet-printed .octagon-border::before { - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; border-image: url(/images/print/octagonBorder.png) 124 118 fill; border-image-width: 22px; - z-index: -1; +} + +.character-sheet-printed .span-all { + page-break-after: avoid; + break-after: avoid; +} +.span-all + div { + page-break-before: avoid; + break-before: avoid; } .character-sheet-printed .stats .label { @@ -348,13 +335,32 @@ export default { } } @media print { + @page { + size: auto; + margin: 8mm 8mm 8mm 8mm; + } + body { + margin: 0; + } + .character-sheet-printed .page { + width: 100%; + padding: 0 !important; + } + .character-sheet-printed .column-layout { + padding: 4px 0 !important; + } + .character-sheet-printed .title-block { + padding-left: 0 !important; + padding-right: 4px !important; + } .v-main, .v-application, .v-application--wrap, .character-sheet-printed { - display: block; + display: block !important; + background-color: white !important; } - header { - display: none !important; + html { + background-color: white !important; } - nav { + header, nav, .v-snack, .dialog-stack { display: none !important; } .v-main { diff --git a/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue b/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue index 21d8d65a..324b64fa 100644 --- a/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue +++ b/app/imports/client/ui/creature/character/printedCharacterSheet/PrintedInventory.vue @@ -1,7 +1,6 @@