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

View File

@ -79,7 +79,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%;
@ -87,11 +88,13 @@
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#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-bottom: 1.5rem; padding-bottom: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
@ -99,16 +102,19 @@
font-weight: bold; font-weight: bold;
} }
#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 { #product-table > tbody > tr > td,
#task-table > tbody > tr > td {
border-bottom: 1px solid; border-bottom: 1px solid;
padding: 1rem; padding: 1rem;
} }
#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;
} }
@ -121,11 +127,11 @@
border-bottom: 4px solid; border-bottom: 4px solid;
} }
#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: 0.5rem; padding-top: 0.5rem;
@ -133,22 +139,22 @@
gap: 20px; gap: 20px;
} }
#product-table-footer #table-totals
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
#product-table-footer #table-totals
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
} }
#product-table-footer #table-totals
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > :last-child { #table-totals > * > :last-child {
text-align: right; text-align: right;
padding-right: 0.5rem; padding-right: 0.5rem;
} }
@ -189,7 +195,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>
<p class="thanks-label">$thanks_label!</p> <p class="thanks-label">$thanks_label!</p>