1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/resources/views/pdf-designs/bold.html

203 lines
4.3 KiB
HTML
Raw Normal View History

<style id="style">
:root {
2021-01-14 15:57:14 +01:00
--primary-color: $ primary_color;
--secondary-color: $ secondary_color;
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: Arial, Helvetica, sans-serif;
2021-01-14 15:57:14 +01:00
font-size: "$font_size";
}
@page {
margin: -0.25cm !important;
}
p {
margin: 0;
padding: 0;
page-break-after: always;
}
.header-wrapper {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr;
background-color: #2d2c2a;
padding: 3rem;
color: white;
}
.company-logo {
height: 6rem;
padding: 2rem;
background-color: white;
margin: -4rem 2rem 2rem;
}
#company-details,
#company-address {
display: flex;
flex-direction: column;
}
#client-details {
margin: 2rem;
display: flex;
flex-direction: column;
}
#client-details > :first-child {
font-weight: bold;
}
.client-entity-wrapper {
display: grid;
grid-template-columns: 1.5fr 1fr;
}
.entity-details-wrapper {
background-color: var(--primary-color);
padding: 1rem;
}
#entity-details {
width: 100%;
text-align: left;
color: white !important;
}
#entity-details > tr,
#entity-details th {
font-weight: normal;
padding-bottom: 0.5rem;
}
2020-11-05 13:33:43 +01:00
#product-table,
#task-table,
#delivery-note-table {
min-width: 100%;
table-layout: fixed;
overflow-wrap: break-word;
margin-top: 3rem;
/* margin-bottom: 200px; */
}
.task-time-details {
display: block;
margin-top: 5px;
color: grey;
}
2020-11-05 13:33:43 +01:00
#product-table > thead,
#delivery-note-table > thead,
2020-11-05 13:33:43 +01:00
#task-table > thead {
text-align: left;
}
2020-11-05 13:33:43 +01:00
#product-table > thead > tr > th,
#delivery-note-table > thead > tr > th,
2020-11-05 13:33:43 +01:00
#task-table > thead > tr > th {
2021-01-14 15:57:14 +01:00
padding: 1.5rem;
font-size: 1.5rem;
}
2020-11-05 13:33:43 +01:00
#product-table > thead > tr > th:last-child,
#delivery-note-table > thead > tr > th:last-child,
2020-11-05 13:33:43 +01:00
#task-table > thead > tr > th:last-child {
text-align: right;
}
2020-11-05 13:33:43 +01:00
#product-table > tbody > tr > td,
#delivery-note-table > tbody > tr > td,
2020-11-05 13:33:43 +01:00
#task-table > tbody > tr > td {
padding: 1.5rem;
}
2020-11-05 13:33:43 +01:00
#product-table > tbody > tr > td:last-child,
#delivery-note-table > tbody > tr > td:last-child,
2020-11-05 13:33:43 +01:00
#task-table > tbody > tr > td:last-child {
text-align: right;
}
2020-11-05 13:33:43 +01:00
#product-table > tbody > tr > td:first-child,
#delivery-note-table > tbody > tr > td:first-child,
2020-11-05 13:33:43 +01:00
#task-table > tbody > tr > td:first-child {
font-weight: bold;
}
2020-11-05 13:33:43 +01:00
#product-table > tbody > tr:nth-child(odd),
#delivery-note-table > tbody > tr:nth-child(odd),
2020-11-05 13:33:43 +01:00
#task-table > tbody > tr:nth-child(odd) {
background-color: #ebebeb;
}
2020-11-05 13:33:43 +01:00
#table-totals {
page-break-inside: avoid;
}
2020-11-05 13:33:43 +01:00
#table-totals > * {
display: grid;
grid-template-columns: 3fr 1fr 1fr;
padding-top: .5rem;
padding-left: 1.2rem;
gap: 20px;
}
2020-11-05 13:33:43 +01:00
#table-totals
> *
[data-element='product-table-balance-due-label'],
2020-11-05 13:33:43 +01:00
#table-totals
> *
[data-element='product-table-balance-due'] {
font-weight: bold;
font-size: 1.4rem;
}
2020-11-05 13:33:43 +01:00
#table-totals
> *
[data-element='product-table-balance-due'] {
color: var(--primary-color);
}
2020-11-05 13:33:43 +01:00
#table-totals > * > :last-child {
text-align: right;
padding-right: 1.5rem;
}
</style>
2021-01-14 15:57:14 +01:00
<div class="header-wrapper" id="header">
<div></div>
<div id="company-details"></div>
<div id="company-address"></div>
</div>
<div id="body">
<img
class="company-logo"
src="$company.logo"
alt="$company.name logo"
/>
<div class="client-entity-wrapper">
<div id="client-details" cellspacing="0"></div>
<div class="entity-details-wrapper">
<table id="entity-details"></table>
</div>
</div>
<table id="product-table" cellspacing="0"></table>
2020-07-20 17:03:52 +02:00
2020-11-05 13:33:43 +01:00
<table id="task-table" cellspacing="0"></table>
<div id="table-totals" cellspacing="0"></div>
2020-11-09 16:23:27 +01:00
<table id="delivery-note-table" cellspacing="0"></table>
</div>
2020-09-08 12:40:04 +02:00
<div id="footer">$entity_footer</div>