mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
commit
868d193bfd
@ -126,6 +126,7 @@ class HtmlEngine
|
||||
if ($this->entity_string == 'invoice' || $this->entity_string == 'recurring_invoice') {
|
||||
$data['$entity'] = ['value' => '', 'label' => ctrans('texts.invoice')];
|
||||
$data['$number'] = ['value' => $this->entity->number ?: ' ', 'label' => ctrans('texts.invoice_number')];
|
||||
$data['$number_short'] = ['value' => $this->entity->number ?: ' ', 'label' => ctrans('texts.invoice_number_short')];
|
||||
$data['$entity.terms'] = ['value' => $this->entity->terms ?: '', 'label' => ctrans('texts.invoice_terms')];
|
||||
$data['$terms'] = &$data['$entity.terms'];
|
||||
$data['$view_link'] = ['value' => '<a class="button" href="'.$this->invitation->getLink().'">'.ctrans('texts.view_invoice').'</a>', 'label' => ctrans('texts.view_invoice')];
|
||||
@ -142,6 +143,7 @@ class HtmlEngine
|
||||
if ($this->entity_string == 'quote') {
|
||||
$data['$entity'] = ['value' => '', 'label' => ctrans('texts.quote')];
|
||||
$data['$number'] = ['value' => $this->entity->number ?: '', 'label' => ctrans('texts.quote_number')];
|
||||
$data['$number_short'] = ['value' => $this->entity->number ?: '', 'label' => ctrans('texts.quote_number_short')];
|
||||
$data['$entity.terms'] = ['value' => $this->entity->terms ?: '', 'label' => ctrans('texts.quote_terms')];
|
||||
$data['$terms'] = &$data['$entity.terms'];
|
||||
$data['$view_link'] = ['value' => '<a class="button" href="'.$this->invitation->getLink().'">'.ctrans('texts.view_quote').'</a>', 'label' => ctrans('texts.view_quote')];
|
||||
@ -153,6 +155,7 @@ class HtmlEngine
|
||||
if ($this->entity_string == 'credit') {
|
||||
$data['$entity'] = ['value' => '', 'label' => ctrans('texts.credit')];
|
||||
$data['$number'] = ['value' => $this->entity->number ?: '', 'label' => ctrans('texts.credit_number')];
|
||||
$data['$number_short'] = ['value' => $this->entity->number ?: '', 'label' => ctrans('texts.credit_number_short')];
|
||||
$data['$entity.terms'] = ['value' => $this->entity->terms ?: '', 'label' => ctrans('texts.credit_terms')];
|
||||
$data['$terms'] = &$data['$entity.terms'];
|
||||
$data['$view_link'] = ['value' => '<a class="button" href="'.$this->invitation->getLink().'">'.ctrans('texts.view_credit').'</a>', 'label' => ctrans('texts.view_credit')];
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -31,10 +32,11 @@
|
||||
padding: 3rem;
|
||||
color: white;
|
||||
min-width: 100%;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
max-width: 65%;
|
||||
max-width: 55%;
|
||||
}
|
||||
|
||||
#company-details,
|
||||
@ -47,6 +49,7 @@
|
||||
margin: 2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#client-details > :first-child {
|
||||
@ -251,6 +254,10 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
[data-ref="product_table-product.description-th"] {
|
||||
width: 23%;
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/** Hide company logo **/
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -40,16 +41,14 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #AAA9A9;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#company-address {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #b1b1b1;
|
||||
}
|
||||
|
||||
#company-address > * {
|
||||
margin-bottom: 0.8rem;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.entity-issued-to {
|
||||
@ -58,8 +57,8 @@
|
||||
}
|
||||
|
||||
.client-and-entity-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1.5fr;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@ -67,6 +66,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 1rem;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#client-details > p:nth-child(1) {
|
||||
@ -82,6 +82,8 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#entity-details p { margin-right: 20px; }
|
||||
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
padding-bottom: .5rem;
|
||||
@ -195,6 +197,7 @@
|
||||
#table-totals>.totals-table-right-side>*> :nth-child(1) {
|
||||
text-align: "$dir_text_align";
|
||||
margin-top: .75rem;
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
#table-totals>.totals-table-right-side> * > :not([hidden]) ~ :not([hidden]) {
|
||||
@ -205,6 +208,7 @@
|
||||
|
||||
#table-totals>.totals-table-right-side>*> :nth-child(2) {
|
||||
text-align: right;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
#table-totals
|
||||
@ -244,6 +248,15 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
[data-ref="totals_table-outstanding-label"],
|
||||
[data-ref="totals_table-outstanding"] {
|
||||
background-color: var(--secondary-color);
|
||||
color: white;
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/** Hide company logo **/
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -35,6 +36,7 @@
|
||||
#company-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#company-details > p:first-child {
|
||||
@ -44,10 +46,11 @@
|
||||
#company-address {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.entity-label {
|
||||
margin-top: 1rem;
|
||||
margin-top: 2.5rem;
|
||||
text-transform: uppercase;
|
||||
padding-left: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
@ -56,8 +59,7 @@
|
||||
}
|
||||
|
||||
.client-and-entity-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: .75fr 1fr;
|
||||
display: flex;
|
||||
padding: 1rem;
|
||||
border-top: 1px solid #d8d8d8;
|
||||
border-bottom: 1px solid #d8d8d8;
|
||||
@ -65,16 +67,21 @@
|
||||
|
||||
#entity-details {
|
||||
text-align: left;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
#entity-details > tr,
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
padding-right: 15px;
|
||||
padding-top: 2.5px;
|
||||
padding-bottom: 2.5px;
|
||||
}
|
||||
|
||||
#client-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#client-details > :first-child {
|
||||
@ -201,6 +208,12 @@
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.company-logo-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
@ -236,11 +249,9 @@
|
||||
|
||||
<div id="body">
|
||||
<div class="header-container">
|
||||
<img
|
||||
class="company-logo"
|
||||
src="$company.logo"
|
||||
alt="$company.name logo"
|
||||
/>
|
||||
<div class="company-logo-container">
|
||||
<img class="company-logo" src="$company.logo" alt="$company.name logo">
|
||||
</div>
|
||||
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
@ -248,7 +259,9 @@
|
||||
|
||||
<p class="entity-label">$entity_label</p>
|
||||
<div class="client-and-entity-wrapper">
|
||||
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
||||
<div>
|
||||
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
||||
</div>
|
||||
|
||||
<div id="client-details"></div>
|
||||
</div>
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -26,12 +27,15 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 20px;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
max-width: 65%;
|
||||
}
|
||||
|
||||
#entity-details p { margin-top: 5px; }
|
||||
|
||||
.header-wrapper #client-details,
|
||||
.header-wrapper #company-details,
|
||||
.header-wrapper #company-address {
|
||||
@ -234,6 +238,7 @@
|
||||
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
||||
</style>
|
||||
|
||||
|
||||
<div id="header"></div>
|
||||
|
||||
<div id="body">
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -23,14 +24,14 @@
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
max-width: 65%;
|
||||
max-width: 55%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.company-logo-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
padding-bottom: 2.5rem;
|
||||
padding-bottom: 60px;
|
||||
border-bottom: 4px solid;
|
||||
}
|
||||
|
||||
@ -39,12 +40,15 @@
|
||||
}
|
||||
|
||||
.client-entity-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1.8fr 1.2fr;
|
||||
display: flex;
|
||||
margin-top: 3rem;
|
||||
gap: 10px;
|
||||
gap: 20px;
|
||||
margin-left: 10px;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#entity-details p { margin-right: 20px; margin-top: 5px; }
|
||||
|
||||
.client-entity-wrapper .wrapper-info-text {
|
||||
display: block;
|
||||
font-size: 1.5rem;
|
||||
@ -56,6 +60,8 @@
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.text-with-client { margin-right: 15px; }
|
||||
|
||||
.client-entity-wrapper .wrapper-left-side #client-details,
|
||||
.client-entity-wrapper .wrapper-left-side #company-details,
|
||||
.client-entity-wrapper .wrapper-left-side #company-address {
|
||||
@ -121,11 +127,18 @@
|
||||
#product-table > tbody > tr > td,
|
||||
#delivery-note-table > tbody > tr > td,
|
||||
#task-table > tbody > tr > td {
|
||||
border-bottom: 1px solid;
|
||||
border-top: 1px solid;
|
||||
border-bottom: 1pt solid;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:first-child > td,
|
||||
#delivery-note-table > tbody > tr:first-child > td,
|
||||
#task-table > tbody > tr:first-child > td {
|
||||
border-top: 1pt solid !important;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
|
||||
#product-table > tbody > tr > td:last-child,
|
||||
#delivery-note-table > tbody > tr > td:last-child,
|
||||
#task-table > tbody > tr > td:last-child {
|
||||
@ -236,24 +249,21 @@
|
||||
|
||||
<div id="body">
|
||||
<div class="company-logo-wrapper">
|
||||
<img
|
||||
class="company-logo"
|
||||
src="$company.logo"
|
||||
alt="$company.name logo"
|
||||
/>
|
||||
<img class="company-logo" src="$company.logo" alt="$company.name logo">
|
||||
</div>
|
||||
|
||||
<hr class="double-border"/>
|
||||
<hr class="double-border">
|
||||
|
||||
<div class="client-entity-wrapper">
|
||||
<div class="wrapper-left-side">
|
||||
<div class="text-with-client">
|
||||
<h2 class="wrapper-info-text">$balance_due_label</h2>
|
||||
<h2 class="wrapper-info-text">$to_label</h2>
|
||||
|
||||
<div id="client-details"></div>
|
||||
</div>
|
||||
|
||||
<div class="company-info">
|
||||
<h2 class="wrapper-info-text">$from_label</h2>
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
</div>
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -26,6 +27,7 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 1.8fr;
|
||||
gap: 20px;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.header-wrapper .header-text-label {
|
||||
@ -223,6 +225,10 @@
|
||||
direction: $dir;
|
||||
}
|
||||
|
||||
[data-ref="product_table-product.unit_cost-td"] { text-align: right; }
|
||||
|
||||
[data-ref="totals_table-outstanding"] { color: var(--primary-color); }
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/** Hide company logo **/
|
||||
@ -252,6 +258,7 @@
|
||||
/** For more info, please check our docs: https://invoiceninja.github.io **/
|
||||
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
|
||||
<div id="body">
|
||||
|
@ -1,31 +1,31 @@
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
}
|
||||
:root {
|
||||
--primary-color: #298aab;
|
||||
--secondary-color: #7081e0;
|
||||
}
|
||||
|
||||
body {
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: "$font_size";
|
||||
font-size: "7px";
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
zoom: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
@page {
|
||||
@page {
|
||||
margin: -0.22cm;
|
||||
size: $page_size $page_layout;
|
||||
}
|
||||
size: A4 portrait;
|
||||
}
|
||||
|
||||
p {
|
||||
p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
/* page-break-after: always; */
|
||||
}
|
||||
}
|
||||
|
||||
.header-container {
|
||||
.header-container {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
display: grid;
|
||||
@ -33,111 +33,111 @@
|
||||
padding: 3rem;
|
||||
min-width: 100%;
|
||||
height: 160px;
|
||||
}
|
||||
}
|
||||
|
||||
.company-name {
|
||||
.company-name {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.header-container .company-name {
|
||||
.header-container .company-name {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
#entity-details {
|
||||
#entity-details {
|
||||
text-align: left;
|
||||
color: #fff4e9 !important;
|
||||
}
|
||||
}
|
||||
|
||||
#entity-details > tr,
|
||||
#entity-details th {
|
||||
#entity-details > tr,
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.logo-client-wrapper {
|
||||
.logo-client-wrapper {
|
||||
margin: 3rem 2rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1.5fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
max-width: 65%;
|
||||
}
|
||||
.company-logo {
|
||||
max-width: 55%;
|
||||
}
|
||||
|
||||
#client-details {
|
||||
#client-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
#client-details > * {
|
||||
#client-details > * {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
.table-wrapper {
|
||||
margin: 3rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table,
|
||||
#delivery-note-table,
|
||||
#task-table {
|
||||
#product-table,
|
||||
#delivery-note-table,
|
||||
#task-table {
|
||||
min-width: 100%;
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.task-time-details {
|
||||
.task-time-details {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
color: grey;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table > thead,
|
||||
#delivery-note-table > thead,
|
||||
#task-table > thead {
|
||||
#product-table > thead,
|
||||
#delivery-note-table > thead,
|
||||
#task-table > thead {
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table th + th,
|
||||
#delivery-note-table th + th,
|
||||
#task-table th + th {
|
||||
#product-table th + th,
|
||||
#delivery-note-table th + th,
|
||||
#task-table th + th {
|
||||
border-left: 2px solid white;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th,
|
||||
#delivery-note-table > thead > tr > th,
|
||||
#task-table > thead > tr > th {
|
||||
#product-table > thead > tr > th,
|
||||
#delivery-note-table > thead > tr > th,
|
||||
#task-table > thead > tr > th {
|
||||
padding: 0.8rem;
|
||||
background-color: var(--secondary-color);
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child,
|
||||
#delivery-note-table > thead > tr > th:last-child,
|
||||
#task-table > thead > tr > th:last-child {
|
||||
#product-table > thead > tr > th:last-child,
|
||||
#delivery-note-table > thead > tr > th:last-child,
|
||||
#task-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td,
|
||||
#delivery-note-table > tbody > tr > td,
|
||||
#task-table > tbody > tr > td {
|
||||
#product-table > tbody > tr > td,
|
||||
#delivery-note-table > tbody > tr > td,
|
||||
#task-table > tbody > tr > td {
|
||||
border-bottom: 1px solid var(--secondary-color);
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:first-child,
|
||||
#delivery-note-table > tbody > tr > td:first-child,
|
||||
#task-table > tbody > tr > td:first-child {
|
||||
#product-table > tbody > tr > td:first-child,
|
||||
#delivery-note-table > tbody > tr > td:first-child,
|
||||
#task-table > tbody > tr > td:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child,
|
||||
#delivery-note-table > tbody > tr > td:last-child,
|
||||
#task-table > tbody > tr > td:last-child {
|
||||
#product-table > tbody > tr > td:last-child,
|
||||
#delivery-note-table > tbody > tr > td:last-child,
|
||||
#task-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.footer-wrapper {
|
||||
.footer-wrapper {
|
||||
margin-top: 1rem;
|
||||
background-color: var(--primary-color);
|
||||
padding-left: 3rem;
|
||||
@ -146,158 +146,170 @@
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
display: grid;
|
||||
gap: 15px;
|
||||
.footer-content {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
/* grid-template-columns: 1fr 1fr 1fr; */
|
||||
color: #fff4e9;
|
||||
max-height: 140px;
|
||||
}
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#company-address,
|
||||
#company-details {
|
||||
.footer-company-details-address-wrapper {
|
||||
display: flex;
|
||||
gap: 25px;
|
||||
margin-right: 150px;
|
||||
}
|
||||
|
||||
#company-address,
|
||||
#company-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
#company-address > *,
|
||||
#company-details > * {
|
||||
#company-address > *,
|
||||
#company-details > * {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
#table-totals {
|
||||
#table-totals {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
}
|
||||
|
||||
#table-totals {
|
||||
#table-totals {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
padding-top: .5rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-left: 3rem;
|
||||
padding-right: 3rem;
|
||||
gap: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
#table-totals .totals-table-right-side>* {
|
||||
#table-totals .totals-table-right-side > * {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
#table-totals>.totals-table-right-side>*> :nth-child(1) {
|
||||
text-align: "$dir_text_align";
|
||||
margin-top: .75rem;
|
||||
}
|
||||
#table-totals > .totals-table-right-side > * > :nth-child(1) {
|
||||
text-align: "left";
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
#table-totals>.totals-table-right-side> * > :not([hidden]) ~ :not([hidden]) {
|
||||
#table-totals
|
||||
> .totals-table-right-side
|
||||
> *
|
||||
> :not([hidden])
|
||||
~ :not([hidden]) {
|
||||
--tw-space-y-reverse: 0;
|
||||
margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)));
|
||||
margin-bottom: calc(.75rem * var(--tw-space-y-reverse));
|
||||
}
|
||||
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
||||
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
|
||||
}
|
||||
|
||||
#table-totals>.totals-table-right-side>*> :nth-child(2) {
|
||||
#table-totals > .totals-table-right-side > * > :nth-child(2) {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
#table-totals
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#table-totals
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
#table-totals > * [data-element="product-table-balance-due-label"],
|
||||
#table-totals > * [data-element="product-table-balance-due"] {
|
||||
font-weight: bold;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
table.page-container {
|
||||
table.page-container {
|
||||
page-break-after: always;
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
thead.page-header {
|
||||
thead.page-header {
|
||||
display: table-header-group;
|
||||
}
|
||||
}
|
||||
|
||||
tfoot.page-footer {
|
||||
tfoot.page-footer {
|
||||
display: table-footer-group;
|
||||
}
|
||||
}
|
||||
|
||||
.page-content-cell {
|
||||
.page-content-cell {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
[data-ref="total_table-footer"] {
|
||||
[data-ref="total_table-footer"] {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/** Repeating header & footer styling. */
|
||||
table {
|
||||
/** Repeating header & footer styling. */
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
table.print-content {}
|
||||
table.print-content {
|
||||
}
|
||||
|
||||
table.print-content th,
|
||||
table.print-content td {
|
||||
padding: .2rem .4rem;
|
||||
table.print-content th,
|
||||
table.print-content td {
|
||||
padding: 0.2rem 0.4rem;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
border-top: 1px solid #dee2e6;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
@media print {
|
||||
.print-footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.no-print {
|
||||
display: none
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Markdown-specific styles. **/
|
||||
#product-table h3,
|
||||
#task-table h3,
|
||||
#delivery-note-table h3 {
|
||||
/** Markdown-specific styles. **/
|
||||
#product-table h3,
|
||||
#task-table h3,
|
||||
#delivery-note-table h3 {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/** Hide company logo **/
|
||||
/* .company-logo { display: none } */
|
||||
[data-ref="product_table-product.description-th"] {
|
||||
width: 23%;
|
||||
}
|
||||
|
||||
/* Hide company details */
|
||||
/* #company-details > * { display: none } */
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/* Hide company address */
|
||||
/* #company-address > * { display: none } */
|
||||
/** Hide company logo **/
|
||||
/* .company-logo { display: none } */
|
||||
|
||||
/* Hide public notes */
|
||||
/* [data-ref="total_table-public_notes"] { display: none } */
|
||||
/* Hide company details */
|
||||
/* #company-details > * { display: none } */
|
||||
|
||||
/* Hide terms label */
|
||||
/* [data-ref="total_table-terms-label"] { display: none } */
|
||||
/* Hide company address */
|
||||
/* #company-address > * { display: none } */
|
||||
|
||||
/* Hide totals table */
|
||||
/* #table-totals { display: none } */
|
||||
/* Hide public notes */
|
||||
/* [data-ref="total_table-public_notes"] { display: none } */
|
||||
|
||||
/* Hide totals table left side */
|
||||
/* #table-totals div:first-child > * { display: none !important } */
|
||||
/* Hide terms label */
|
||||
/* [data-ref="total_table-terms-label"] { display: none } */
|
||||
|
||||
/* Hide totals table right side */
|
||||
/* .totals-table-right-side { display: none } */
|
||||
/* Hide totals table */
|
||||
/* #table-totals { display: none } */
|
||||
|
||||
/** For more info, please check our docs: https://invoiceninja.github.io **/
|
||||
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
||||
/* Hide totals table left side */
|
||||
/* #table-totals div:first-child > * { display: none !important } */
|
||||
|
||||
/* Hide totals table right side */
|
||||
/* .totals-table-right-side { display: none } */
|
||||
|
||||
/** For more info, please check our docs: https://invoiceninja.github.io **/
|
||||
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
||||
</style>
|
||||
|
||||
<table>
|
||||
@ -367,8 +379,10 @@
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
<div class="footer-company-details-address-wrapper">
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Footer -->
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -25,6 +26,7 @@
|
||||
.header-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
@ -34,6 +36,7 @@
|
||||
.header-wrapper #company-address {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
.header-wrapper #entity-details {
|
||||
@ -62,6 +65,7 @@
|
||||
#client-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#product-table,
|
||||
@ -134,6 +138,7 @@
|
||||
#table-totals>.totals-table-right-side>*> :nth-child(1) {
|
||||
text-align: "$dir_text_align";
|
||||
margin-top: .75rem;
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
#table-totals>.totals-table-right-side> * > :not([hidden]) ~ :not([hidden]) {
|
||||
@ -144,6 +149,7 @@
|
||||
|
||||
#table-totals>.totals-table-right-side>*> :nth-child(2) {
|
||||
text-align: right;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
#table-totals
|
||||
@ -180,6 +186,15 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
[data-ref="totals_table-outstanding-label"],
|
||||
[data-ref="totals_table-outstanding"] {
|
||||
background-color: #e6e6e6;
|
||||
color: black;
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/** Hide company logo **/
|
||||
@ -209,6 +224,7 @@
|
||||
/** For more info, please check our docs: https://invoiceninja.github.io **/
|
||||
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
|
||||
<div id="body">
|
||||
|
@ -2,6 +2,7 @@
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
--line-height: 1.6;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -24,8 +25,9 @@
|
||||
|
||||
.header-wrapper {
|
||||
margin-top: 2rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 0.5fr 2fr;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 2rem 3rem;
|
||||
}
|
||||
|
||||
@ -35,6 +37,8 @@
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#entity-details p { margin-right: 20px; }
|
||||
|
||||
.header-wrapper #entity-details {
|
||||
width: 100%;
|
||||
color: white;
|
||||
@ -249,6 +253,19 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#footer-colors {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
min-width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
||||
margin-left: -10px;
|
||||
}
|
||||
|
||||
#footer-colors > * {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
|
||||
/** Hide company logo **/
|
||||
@ -292,13 +309,9 @@
|
||||
|
||||
<div id="body">
|
||||
<div class="header-wrapper">
|
||||
<img
|
||||
class="company-logo"
|
||||
src="$company.logo"
|
||||
alt="$company.name logo"
|
||||
/>
|
||||
|
||||
<div></div>
|
||||
<div>
|
||||
<img class="company-logo" src="$company.logo" alt="$company.name logo">
|
||||
</div>
|
||||
|
||||
<div class="entity-details-wrapper">
|
||||
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
||||
@ -332,6 +345,17 @@
|
||||
<div id="footer">
|
||||
<p data-ref="total_table-footer">$entity_footer</p>
|
||||
|
||||
<div id="footer-colors">
|
||||
<div style="background-color: #00968B"><!-- 1 --></div>
|
||||
<div style="background-color: #1D756E"><!-- 2 --></div>
|
||||
<div style="background-color: #FCB600"><!-- 3 --></div>
|
||||
<div style="background-color: #BA932F"><!-- 4 --></div>
|
||||
<div style="background-color: #A72A4E"><!-- 5 --></div>
|
||||
<div style="background-color: #E20041"><!-- 6 --></div>
|
||||
<div style="background-color: #F8B300"><!-- 7 --></div>
|
||||
<div style="background-color: #009B8F"><!-- 8 --></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
@ -51,10 +51,11 @@
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
max-width: 65%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.header-invoice-number {
|
||||
|
Loading…
x
Reference in New Issue
Block a user