66 lines
1.6 KiB
CSS
66 lines
1.6 KiB
CSS
/* Shared label field layout — positions from CSS vars
|
||
* (defaults here; calibrate UI / data/calibration.json override via :root).
|
||
*/
|
||
.var-field {
|
||
position: absolute;
|
||
font-family: Arial, sans-serif;
|
||
font-weight: bold;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.val-batch {
|
||
font-size: var(--batch-font, 7pt);
|
||
top: var(--batch-top, 63mm);
|
||
left: var(--batch-left, 30.2mm);
|
||
}
|
||
|
||
.val-date {
|
||
font-size: var(--date-font, 6pt);
|
||
top: var(--date-top, 63mm);
|
||
left: var(--date-left, 67.4mm);
|
||
}
|
||
|
||
.val-next {
|
||
font-size: var(--next-font, 7pt);
|
||
top: var(--next-top, 68.5mm);
|
||
left: var(--next-left, 84.2mm);
|
||
}
|
||
|
||
.val-weight {
|
||
font-size: var(--weight-font, 7pt);
|
||
top: var(--weight-top, 68.5mm);
|
||
left: var(--weight-left, 37.3mm);
|
||
}
|
||
|
||
/*
|
||
* Bottom row is not at true half-page: PDF vertical pitch between
|
||
* matching fields is ~118.8mm (not 148.5mm). Shift bottom slips up.
|
||
* Quadrant order in the 2×2 grid: 1=TL, 2=TR, 3=BL, 4=BR.
|
||
*/
|
||
.slip-quadrant:nth-child(n + 3) .val-batch {
|
||
top: var(--batch-bottom-top, 43.3mm);
|
||
}
|
||
|
||
.slip-quadrant:nth-child(n + 3) .val-date {
|
||
top: var(--date-bottom-top, 43.3mm);
|
||
left: var(--date-bottom-left, 70.4mm);
|
||
}
|
||
|
||
.slip-quadrant:nth-child(n + 3) .val-next {
|
||
top: var(--next-bottom-top, 48.8mm);
|
||
left: var(--next-bottom-left, 87.2mm);
|
||
}
|
||
|
||
.slip-quadrant:nth-child(n + 3) .val-weight {
|
||
top: var(--weight-bottom-top, 48.8mm);
|
||
}
|
||
|
||
/* Right column (TR, BR): Batch# and Net weight */
|
||
.slip-quadrant:nth-child(2n) .val-batch {
|
||
left: var(--batch-right-left, 22.2mm);
|
||
}
|
||
|
||
.slip-quadrant:nth-child(2n) .val-weight {
|
||
left: var(--weight-right-left, 29.3mm);
|
||
}
|