mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Update Tech
This commit is contained in:
parent
5fe827e569
commit
d33df5e293
@ -122,18 +122,14 @@
|
|||||||
|
|
||||||
.body-wrapper {}
|
.body-wrapper {}
|
||||||
|
|
||||||
#product-table,
|
[data-ref="table"] {
|
||||||
#delivery-note-table,
|
|
||||||
#task-table {
|
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > thead > tr > th,
|
[data-ref="table"] > thead > tr > th {
|
||||||
#delivery-note-table > thead > tr > th,
|
|
||||||
#task-table > thead > tr > th {
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
@ -142,28 +138,20 @@
|
|||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > thead > tr > th:last-child,
|
[data-ref="table"] > thead > tr > th:last-child {
|
||||||
#delivery-note-table > thead > tr > th:last-child,
|
|
||||||
#task-table > thead > tr > th:last-child {
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > tbody > tr > td,
|
[data-ref="table"] > tbody > tr > td {
|
||||||
#delivery-note-table > tbody > tr > td,
|
|
||||||
#task-table > tbody > tr > td {
|
|
||||||
border-bottom: 1px solid #e6e6e6;
|
border-bottom: 1px solid #e6e6e6;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > tbody > tr > td:first-child,
|
[data-ref="table"] > tbody > tr > td:first-child {
|
||||||
#delivery-note-table > tbody > tr > td:first-child,
|
|
||||||
#task-table > tbody > tr > td:first-child {
|
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > tbody > tr > td:last-child,
|
[data-ref="table"] > tbody > tr > td:last-child {
|
||||||
#delivery-note-table > tbody > tr > td:last-child,
|
|
||||||
#task-table > tbody > tr > td:last-child {
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,9 +217,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Markdown-specific styles. **/
|
/** Markdown-specific styles. **/
|
||||||
#product-table h3,
|
[data-ref="table"] h3 {
|
||||||
#task-table h3,
|
|
||||||
#delivery-note-table h3 {
|
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@ -309,11 +295,20 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="body-wrapper">
|
<div class="body-wrapper">
|
||||||
<table id="product-table" cellspacing="0"></table>
|
<table id="product-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
|
||||||
<table id="task-table" cellspacing="0"></table>
|
<table id="task-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
|
||||||
<table id="delivery-note-table" cellspacing="0"></table>
|
<table id="delivery-note-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
|
||||||
|
<table id="statement-invoice-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<div id="statement-invoice-table-totals" data-ref="statement-totals"></div>
|
||||||
|
|
||||||
|
<table id="statement-payment-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<div id="statement-payment-table-totals" data-ref="statement-totals"></div>
|
||||||
|
|
||||||
|
<table id="statement-aging-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<div id="statement-aging-table-totals" data-ref="statement-totals"></div>
|
||||||
|
|
||||||
<div id="table-totals" cellspacing="0"></div>
|
<div id="table-totals" cellspacing="0"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -325,7 +320,12 @@
|
|||||||
<script>
|
<script>
|
||||||
// Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
|
// Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
['product-table', 'task-table', 'delivery-note-table'].forEach((tableIdentifier) => {
|
let tables = [
|
||||||
|
'product-table', 'task-table', 'delivery-note-table',
|
||||||
|
'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
|
||||||
|
];
|
||||||
|
|
||||||
|
tables.forEach((tableIdentifier) => {
|
||||||
document.getElementById(tableIdentifier).childElementCount === 0
|
document.getElementById(tableIdentifier).childElementCount === 0
|
||||||
? document.getElementById(tableIdentifier).style.display = 'none'
|
? document.getElementById(tableIdentifier).style.display = 'none'
|
||||||
: '';
|
: '';
|
||||||
|
Loading…
Reference in New Issue
Block a user