pliceclogs-og/small.css
type-two e5b8504bc6 Import pliceclogs as-is — the original Discogs seller extension
Snapshot of the working tree exactly as it stood, no edits. This is the predecessor
PRICEGOD was rewritten from ("kept intact, untouched" per pricegod/README.md), and it
is still the only place the DYMO scale is actually implemented —
rfid-daemon/index.js:1068-1265: HID discovery, parseScaleReport, one-shot read, and a
streaming /weight + /scale/start|stop session whose JSON shape PRICEGOD's daemon.js
already speaks.

Preserved verbatim on purpose (hence -og), including the known bug: DYMO_PIDS at
index.js:1082 is [0x8003, 0x8004], so it cannot see the bench M25 (0x8009). Fix that
in whatever daemon inherits the scale, not here.

node_modules stays ignored (22M of the 24M tree). No credentials in the import: the
two PEM markers in utils.js/sheets.js only strip headers off a key read from settings,
and mrpadmin / johnking are an SSH and a Postgres username, both key/trust auth.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 13:47:09 +10:00

179 lines
3.0 KiB
CSS

.print-label {
font-family: "MS Gothic", "Hiragino Kaku Gothic Pro", Arial, sans-serif;
width: 49mm !important;
height: 19mm;
position: relative;
background: white;
overflow: hidden;
margin-left: 2mm !important;
padding: 0 !important;
border: 0;
display: block !important;
box-sizing: border-box !important;
transform: none !important;
float: none !important;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
zoom: 1;
}
@page {
size: 51mm 19mm;
margin: 0;
padding: 0;
}
@media print {
@-webkit-keyframes removeMargins {
from {
margin: auto;
}
to {
margin: 0;
}
}
@keyframes removeMargins {
from {
margin: auto;
}
to {
margin: 0;
}
}
html,
body {
margin: 0 !important;
padding: 0 !important;
width: 51mm;
height: 19mm;
min-height: 19mm;
max-height: 19mm;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.print-label {
position: absolute;
top: 0;
left: 0;
width: 51mm !important;
height: 19mm !important;
min-height: 19mm !important;
max-height: 19mm !important;
-webkit-animation: removeMargins 1ms;
animation: removeMargins 1ms;
}
}
@media print {
.print-label {
border: 0mm solid black !important;
}
}
.print-artist {
left: 2mm;
top: 0mm;
width: 37mm;
height: 3.5mm;
font-size: 7pt;
}
.print-title {
left: 2mm;
top: 3.5mm;
width: 37mm;
height: 3.5mm;
font-size: 7pt;
}
.print-genre {
left: 2mm;
top: 7mm;
width: 37mm;
height: 3.5mm;
font-size: 7pt;
}
.print-style {
left: 2mm;
top: 10.5mm;
width: 37mm;
height: 3.5mm;
font-size: 8pt;
font-weight: bold;
}
.print-description {
left: 2mm;
top: 14mm;
width: 37mm;
height: 2.5mm;
font-size: 5pt;
}
.print-bottom-info {
left: 2mm;
top: 16.5mm;
width: 37mm;
height: 2.5mm;
font-size: 5pt;
}
.print-logo {
position: absolute;
right: 0.5mm;
top: 0mm;
width: 10mm;
/* Increased to account for full width needed */
height: 2mm;
display: block;
}
.print-price {
right: 0.5mm;
top: 2mm;
width: 12.5mm;
height: 4mm;
font-size: 10pt;
font-weight: bold;
}
.print-condition {
right: 0.5mm;
top: 5.8mm;
width: 10mm;
height: 2.5mm;
font-size: 5.5pt;
}
.print-barcode {
right: 0.5mm;
top: 8.5mm;
width: 10mm;
height: 10mm;
}
/* Comment and Notes — no room on small label by default; adjust to fit if needed */
.print-comment {
left: 2mm;
top: 19mm;
width: 37mm;
height: 1.5mm;
font-size: 4.5pt;
overflow: hidden;
}
.print-notes {
left: 2mm;
top: 20.5mm;
width: 37mm;
height: 1.5mm;
font-size: 4pt;
overflow: hidden;
}