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.
35 lines
1.2 KiB
CSS
35 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.7pt; margin:0;}
|
|
#page { background: white; display: block; margin: 0 auto; page-break-after:always; width: 210mm; height: 295mm; }
|
|
|
|
#dinfo { float:left; width:200mm;
|
|
background-size: 100% auto; background-repeat: no-repeat;
|
|
margin-left:0.5cm;
|
|
}
|
|
|
|
#dresult { float:left; margin: 0.2cm 0.8cm 0 1.5cm; height: 17.5cm; }
|
|
#footer { float:left; margin:0cm 2cm 0 1cm; height:1.5cm; }
|
|
|
|
table {border-collapse:collapse;}
|
|
td {vertical-align:top;}
|
|
th,td { line-height:1.3;}
|
|
|
|
.result tr:nth-child(even), th { background: #DDD !important; }
|
|
.info { border:solid 1px black; margin:-1cm 0 0 8.5cm; 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 : 17cm; }
|
|
.footer td {vertical-align:bottom;}
|
|
td.right { text-align: right; }
|
|
|
|
#notes { margin: 5mm 0 0 10mm; }
|
|
|
|
.img { width:200mm; margin-left:0.5cm }
|
|
.img-footer { margin-bottom:7.5mm }
|
|
pre.small {font-size:6pt;}
|
|
.footer-lines { white-space: normal; line-height: 1.2; }
|
|
|
|
@media print {
|
|
@page { margin:0; size:210mm 297mm; }
|
|
} |