mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Improve paddings & margins: Plain
This commit is contained in:
parent
1e1b223d93
commit
8d2e564c18
@ -117,6 +117,7 @@
|
||||
}
|
||||
|
||||
#table-totals {
|
||||
margin-top: 1rem;
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
padding-top: .5rem;
|
||||
@ -154,6 +155,10 @@
|
||||
[data-ref="total_table-footer"] {
|
||||
padding-left: 1rem
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin-top: 30px;
|
||||
}
|
||||
</style>
|
||||
<div id="header"></div>
|
||||
|
||||
@ -179,11 +184,22 @@
|
||||
|
||||
<table id="task-table" cellspacing="0"></table>
|
||||
|
||||
<div id="table-totals" cellspacing="0"></div>
|
||||
|
||||
<table id="delivery-note-table" cellspacing="0"></table>
|
||||
|
||||
<div id="table-totals" cellspacing="0"></div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<p data-ref="total_table-footer">$entity_footer</p>
|
||||
|
||||
<script>
|
||||
// Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
['product-table', 'task-table', 'delivery-note-table'].forEach((tableIdentifier) => {
|
||||
document.getElementById(tableIdentifier).childElementCount === 0
|
||||
? document.getElementById(tableIdentifier).style.display = 'none'
|
||||
: '';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user