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

180 lines
4.9 KiB
HTML
Raw Normal View History

2020-07-20 17:03:52 +02:00
<!DOCTYPE html>
2020-09-04 13:18:17 +02:00
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2020-07-20 17:03:52 +02:00
<style id="style">
2020-10-01 13:33:06 +02:00
:root {
--primary-color: $primary_color;
--secondary-color: $secondary_color;
}
* {
margin: 0;
padding: 0;
2020-10-01 13:37:34 +02:00
font-size: '$font_size';
}
2020-09-04 13:18:17 +02:00
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: Arial, Helvetica, sans-serif;
}
2020-07-20 17:03:52 +02:00
2020-09-11 11:53:52 +02:00
p {
margin: 0;
padding: 0;
page-break-after: always;
}
@media print {
body {
margin-top: 0;
margin-right: 0;
}
}
.header-wrapper {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr;
background-color: #2d2c2a;
padding: 3rem;
color: white;
}
2020-09-04 13:18:17 +02:00
.company-logo {
height: 6rem;
padding: 2rem;
background-color: white;
margin: 2rem;
margin-top: -4rem;
}
#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 {
2020-10-01 13:33:06 +02:00
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;
}
#product-table {
min-width: 100%;
table-layout: fixed;
overflow-wrap: break-word;
margin-top: 3rem;
margin-bottom: 200px;
}
#product-table > thead {
text-align: left;
}
#product-table > thead > tr > th {
padding: 2rem;
font-size: 1.5rem;
}
#product-table > thead > tr > th:last-child {
text-align: right;
}
#product-table > tbody > tr > td {
padding: 1.5rem;
}
#product-table > tbody > tr > td:last-child {
text-align: right;
}
#product-table > tbody > tr > td:first-child {
font-weight: bold;
}
#product-table > tbody > tr:nth-child(odd) {
background-color: #ebebeb;
}
2020-07-20 17:03:52 +02:00
2020-09-11 16:47:47 +02:00
#product-table-footer {
page-break-inside: avoid;
}
#product-table-footer > * {
display: grid;
grid-template-columns: 3fr 1fr 1fr;
2020-09-11 16:47:47 +02:00
padding-top: .5rem;
padding-left: 1.2rem;
gap: 20px;
}
#product-table-footer
> *
[data-element='product-table-balance-due-label'],
#product-table-footer
> *
[data-element='product-table-balance-due'] {
font-weight: bold;
font-size: 1.4rem;
}
#product-table-footer
> *
[data-element='product-table-balance-due'] {
2020-10-01 13:33:06 +02:00
color: var(--primary-color);
}
#product-table-footer > * > :last-child {
text-align: right;
padding-right: 1.5rem;
}
</style>
</head>
<div class="header-wrapper" id="header">
2020-10-01 13:40:09 +02:00
<div></div>
<div id="company-details"></div>
<div id="company-address"></div>
</div>
<body id="body">
2020-09-04 13:18:17 +02:00
<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>
2020-07-20 17:03:52 +02:00
</div>
</div>
2020-09-04 13:18:17 +02:00
<table id="product-table" cellspacing="0"></table>
2020-09-08 12:40:04 +02:00
2020-09-08 13:14:44 +02:00
<div id="product-table-footer" cellspacing="0"></div>
2020-09-04 13:18:17 +02:00
</body>
2020-09-11 11:53:52 +02:00
2020-10-01 13:40:09 +02:00
<div id="footer"></div>
2020-07-20 17:03:52 +02:00
</html>