Replace footer <pre class='small'> blocks with <div class='small footer-lines'> in report template. Add explicit <br> line breaks for collected/received/validation/print metadata lines. Add shared .footer-lines style in public/assets/report/pdf.css and public/assets/report/style.css (white-space: normal; line-height: 1.2). Prevent <pre> whitespace behavior from distorting footer wrapping/spacing across print and browser views.
32 lines
1.2 KiB
CSS
32 lines
1.2 KiB
CSS
/*html,pre,th,table { font-family:'Courier New', Courier, monospace; font-size:7.8pt; margin:0;}*/
|
|
html,pre,th,table { font-family:'Lucida Console', Monaco, monospace; font-size:7.5pt; margin:0;}
|
|
body { -webkit-print-color-adjust:exact; }
|
|
#page { z-index:1; background: white; display: block; margin: 0; page-break-after:always;
|
|
/*width: 210mm; height: 297mm;*/
|
|
width: 210mm; height: 297mm;
|
|
}
|
|
#dinfo { float:right; margin:4cm 0.8cm 0 0; }
|
|
#dresult { float:left; margin:0.2cm 0.8cm 0 1.5cm; height: 17.5cm; }
|
|
#footer { float:left; margin:0cm 2cm 0 1.5cm; height:2cm; }
|
|
|
|
table {border-collapse:collapse;}
|
|
td {vertical-align:top;}
|
|
th,td { line-height:1.3;}
|
|
|
|
.result tr:nth-child(even), th { background: #f2f2f2; }
|
|
.info { border:solid 1px black; width:11cm; }
|
|
.flag { float:right; top:0; font-weight:bold; }
|
|
.result { table-layout:fixed; border:solid 1px black; width:100%; }
|
|
.textC { font-size:7pt; }
|
|
.footer {width : 18cm; }
|
|
.footer td {vertical-align:bottom;}
|
|
td.right { text-align: right; }
|
|
|
|
#notes { margin: 5mm 0 0 10mm; }
|
|
|
|
.footer-img { visibility:hidden; }
|
|
.img { max-width: 100%; height: auto; }
|
|
.img-footer { max-width: 100%; height: auto; max-height: 2.5cm; }
|
|
|
|
pre.small {font-size:6pt;}
|
|
.footer-lines { white-space: normal; line-height: 1.2; } |