Modified how template list is generated to be a function to allow checking whether the templates can be printed.

This commit is contained in:
Patrick Fic
2020-09-11 14:43:04 -07:00
parent 984c001bd8
commit f7e74c5043
20 changed files with 167 additions and 207 deletions

View File

@@ -1,36 +1,13 @@
body {
font-family: "Open Sans", sans-serif;
line-height: 1.25;
/* font-family: "Open Sans", sans-serif; */
/* line-height: 1.25; */
/* padding: 10mm 10mm 10mm 10mm !important; */
}
@page {
size: auto; /* auto is the initial value */
/* this affects the margin in the printer settings */
margin: 25mm 25mm 25mm 25mm;
color: tomato;
margin: 50px;
}
/* Unknown whether the below actually gets embedded */
/* @media print {
@page {
size: Letter;
margin: 0;
}
html,
body {
width: 210mm;
height: 282mm;
font-size: 11px;
background: #fff;
overflow: visible;
}
body {
padding-top: 15mm;
}
} */
table.imex-table {
border: 1px solid #ccc;
border-collapse: collapse;
@@ -38,27 +15,44 @@ table.imex-table {
padding: 0;
width: 100%;
table-layout: fixed;
font-size: inherit;
page-break-inside: auto;
}
table.imex-table caption {
font-size: 1.5em;
/* font-size: 1.5em; */
margin: 0.5em 0 0.75em;
font-size: inherit;
}
table.imex-table tr {
background-color: #f8f8f8;
/* background-color: #f8f8f8; */
border: 1px solid #ddd;
padding: 0.1rem;
padding: 0.2rem;
font-size: inherit;
page-break-inside: avoid;
page-break-after: auto;
}
table.imex-table th,
table.imex-table td {
padding: 0.3rem;
text-align: center;
font-size: inherit;
}
table.imex-table th.left,
table.imex-table td.left {
padding: 0.3rem;
text-align: left;
font-size: inherit;
}
table.imex-table th {
font-size: 0.85em;
/* font-size: 0.85em; */
letter-spacing: 0.1em;
text-transform: uppercase;
/* display: table-header-group; */
}