feat: price list generator

This commit is contained in:
2024-10-11 20:17:56 +04:00
parent 1eb85279b5
commit c5f7ce651f
5 changed files with 276 additions and 1 deletions

98
static/css/price-list.css Normal file
View File

@@ -0,0 +1,98 @@
@media print {
#header,
#footer,
#nav {
display: none !important;
}
}
html {
font-family: sans-serif;
}
.doc-container {
margin: -30px 0;
padding: 0 15px;
font-size: 13px;
}
img {
width: 170px;
margin-bottom: 15px;
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
border: solid gray 2px;
border-radius: 15px;
margin-bottom: 10px;
}
thead {
display: table-header-group;
}
tfoot {
display: table-footer-group;
}
td:nth-child(5) {
border-right: 1px solid white;
}
table tbody tr:nth-child(odd) {
background-color: #e5e5e5;
}
tr {
page-break-inside: avoid;
}
td, th {
padding: 10px 13px;
}
td:first-child, th:first-child {
padding-left: 50px;
}
td:last-child, th:last-child {
padding-right: 50px;
}
td:first-child, th:first-child {
text-align: left;
}
td:first-child {
white-space: normal;
word-wrap: break-word;
}
td:not(:first-child), th:not(:first-child) {
text-align: right;
}
td:not(:first-child) {
overflow: hidden;
text-overflow: ellipsis;
}
table tfoot {
border-top: 2px solid black;
}
.category-title {
text-align: center;
background-color: #e5e5e5;
}
.service-type {
text-align: center;
font-size: 27px;
margin-top: 20px;
margin-bottom: 10px;
font-weight: bold;
}