mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Update Creative
This commit is contained in:
parent
f5004a9f16
commit
076f0bc632
@ -84,18 +84,14 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table,
|
[data-ref="table"] {
|
||||||
#delivery-note-table,
|
|
||||||
#task-table {
|
|
||||||
/* margin-bottom: 200px; */
|
/* margin-bottom: 200px; */
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table:not(:empty),
|
[data-ref="table"]:not(:empty) {
|
||||||
#delivery-note-table:not(:empty),
|
|
||||||
#task-table:not(:empty) {
|
|
||||||
border-top: 5px solid var(--primary-color);
|
border-top: 5px solid var(--primary-color);
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
@ -106,40 +102,28 @@
|
|||||||
color: grey;
|
color: grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > thead,
|
[data-ref="table"] > thead {
|
||||||
#delivery-note-table > thead,
|
|
||||||
#task-table > thead {
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > thead > tr > th,
|
[data-ref="table"] > thead > tr > th {
|
||||||
#delivery-note-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,
|
[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: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;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > tbody > tr > td,
|
[data-ref="table"] > tbody > tr > td {
|
||||||
#delivery-note-table > tbody > tr > td,
|
|
||||||
#task-table > tbody > tr > td {
|
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#product-table > tbody > tr:nth-child(odd),
|
[data-ref="table"] > tbody > tr:nth-child(odd) {
|
||||||
#delivery-note-table > tbody > tr:nth-child(odd),
|
|
||||||
#task-table > tbody > tr:nth-child(odd) {
|
|
||||||
background-color: #e8e8e8;
|
background-color: #e8e8e8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,13 +185,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-ref="statement-totals"] {
|
||||||
|
margin-top: 1rem;
|
||||||
|
text-align: right;
|
||||||
|
margin-right: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
/** Useful snippets, uncomment to enable. **/
|
/** Useful snippets, uncomment to enable. **/
|
||||||
|
|
||||||
/** Hide company logo **/
|
/** Hide company logo **/
|
||||||
@ -266,11 +254,20 @@
|
|||||||
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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>
|
||||||
@ -281,7 +278,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…
x
Reference in New Issue
Block a user