This commit is contained in:
Benjamin Beganović 2020-11-05 14:47:20 +01:00
parent 054998ff06
commit bb76cec267

View File

@ -97,7 +97,8 @@
font-weight: bold;
}
#product-table {
#product-table,
#task-table {
margin-top: 3rem;
margin-bottom: 200px;
min-width: 100%;
@ -105,37 +106,42 @@
overflow-wrap: break-word;
}
#product-table > thead {
#product-table > thead,
#task-table > thead {
text-align: left;
text-transform: uppercase;
font-weight: bold;
}
#product-table > thead > tr > th {
#product-table > thead > tr > th,
#task-table > thead > tr > th {
font-size: 1.1rem;
padding-bottom: 1.5rem;
padding-left: 1rem;
border-left: 1px solid;
}
#product-table > thead > tr > th:last-child {
#product-table > thead > tr > th:last-child,
#task-table > thead > tr > th:last-child {
text-align: right;
}
#product-table > tbody > tr > td {
#product-table > tbody > tr > td,
#task-table > tbody > tr > td {
padding: 1rem;
border-left: 1px solid;
}
#product-table > tbody > tr td:last-child {
#product-table > tbody > tr td:last-child,
#task-table > tbody > tr td:last-child {
text-align: right;
}
#product-table-footer {
#table-totals {
page-break-inside: avoid;
}
#product-table-footer > * {
#table-totals > * {
display: grid;
grid-template-columns: 3fr 1fr 1fr;
padding-top: 0.5rem;
@ -143,22 +149,22 @@
gap: 20px;
}
#product-table-footer
#table-totals
> *
[data-element='product-table-balance-due-label'],
#product-table-footer
#table-totals
> *
[data-element='product-table-balance-due'] {
font-weight: bold;
}
#product-table-footer
#table-totals
> *
[data-element='product-table-balance-due'] {
color: var(--primary-color);
}
#product-table-footer > * > :last-child {
#table-totals > * > :last-child {
text-align: right;
padding-right: 1rem;
}
@ -218,7 +224,9 @@
<table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div>
<table id="task-table" cellspacing="0"></table>
<div id="table-totals" cellspacing="0"></div>
</div>
<div id="footer"></div>