mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:44:30 -04:00
Update designs:
- Remove <head>, <body>, <html> tags - Unify padding/margin variables
This commit is contained in:
parent
61ea96589f
commit
2bae9bfc31
@ -1,10 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
@ -13,7 +7,7 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
body {
|
||||
@ -34,6 +28,7 @@
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.header-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1.5fr 1fr 1fr;
|
||||
@ -46,8 +41,7 @@
|
||||
height: 6rem;
|
||||
padding: 2rem;
|
||||
background-color: white;
|
||||
margin: 2rem;
|
||||
margin-top: -4rem;
|
||||
margin: -4rem 2rem 2rem;
|
||||
}
|
||||
|
||||
#company-details,
|
||||
@ -61,6 +55,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#client-details > :first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -80,6 +75,7 @@
|
||||
text-align: left;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
#entity-details > tr,
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
@ -93,25 +89,32 @@
|
||||
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;
|
||||
}
|
||||
@ -127,6 +130,7 @@
|
||||
padding-left: 1.2rem;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -136,26 +140,27 @@
|
||||
font-weight: bold;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<div class="header-wrapper" id="header">
|
||||
<div class="header-wrapper" id="header">
|
||||
<div></div>
|
||||
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<img
|
||||
class="company-logo"
|
||||
src="$company.logo"
|
||||
@ -173,7 +178,7 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
|
@ -1,10 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
@ -14,7 +8,7 @@
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
@page {
|
||||
@ -31,6 +25,7 @@
|
||||
grid-template-columns: 1.8fr 1fr 1fr;
|
||||
grid-gap: 20px;
|
||||
}
|
||||
|
||||
.header-container > span {
|
||||
display: block;
|
||||
}
|
||||
@ -44,6 +39,7 @@
|
||||
flex-direction: column;
|
||||
color: #b1b1b1;
|
||||
}
|
||||
|
||||
#company-details > * {
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
@ -53,6 +49,7 @@
|
||||
flex-direction: column;
|
||||
color: #b1b1b1;
|
||||
}
|
||||
|
||||
#company-address > * {
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
@ -73,9 +70,11 @@
|
||||
flex-direction: column;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#client-details > * {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
#client-details > span:nth-child(1) {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -88,6 +87,7 @@
|
||||
color: white;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
}
|
||||
@ -99,31 +99,39 @@
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
background: var(--secondary-color);
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
padding: 1rem;
|
||||
color: white;
|
||||
font-weight: semibold;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:first-child {
|
||||
border-top-left-radius: 1rem;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child {
|
||||
border-top-right-radius: 1rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:nth-child(odd) > td {
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:nth-child(even) > td {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
@ -149,6 +157,7 @@
|
||||
border-bottom-left-radius: 1rem;
|
||||
border-bottom-right-radius: 1rem;
|
||||
}
|
||||
|
||||
#product-table-footer > * {
|
||||
background-color: #f7f7f7;
|
||||
display: grid;
|
||||
@ -158,6 +167,7 @@
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.8rem;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -167,21 +177,22 @@
|
||||
font-weight: bold;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="header-container">
|
||||
<img
|
||||
src="$company.logo"
|
||||
@ -205,7 +216,6 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
<div id="footer"></div>
|
||||
|
@ -1,10 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
@ -14,7 +8,7 @@
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
margin: 1cm;
|
||||
}
|
||||
|
||||
@ -28,6 +22,7 @@
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.header-container .company-logo {
|
||||
height: 4rem;
|
||||
}
|
||||
@ -37,6 +32,7 @@
|
||||
flex-direction: column;
|
||||
color: #9f9f9f;
|
||||
}
|
||||
|
||||
#company-details > span:first-child {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
@ -51,17 +47,14 @@
|
||||
text-transform: uppercase;
|
||||
margin-top: 3.5rem;
|
||||
margin-bottom: 1rem;
|
||||
font-weight: semibold;
|
||||
font-weight: bold;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.client-and-entity-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
padding: 1rem;
|
||||
border-top: 1px solid #9f9f9f;
|
||||
border-bottom: 1px solid #9f9f9f;
|
||||
}
|
||||
@ -69,6 +62,7 @@
|
||||
#entity-details {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#entity-details > tr,
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
@ -78,6 +72,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#client-details > :first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -89,21 +84,26 @@
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
font-size: 1.1rem;
|
||||
padding-bottom: 1.5rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid #9f9f9f;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:first-child {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:nth-child(odd) {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
@ -119,6 +119,7 @@
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -127,21 +128,22 @@
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="header-container">
|
||||
<img
|
||||
class="company-logo"
|
||||
@ -162,7 +164,6 @@
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
<div id="footer"></div>
|
||||
|
@ -1,17 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
}
|
||||
|
||||
* {
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
p {
|
||||
@ -34,6 +28,7 @@
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 2rem;
|
||||
}
|
||||
@ -43,18 +38,22 @@
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.header-wrapper .company-logo {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.header-wrapper #client-details,
|
||||
.header-wrapper #company-details,
|
||||
.header-wrapper #company-address {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.header-wrapper #client-details > *:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header-wrapper .company-info-wrapper > * {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
@ -64,19 +63,24 @@
|
||||
grid-template-columns: 2fr 1fr;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.entity-label-wrapper .entity-label > * {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.entity-label-wrapper .entity-label > *:first-child {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.entity-label-wrapper .entity-label > *:last-child {
|
||||
color: var(--primary-color);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.entity-label-wrapper #entity-details {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.entity-label-wrapper #entity-details > tr,
|
||||
.entity-label-wrapper #entity-details th {
|
||||
font-weight: normal;
|
||||
@ -90,22 +94,28 @@
|
||||
overflow-wrap: break-word;
|
||||
border-top: 5px solid var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
font-size: 1.1rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr:nth-child(odd) {
|
||||
background-color: #e8e8e8;
|
||||
}
|
||||
@ -119,29 +129,32 @@
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table-footer > * > * {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
#product-table-footer > *:last-child > * {
|
||||
border-top: 5px solid var(--primary-color);
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="header-wrapper">
|
||||
<div id="client-details"></div>
|
||||
|
||||
@ -169,7 +182,6 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
<div id="footer"></div>
|
||||
|
@ -1,17 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
}
|
||||
|
||||
* {
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
p {
|
||||
@ -33,6 +27,7 @@
|
||||
padding-bottom: 2.5rem;
|
||||
border-bottom: 4px solid;
|
||||
}
|
||||
|
||||
.company-logo-wrapper .company-logo {
|
||||
height: 5rem;
|
||||
}
|
||||
@ -48,15 +43,18 @@
|
||||
margin-top: 3rem;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.client-entity-wrapper .wrapper-info-text {
|
||||
display: block;
|
||||
font-size: 1.5rem;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.client-entity-wrapper .wrapper-left-side {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.client-entity-wrapper .wrapper-left-side #client-details,
|
||||
.client-entity-wrapper .wrapper-left-side #company-details,
|
||||
.client-entity-wrapper .wrapper-left-side #company-address {
|
||||
@ -64,15 +62,18 @@
|
||||
flex-direction: column;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.client-entity-wrapper .wrapper-left-side .company-info {
|
||||
border-left: 1px solid;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.client-entity-wrapper #entity-details {
|
||||
text-align: left;
|
||||
margin-top: 0.5rem;
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.client-entity-wrapper #entity-details > tr,
|
||||
.client-entity-wrapper #entity-details th {
|
||||
font-weight: normal;
|
||||
@ -85,23 +86,28 @@
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
font-size: 1.1rem;
|
||||
padding-bottom: 1.5rem;
|
||||
padding-left: 1rem;
|
||||
color: var(--primary-color);
|
||||
font-weight: medium;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
@ -126,6 +132,7 @@
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -134,21 +141,22 @@
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="company-logo-wrapper">
|
||||
<img
|
||||
class="company-logo"
|
||||
@ -157,7 +165,7 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<hr class="double-border" />
|
||||
<hr class="double-border"/>
|
||||
|
||||
<div class="client-entity-wrapper">
|
||||
<div class="wrapper-left-side">
|
||||
@ -182,10 +190,10 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<p class="thanks-label">$thanks_label!</p>
|
||||
<hr class="double-border" />
|
||||
<p class="thanks-label">$thanks_label!</p>
|
||||
<hr class="double-border"/>
|
||||
|
||||
<div id="footer"></div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
|
@ -1,17 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
}
|
||||
|
||||
* {
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
p {
|
||||
@ -25,7 +19,9 @@
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
@page { margin: 1cm; }
|
||||
@page {
|
||||
margin: 1cm;
|
||||
}
|
||||
|
||||
.header-wrapper {
|
||||
display: grid;
|
||||
@ -39,20 +35,24 @@
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header-wrapper .header-left-side-wrapper {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
border-left: 1px solid #303030;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.header-wrapper .header-left-side-wrapper > * {
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
|
||||
.header-wrapper .header-left-side-wrapper #company-details,
|
||||
.header-wrapper .header-left-side-wrapper #company-address {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.header-wrapper .header-right-side-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
@ -60,11 +60,13 @@
|
||||
border-left: 1px solid #303030;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.header-wrapper .header-right-side-wrapper #client-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
|
||||
.header-wrapper .company-logo {
|
||||
height: 5rem;
|
||||
}
|
||||
@ -78,12 +80,15 @@
|
||||
.entity-details-wrapper {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.entity-details-wrapper > * {
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
|
||||
.entity-details-wrapper .entity-property-label {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.entity-details-wrapper
|
||||
[data-element='entity-details-wrapper-invoice-number-label'],
|
||||
.entity-details-wrapper
|
||||
@ -99,24 +104,29 @@
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
font-size: 1.1rem;
|
||||
padding-bottom: 1.5rem;
|
||||
padding-left: 1rem;
|
||||
border-left: 1px solid;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
border-left: 1px solid;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
@ -132,6 +142,7 @@
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -140,21 +151,21 @@
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
<div id="header"></div>
|
||||
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="header-wrapper">
|
||||
<div class="header-left-side-wrapper">
|
||||
<p class="header-text-label">$from_label:</p>
|
||||
@ -208,7 +219,6 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
<div id="footer"></div>
|
||||
|
@ -1,17 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
}
|
||||
|
||||
* {
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
body {
|
||||
@ -46,6 +40,7 @@
|
||||
text-align: left;
|
||||
color: #fff4e9 !important;
|
||||
}
|
||||
|
||||
#entity-details > tr,
|
||||
#entity-details th {
|
||||
font-weight: normal;
|
||||
@ -66,6 +61,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#client-details > * {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
@ -79,24 +75,30 @@
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
padding: 0.8rem;
|
||||
background-color: var(--secondary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid var(--secondary-color);
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
@ -126,6 +128,7 @@
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#company-address > *,
|
||||
#company-details > * {
|
||||
margin-bottom: 0.5rem;
|
||||
@ -142,6 +145,7 @@
|
||||
margin-right: 1.5rem;
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -151,13 +155,16 @@
|
||||
font-weight: bold;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
#product-table-footer > * > * {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
#product-table-footer > *:last-child {
|
||||
background-color: var(--secondary-color);
|
||||
color: white;
|
||||
@ -168,16 +175,17 @@
|
||||
table.page-container {
|
||||
page-break-after: always;
|
||||
}
|
||||
|
||||
thead.page-header {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
tfoot.page-footer {
|
||||
display: table-footer-group;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<table class="page-container">
|
||||
<table class="page-container">
|
||||
<thead class="page-header">
|
||||
<tr>
|
||||
<th class="page-header-cell">
|
||||
@ -225,5 +233,4 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</html>
|
||||
</table>
|
||||
|
@ -1,12 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
* {
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
p {
|
||||
@ -26,18 +20,22 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
|
||||
.header-wrapper .company-logo {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.header-wrapper #company-address {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.header-wrapper #entity-details {
|
||||
margin-top: 1.5rem;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.header-wrapper #entity-details > tr,
|
||||
.header-wrapper #entity-details th {
|
||||
font-weight: normal;
|
||||
@ -45,6 +43,7 @@
|
||||
padding-top: 0.3rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.header-wrapper
|
||||
#entity-details
|
||||
[data-element='entity-balance-due-label'],
|
||||
@ -66,20 +65,25 @@
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 200px;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
padding: 1rem;
|
||||
background-color: #e6e6e6;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
@ -95,6 +99,7 @@
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -103,16 +108,15 @@
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
<div id="header"></div>
|
||||
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="header-wrapper">
|
||||
<p>$company.name</p>
|
||||
|
||||
@ -134,7 +138,7 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
|
@ -1,17 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head id="head">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style id="style">
|
||||
<style id="style">
|
||||
:root {
|
||||
--primary-color: $primary_color;
|
||||
--secondary-color: $secondary_color;
|
||||
}
|
||||
|
||||
* {
|
||||
font-size: '$font_size';
|
||||
font-size: "$font_size";
|
||||
}
|
||||
|
||||
p {
|
||||
@ -30,19 +24,23 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
|
||||
.header-wrapper .company-logo {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.header-wrapper .entity-details-wrapper {
|
||||
background-color: var(--primary-color);
|
||||
padding: 1rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.header-wrapper #entity-details {
|
||||
width: 100%;
|
||||
color: white;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.header-wrapper #entity-details > tr,
|
||||
.header-wrapper #entity-details th {
|
||||
font-weight: normal;
|
||||
@ -54,11 +52,13 @@
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.contacts-wrapper .contact-label {
|
||||
font-weight: bold;
|
||||
color: var(--primary-color);
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.contacts-wrapper #company-address,
|
||||
.contacts-wrapper #company-details,
|
||||
.contacts-wrapper #client-details {
|
||||
@ -66,6 +66,7 @@
|
||||
flex-direction: column;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.contacts-wrapper .company-info {
|
||||
margin-top: 1rem;
|
||||
padding: 1rem;
|
||||
@ -74,6 +75,7 @@
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.contacts-wrapper #client-details {
|
||||
margin-top: 1rem;
|
||||
padding: 1rem;
|
||||
@ -92,33 +94,41 @@
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#product-table > thead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#product-table > thead > tr > th {
|
||||
font-size: 1.2rem;
|
||||
padding: 1rem;
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
#product-table > thead tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#product-table > thead tr > th:first-child {
|
||||
border-top-left-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
}
|
||||
|
||||
#product-table > thead tr > th:last-child {
|
||||
border-top-right-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid var(--primary-color);
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:first-child {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
@ -134,6 +144,7 @@
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
@ -142,21 +153,22 @@
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</style>
|
||||
|
||||
<div id="header"></div>
|
||||
<div id="header"></div>
|
||||
|
||||
<body id="body">
|
||||
<div id="body">
|
||||
<div class="header-wrapper">
|
||||
<img
|
||||
class="company-logo"
|
||||
@ -189,7 +201,7 @@
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user