This commit is contained in:
Benjamin Beganović 2020-11-05 14:47:14 +01:00
parent 4ee36307f9
commit 64ec10279c

View File

@ -86,7 +86,8 @@
font-weight: normal; font-weight: normal;
} }
#product-table { #product-table,
#task-table {
margin-top: 3rem; margin-top: 3rem;
margin-bottom: 200px; margin-bottom: 200px;
min-width: 100%; min-width: 100%;
@ -95,58 +96,64 @@
border-top: 5px solid var(--primary-color); border-top: 5px solid var(--primary-color);
} }
#product-table > thead { #product-table > thead,
#task-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th,
#task-table > thead > tr > th {
font-size: 1.1rem; font-size: 1.1rem;
padding: 1rem; padding: 1rem;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child,
#task-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child,
#task-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td,
#task-table > tbody > tr > td {
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr:nth-child(odd) { #product-table > tbody > tr:nth-child(odd),
#task-table > tbody > tr:nth-child(odd) {
background-color: #e8e8e8; background-color: #e8e8e8;
} }
#product-table-footer { #table-totals {
page-break-inside: avoid; page-break-inside: avoid;
} }
#product-table-footer > * { #table-totals > * {
display: grid; display: grid;
grid-template-columns: 3fr 1fr 1fr; grid-template-columns: 3fr 1fr 1fr;
padding-top: 1rem; padding-top: 1rem;
} }
#product-table-footer #table-totals
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > * { #table-totals > * > * {
padding-left: 1rem; padding-left: 1rem;
} }
#product-table-footer > *:last-child > * { #table-totals > *:last-child > * {
border-top: 5px solid var(--primary-color); border-top: 5px solid var(--primary-color);
padding-top: 1rem; padding-top: 1rem;
} }
#product-table-footer > * > :last-child { #table-totals > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
@ -181,7 +188,9 @@
<table id="product-table" cellspacing="0"></table> <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>
<div id="footer"></div> <div id="footer"></div>