This commit is contained in:
Luis 2025-10-09 10:09:32 +02:00
parent 6aec5669be
commit 7ad70064a7
9 changed files with 640 additions and 0 deletions

View file

@ -0,0 +1,73 @@
.receipt {
direction: ltr;
padding: 0;
margin: 0;
background-color: #f0eeee;
font-family: "Lato", "Lucida Grande", Helvetica, Verdana, Arial;
color: #555555;
font-size: 12px;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
text-shadow: none;
}
.receipt .right-align {
text-align: right;
}
.receipt .center-align {
text-align: center;
}
/* The receipt */
.receipt .receipt-container {
font-size: 0.75em;
text-align: center;
direction: ltr;
}
.receipt .sale-ticket {
text-align: left;
width: 350px;
background-color: white;
margin: 0px;
padding: 15px;
font-size: 14px;
display: inline-block;
font-family: "Inconsolata";
border: solid 1px rgb(220, 220, 220);
border-radius: 3px;
}
.receipt .sale-ticket pre {
font-family: "Inconsolata";
}
.receipt .sale-ticket .emph {
font-size: 20px;
margin: 5px;
}
.receipt .sale-ticket table {
width: 100%;
border: 0;
table-layout: fixed;
}
.receipt .sale-ticket table td {
border: 0;
word-wrap: break-word;
}
/* Company logo full width inside ticket */
.receipt .sale-ticket .company_logo {
display: block;
width: 100%; /* Fill container width */
max-width: 100%;
height: auto; /* Keep aspect ratio */
object-fit: contain;/* Avoid distortion */
margin: 0 0 10px 0; /* Space below logo */
}