mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Update Business
This commit is contained in:
parent
4c254e7da8
commit
f5004a9f16
@ -32,7 +32,7 @@
|
||||
.company-logo {
|
||||
max-width: 65%;
|
||||
}
|
||||
|
||||
|
||||
.header-container > span {
|
||||
display: block;
|
||||
}
|
||||
@ -93,9 +93,7 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table,
|
||||
#delivery-note-table,
|
||||
#task-table {
|
||||
[data-ref="table"] {
|
||||
margin-top: 3.5rem;
|
||||
/* margin-bottom: 200px; */
|
||||
min-width: 100%;
|
||||
@ -109,55 +107,39 @@
|
||||
color: grey;
|
||||
}
|
||||
|
||||
#product-table > thead,
|
||||
#delivery-note-table > thead,
|
||||
#task-table > thead {
|
||||
[data-ref="table"] > thead {
|
||||
text-align: left;
|
||||
background: var(--secondary-color);
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th,
|
||||
#delivery-note-table > thead > tr > th,
|
||||
#task-table > thead > tr > th {
|
||||
[data-ref="table"] > thead > tr > th {
|
||||
padding: 1rem;
|
||||
color: white;
|
||||
font-weight: semibold;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:first-child,
|
||||
#delivery-note-table > thead > tr > th:first-child,
|
||||
#task-table > thead > tr > th:first-child {
|
||||
[data-ref="table"] > thead > tr > th:first-child {
|
||||
border-top-left-radius: 1rem;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child,
|
||||
#delivery-note-table > thead > tr > th:last-child,
|
||||
#task-table > thead > tr > th:last-child {
|
||||
[data-ref="table"] > thead > tr > th:last-child {
|
||||
border-top-right-radius: 1rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td,
|
||||
#delivery-note-table > tbody > tr > td,
|
||||
#task-table > tbody > tr > td {
|
||||
[data-ref="table"] > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child,
|
||||
#delivery-note-table > tbody > tr > td:last-child,
|
||||
#task-table > tbody > tr > td:last-child {
|
||||
[data-ref="table"] > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:nth-child(odd) > td,
|
||||
#delivery-note-table > tbody > tr:nth-child(odd) > td,
|
||||
#task-table > tbody > tr:nth-child(odd) > td {
|
||||
[data-ref="table"] > tbody > tr:nth-child(odd) > td {
|
||||
background: #F7F7F7;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:nth-child(even) > td,
|
||||
#delivery-note-table > tbody > tr:nth-child(even) > td,
|
||||
#task-table > tbody > tr:nth-child(even) > td {
|
||||
[data-ref="table"] > tbody > tr:nth-child(even) > td {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
@ -241,9 +223,7 @@
|
||||
}
|
||||
|
||||
/** Markdown-specific styles. **/
|
||||
#product-table h3,
|
||||
#task-table h3,
|
||||
#delivery-note-table h3 {
|
||||
[data-ref="table"] h3 {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@ -257,8 +237,14 @@
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
[data-ref="statement-totals"] {
|
||||
margin-top: 1rem;
|
||||
text-align: right;
|
||||
margin-right: .75rem;
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
|
||||
/** Hide company logo **/
|
||||
/* .company-logo { display: none } */
|
||||
|
||||
@ -310,12 +296,21 @@
|
||||
</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" 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>
|
||||
|
||||
<table id="delivery-note-table" cellspacing="0"></table>
|
||||
|
||||
<div id="table-totals" cellspacing="0"></div>
|
||||
</div>
|
||||
|
||||
@ -325,7 +320,12 @@
|
||||
<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) => {
|
||||
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).style.display = 'none'
|
||||
: '';
|
||||
|
Loading…
Reference in New Issue
Block a user