| | |
| | | return |
| | | } |
| | | |
| | | |
| | | printWindow.document.write(` |
| | | <!DOCTYPE html> |
| | | <html> |
| | |
| | | margin: 0 !important; |
| | | padding: 0 !important; |
| | | } |
| | | |
| | | body { |
| | | |
| | | html { |
| | | height: auto !important; |
| | | width: 80mm !important; |
| | | height: 60mm !important; |
| | | margin: 0 !important; |
| | | padding: 0 !important; |
| | | background: white !important; |
| | | } |
| | | |
| | | |
| | | body { |
| | | height: auto !important; |
| | | width: 80mm !important; |
| | | margin: 0 !important; |
| | | padding: 0 !important; |
| | | background: white !important; |
| | | overflow: visible !important; |
| | | min-height: 0 !important; |
| | | max-height: none !important; |
| | | } |
| | | |
| | | .print-page { |
| | | width: 80mm !important; |
| | | height: 60mm !important; |
| | | page-break-after: always !important; |
| | | margin: 0 !important; |
| | | padding: 1mm !important; |
| | | display: block !important; |
| | | background: white !important; |
| | | page-break-inside: avoid !important; |
| | | position: relative !important; |
| | | page-break-after: always !important; |
| | | } |
| | | |
| | | |
| | | .print-page:last-child { |
| | | page-break-after: avoid !important; |
| | | page-break-after: auto !important; |
| | | } |
| | | |
| | | .material-card { |