Update designs:

- Remove <head>, <body>, <html> tags
- Unify padding/margin variables
This commit is contained in:
Benjamin Beganović 2020-10-07 18:35:30 +02:00
parent 61ea96589f
commit 2bae9bfc31
9 changed files with 1561 additions and 1492 deletions

View File

@ -1,10 +1,4 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
@ -13,7 +7,7 @@
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-size: '$font_size'; font-size: "$font_size";
} }
body { body {
@ -34,6 +28,7 @@
margin-right: 0; margin-right: 0;
} }
} }
.header-wrapper { .header-wrapper {
display: grid; display: grid;
grid-template-columns: 1.5fr 1fr 1fr; grid-template-columns: 1.5fr 1fr 1fr;
@ -46,8 +41,7 @@
height: 6rem; height: 6rem;
padding: 2rem; padding: 2rem;
background-color: white; background-color: white;
margin: 2rem; margin: -4rem 2rem 2rem;
margin-top: -4rem;
} }
#company-details, #company-details,
@ -61,6 +55,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
#client-details > :first-child { #client-details > :first-child {
font-weight: bold; font-weight: bold;
} }
@ -80,6 +75,7 @@
text-align: left; text-align: left;
color: white !important; color: white !important;
} }
#entity-details > tr, #entity-details > tr,
#entity-details th { #entity-details th {
font-weight: normal; font-weight: normal;
@ -93,25 +89,32 @@
margin-top: 3rem; margin-top: 3rem;
margin-bottom: 200px; margin-bottom: 200px;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
padding: 2rem; padding: 2rem;
font-size: 1.5rem; font-size: 1.5rem;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
padding: 1.5rem; padding: 1.5rem;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td:first-child { #product-table > tbody > tr > td:first-child {
font-weight: bold; font-weight: bold;
} }
#product-table > tbody > tr:nth-child(odd) { #product-table > tbody > tr:nth-child(odd) {
background-color: #ebebeb; background-color: #ebebeb;
} }
@ -127,6 +130,7 @@
padding-left: 1.2rem; padding-left: 1.2rem;
gap: 20px; gap: 20px;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -136,26 +140,27 @@
font-weight: bold; font-weight: bold;
font-size: 1.4rem; font-size: 1.4rem;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1.5rem; padding-right: 1.5rem;
} }
</style> </style>
</head>
<div class="header-wrapper" id="header"> <div class="header-wrapper" id="header">
<div></div> <div></div>
<div id="company-details"></div> <div id="company-details"></div>
<div id="company-address"></div> <div id="company-address"></div>
</div> </div>
<body id="body"> <div id="body">
<img <img
class="company-logo" class="company-logo"
src="$company.logo" src="$company.logo"
@ -173,7 +178,7 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div>
<div id="footer"></div>
</html>

View File

@ -1,10 +1,4 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
@ -14,7 +8,7 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size: '$font_size'; font-size: "$font_size";
} }
@page { @page {
@ -31,6 +25,7 @@
grid-template-columns: 1.8fr 1fr 1fr; grid-template-columns: 1.8fr 1fr 1fr;
grid-gap: 20px; grid-gap: 20px;
} }
.header-container > span { .header-container > span {
display: block; display: block;
} }
@ -44,6 +39,7 @@
flex-direction: column; flex-direction: column;
color: #b1b1b1; color: #b1b1b1;
} }
#company-details > * { #company-details > * {
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
} }
@ -53,6 +49,7 @@
flex-direction: column; flex-direction: column;
color: #b1b1b1; color: #b1b1b1;
} }
#company-address > * { #company-address > * {
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
} }
@ -73,9 +70,11 @@
flex-direction: column; flex-direction: column;
color: var(--primary-color); color: var(--primary-color);
} }
#client-details > * { #client-details > * {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
#client-details > span:nth-child(1) { #client-details > span:nth-child(1) {
font-weight: bold; font-weight: bold;
} }
@ -88,6 +87,7 @@
color: white; color: white;
text-align: left; text-align: left;
} }
#entity-details th { #entity-details th {
font-weight: normal; font-weight: normal;
} }
@ -99,31 +99,39 @@
table-layout: fixed; table-layout: fixed;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
background: var(--secondary-color); background: var(--secondary-color);
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
padding: 1rem; padding: 1rem;
color: white; color: white;
font-weight: semibold; font-weight: semibold;
} }
#product-table > thead > tr > th:first-child { #product-table > thead > tr > th:first-child {
border-top-left-radius: 1rem; border-top-left-radius: 1rem;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
border-top-right-radius: 1rem; border-top-right-radius: 1rem;
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr:nth-child(odd) > td { #product-table > tbody > tr:nth-child(odd) > td {
background: #e8e8e8; background: #e8e8e8;
} }
#product-table > tbody > tr:nth-child(even) > td { #product-table > tbody > tr:nth-child(even) > td {
background: #f7f7f7; background: #f7f7f7;
} }
@ -149,6 +157,7 @@
border-bottom-left-radius: 1rem; border-bottom-left-radius: 1rem;
border-bottom-right-radius: 1rem; border-bottom-right-radius: 1rem;
} }
#product-table-footer > * { #product-table-footer > * {
background-color: #f7f7f7; background-color: #f7f7f7;
display: grid; display: grid;
@ -158,6 +167,7 @@
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.8rem; padding-bottom: 0.8rem;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -167,21 +177,22 @@
font-weight: bold; font-weight: bold;
font-size: 1.2rem; font-size: 1.2rem;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: red; color: red;
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
</style> </style>
</head>
<div id="header"></div> <div id="header"></div>
<body id="body"> <div id="body">
<div class="header-container"> <div class="header-container">
<img <img
src="$company.logo" src="$company.logo"
@ -205,7 +216,6 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div> <div id="footer"></div>
</html>

View File

@ -1,10 +1,4 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
@ -14,7 +8,7 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size: '$font_size'; font-size: "$font_size";
margin: 1cm; margin: 1cm;
} }
@ -28,6 +22,7 @@
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
gap: 20px; gap: 20px;
} }
.header-container .company-logo { .header-container .company-logo {
height: 4rem; height: 4rem;
} }
@ -37,6 +32,7 @@
flex-direction: column; flex-direction: column;
color: #9f9f9f; color: #9f9f9f;
} }
#company-details > span:first-child { #company-details > span:first-child {
color: var(--primary-color); color: var(--primary-color);
} }
@ -51,17 +47,14 @@
text-transform: uppercase; text-transform: uppercase;
margin-top: 3.5rem; margin-top: 3.5rem;
margin-bottom: 1rem; margin-bottom: 1rem;
font-weight: semibold; font-weight: bold;
color: var(--primary-color); color: var(--primary-color);
} }
.client-and-entity-wrapper { .client-and-entity-wrapper {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
padding-left: 1rem; padding: 1rem;
padding-right: 1rem;
padding-top: 1rem;
padding-bottom: 1rem;
border-top: 1px solid #9f9f9f; border-top: 1px solid #9f9f9f;
border-bottom: 1px solid #9f9f9f; border-bottom: 1px solid #9f9f9f;
} }
@ -69,6 +62,7 @@
#entity-details { #entity-details {
text-align: left; text-align: left;
} }
#entity-details > tr, #entity-details > tr,
#entity-details th { #entity-details th {
font-weight: normal; font-weight: normal;
@ -78,6 +72,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
#client-details > :first-child { #client-details > :first-child {
font-weight: bold; font-weight: bold;
} }
@ -89,21 +84,26 @@
table-layout: fixed; table-layout: fixed;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
font-size: 1.1rem; font-size: 1.1rem;
padding-bottom: 1.5rem; padding-bottom: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
border-bottom: 1px solid #9f9f9f; border-bottom: 1px solid #9f9f9f;
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr > td:first-child { #product-table > tbody > tr > td:first-child {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table > tbody > tr:nth-child(odd) { #product-table > tbody > tr:nth-child(odd) {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
@ -119,6 +119,7 @@
padding-left: 1rem; padding-left: 1rem;
gap: 20px; gap: 20px;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -127,21 +128,22 @@
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
</style> </style>
</head>
<div id="header"></div> <div id="header"></div>
<body id="body"> <div id="body">
<div class="header-container"> <div class="header-container">
<img <img
class="company-logo" class="company-logo"
@ -162,7 +164,6 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div> <div id="footer"></div>
</html>

View File

@ -1,17 +1,11 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
} }
* { * {
font-size: '$font_size'; font-size: "$font_size";
} }
p { p {
@ -34,6 +28,7 @@
padding: 0; padding: 0;
} }
} }
body { body {
margin: 2rem; margin: 2rem;
} }
@ -43,18 +38,22 @@
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
gap: 20px; gap: 20px;
} }
.header-wrapper .company-logo { .header-wrapper .company-logo {
height: 5rem; height: 5rem;
} }
.header-wrapper #client-details, .header-wrapper #client-details,
.header-wrapper #company-details, .header-wrapper #company-details,
.header-wrapper #company-address { .header-wrapper #company-address {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.header-wrapper #client-details > *:first-child { .header-wrapper #client-details > *:first-child {
font-weight: bold; font-weight: bold;
} }
.header-wrapper .company-info-wrapper > * { .header-wrapper .company-info-wrapper > * {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -64,19 +63,24 @@
grid-template-columns: 2fr 1fr; grid-template-columns: 2fr 1fr;
margin-top: 3rem; margin-top: 3rem;
} }
.entity-label-wrapper .entity-label > * { .entity-label-wrapper .entity-label > * {
font-size: 3rem; font-size: 3rem;
} }
.entity-label-wrapper .entity-label > *:first-child { .entity-label-wrapper .entity-label > *:first-child {
text-transform: uppercase; text-transform: uppercase;
} }
.entity-label-wrapper .entity-label > *:last-child { .entity-label-wrapper .entity-label > *:last-child {
color: var(--primary-color); color: var(--primary-color);
font-style: italic; font-style: italic;
} }
.entity-label-wrapper #entity-details { .entity-label-wrapper #entity-details {
text-align: left; text-align: left;
} }
.entity-label-wrapper #entity-details > tr, .entity-label-wrapper #entity-details > tr,
.entity-label-wrapper #entity-details th { .entity-label-wrapper #entity-details th {
font-weight: normal; font-weight: normal;
@ -90,22 +94,28 @@
overflow-wrap: break-word; overflow-wrap: break-word;
border-top: 5px solid var(--primary-color); border-top: 5px solid var(--primary-color);
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
font-size: 1.1rem; font-size: 1.1rem;
padding: 1rem; padding: 1rem;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr:nth-child(odd) { #product-table > tbody > tr:nth-child(odd) {
background-color: #e8e8e8; background-color: #e8e8e8;
} }
@ -119,29 +129,32 @@
grid-template-columns: 3fr 1fr 1fr; grid-template-columns: 3fr 1fr 1fr;
padding-top: 1rem; padding-top: 1rem;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > * { #product-table-footer > * > * {
padding-left: 1rem; padding-left: 1rem;
} }
#product-table-footer > *:last-child > * { #product-table-footer > *:last-child > * {
border-top: 5px solid var(--primary-color); border-top: 5px solid var(--primary-color);
padding-top: 1rem; padding-top: 1rem;
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
</style> </style>
</head>
<div id="header"></div> <div id="header"></div>
<body id="body"> <div id="body">
<div class="header-wrapper"> <div class="header-wrapper">
<div id="client-details"></div> <div id="client-details"></div>
@ -169,7 +182,6 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div> <div id="footer"></div>
</html>

View File

@ -1,17 +1,11 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
} }
* { * {
font-size: '$font_size'; font-size: "$font_size";
} }
p { p {
@ -33,6 +27,7 @@
padding-bottom: 2.5rem; padding-bottom: 2.5rem;
border-bottom: 4px solid; border-bottom: 4px solid;
} }
.company-logo-wrapper .company-logo { .company-logo-wrapper .company-logo {
height: 5rem; height: 5rem;
} }
@ -48,15 +43,18 @@
margin-top: 3rem; margin-top: 3rem;
gap: 10px; gap: 10px;
} }
.client-entity-wrapper .wrapper-info-text { .client-entity-wrapper .wrapper-info-text {
display: block; display: block;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: normal; font-weight: normal;
} }
.client-entity-wrapper .wrapper-left-side { .client-entity-wrapper .wrapper-left-side {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
.client-entity-wrapper .wrapper-left-side #client-details, .client-entity-wrapper .wrapper-left-side #client-details,
.client-entity-wrapper .wrapper-left-side #company-details, .client-entity-wrapper .wrapper-left-side #company-details,
.client-entity-wrapper .wrapper-left-side #company-address { .client-entity-wrapper .wrapper-left-side #company-address {
@ -64,15 +62,18 @@
flex-direction: column; flex-direction: column;
margin-top: 0.5rem; margin-top: 0.5rem;
} }
.client-entity-wrapper .wrapper-left-side .company-info { .client-entity-wrapper .wrapper-left-side .company-info {
border-left: 1px solid; border-left: 1px solid;
padding-left: 1rem; padding-left: 1rem;
} }
.client-entity-wrapper #entity-details { .client-entity-wrapper #entity-details {
text-align: left; text-align: left;
margin-top: 0.5rem; margin-top: 0.5rem;
min-width: 100%; min-width: 100%;
} }
.client-entity-wrapper #entity-details > tr, .client-entity-wrapper #entity-details > tr,
.client-entity-wrapper #entity-details th { .client-entity-wrapper #entity-details th {
font-weight: normal; font-weight: normal;
@ -85,23 +86,28 @@
table-layout: fixed; table-layout: fixed;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
font-size: 1.1rem; font-size: 1.1rem;
padding-bottom: 1.5rem; padding-bottom: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
color: var(--primary-color); color: var(--primary-color);
font-weight: medium; font-weight: bold;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
border-bottom: 1px solid; border-bottom: 1px solid;
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
@ -126,6 +132,7 @@
padding-left: 1rem; padding-left: 1rem;
gap: 20px; gap: 20px;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -134,21 +141,22 @@
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 0.5rem; padding-right: 0.5rem;
} }
</style> </style>
</head>
<div id="header"></div> <div id="header"></div>
<body id="body"> <div id="body">
<div class="company-logo-wrapper"> <div class="company-logo-wrapper">
<img <img
class="company-logo" class="company-logo"
@ -157,7 +165,7 @@
/> />
</div> </div>
<hr class="double-border" /> <hr class="double-border"/>
<div class="client-entity-wrapper"> <div class="client-entity-wrapper">
<div class="wrapper-left-side"> <div class="wrapper-left-side">
@ -182,10 +190,10 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<p class="thanks-label">$thanks_label!</p> <p class="thanks-label">$thanks_label!</p>
<hr class="double-border" /> <hr class="double-border"/>
<div id="footer"></div>
<div id="footer"></div>
</html>

View File

@ -1,17 +1,11 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
} }
* { * {
font-size: '$font_size'; font-size: "$font_size";
} }
p { p {
@ -25,7 +19,9 @@
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
} }
@page { margin: 1cm; } @page {
margin: 1cm;
}
.header-wrapper { .header-wrapper {
display: grid; display: grid;
@ -39,20 +35,24 @@
text-transform: uppercase; text-transform: uppercase;
font-weight: bold; font-weight: bold;
} }
.header-wrapper .header-left-side-wrapper { .header-wrapper .header-left-side-wrapper {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 10px; gap: 10px;
border-left: 1px solid #303030; border-left: 1px solid #303030;
padding-left: 1rem; padding-left: 1rem;
} }
.header-wrapper .header-left-side-wrapper > * { .header-wrapper .header-left-side-wrapper > * {
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
} }
.header-wrapper .header-left-side-wrapper #company-details, .header-wrapper .header-left-side-wrapper #company-details,
.header-wrapper .header-left-side-wrapper #company-address { .header-wrapper .header-left-side-wrapper #company-address {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.header-wrapper .header-right-side-wrapper { .header-wrapper .header-right-side-wrapper {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
@ -60,11 +60,13 @@
border-left: 1px solid #303030; border-left: 1px solid #303030;
padding-left: 1rem; padding-left: 1rem;
} }
.header-wrapper .header-right-side-wrapper #client-details { .header-wrapper .header-right-side-wrapper #client-details {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-top: 0.8rem; margin-top: 0.8rem;
} }
.header-wrapper .company-logo { .header-wrapper .company-logo {
height: 5rem; height: 5rem;
} }
@ -78,12 +80,15 @@
.entity-details-wrapper { .entity-details-wrapper {
margin: 1rem; margin: 1rem;
} }
.entity-details-wrapper > * { .entity-details-wrapper > * {
margin-right: 1.5rem; margin-right: 1.5rem;
} }
.entity-details-wrapper .entity-property-label { .entity-details-wrapper .entity-property-label {
text-transform: uppercase; text-transform: uppercase;
} }
.entity-details-wrapper .entity-details-wrapper
[data-element='entity-details-wrapper-invoice-number-label'], [data-element='entity-details-wrapper-invoice-number-label'],
.entity-details-wrapper .entity-details-wrapper
@ -99,24 +104,29 @@
table-layout: fixed; table-layout: fixed;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
text-transform: uppercase; text-transform: uppercase;
font-weight: bold; font-weight: bold;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
font-size: 1.1rem; font-size: 1.1rem;
padding-bottom: 1.5rem; padding-bottom: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
border-left: 1px solid; border-left: 1px solid;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
padding: 1rem; padding: 1rem;
border-left: 1px solid; border-left: 1px solid;
} }
#product-table > tbody > tr td:last-child { #product-table > tbody > tr td:last-child {
text-align: right; text-align: right;
} }
@ -132,6 +142,7 @@
padding-left: 1rem; padding-left: 1rem;
gap: 20px; gap: 20px;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -140,21 +151,21 @@
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
</style> </style>
</head> <div id="header"></div>
<div id="header"></div> <div id="body">
<body id="body">
<div class="header-wrapper"> <div class="header-wrapper">
<div class="header-left-side-wrapper"> <div class="header-left-side-wrapper">
<p class="header-text-label">$from_label:</p> <p class="header-text-label">$from_label:</p>
@ -208,7 +219,6 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div> <div id="footer"></div>
</html>

View File

@ -1,17 +1,11 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
} }
* { * {
font-size: '$font_size'; font-size: "$font_size";
} }
body { body {
@ -46,6 +40,7 @@
text-align: left; text-align: left;
color: #fff4e9 !important; color: #fff4e9 !important;
} }
#entity-details > tr, #entity-details > tr,
#entity-details th { #entity-details th {
font-weight: normal; font-weight: normal;
@ -66,6 +61,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
#client-details > * { #client-details > * {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
@ -79,24 +75,30 @@
table-layout: fixed; table-layout: fixed;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
padding: 0.8rem; padding: 0.8rem;
background-color: var(--secondary-color); background-color: var(--secondary-color);
color: white; color: white;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
border-bottom: 1px solid var(--secondary-color); border-bottom: 1px solid var(--secondary-color);
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr > td:first-child { #product-table > tbody > tr > td:first-child {
font-weight: bold; font-weight: bold;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
@ -126,6 +128,7 @@
margin-top: 2rem; margin-top: 2rem;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
#company-address > *, #company-address > *,
#company-details > * { #company-details > * {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
@ -142,6 +145,7 @@
margin-right: 1.5rem; margin-right: 1.5rem;
margin-left: 1.5rem; margin-left: 1.5rem;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -151,13 +155,16 @@
font-weight: bold; font-weight: bold;
font-size: 1.3rem; font-size: 1.3rem;
} }
#product-table-footer > * > * { #product-table-footer > * > * {
padding-left: 1.5rem; padding-left: 1.5rem;
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
#product-table-footer > *:last-child { #product-table-footer > *:last-child {
background-color: var(--secondary-color); background-color: var(--secondary-color);
color: white; color: white;
@ -168,16 +175,17 @@
table.page-container { table.page-container {
page-break-after: always; page-break-after: always;
} }
thead.page-header { thead.page-header {
display: table-header-group; display: table-header-group;
} }
tfoot.page-footer { tfoot.page-footer {
display: table-footer-group; display: table-footer-group;
} }
</style> </style>
</head>
<table class="page-container"> <table class="page-container">
<thead class="page-header"> <thead class="page-header">
<tr> <tr>
<th class="page-header-cell"> <th class="page-header-cell">
@ -225,5 +233,4 @@
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</html>

View File

@ -1,12 +1,6 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
* { * {
font-size: '$font_size'; font-size: "$font_size";
} }
p { p {
@ -26,18 +20,22 @@
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.header-wrapper .company-logo { .header-wrapper .company-logo {
height: 5rem; height: 5rem;
} }
.header-wrapper #company-address { .header-wrapper #company-address {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.header-wrapper #entity-details { .header-wrapper #entity-details {
margin-top: 1.5rem; margin-top: 1.5rem;
text-align: left; text-align: left;
width: 100%; width: 100%;
} }
.header-wrapper #entity-details > tr, .header-wrapper #entity-details > tr,
.header-wrapper #entity-details th { .header-wrapper #entity-details th {
font-weight: normal; font-weight: normal;
@ -45,6 +43,7 @@
padding-top: 0.3rem; padding-top: 0.3rem;
padding-bottom: 0.3rem; padding-bottom: 0.3rem;
} }
.header-wrapper .header-wrapper
#entity-details #entity-details
[data-element='entity-balance-due-label'], [data-element='entity-balance-due-label'],
@ -66,20 +65,25 @@
margin-top: 3rem; margin-top: 3rem;
margin-bottom: 200px; margin-bottom: 200px;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
padding: 1rem; padding: 1rem;
background-color: #e6e6e6; background-color: #e6e6e6;
} }
#product-table > thead > tr > th:last-child { #product-table > thead > tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
border-bottom: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
@ -95,6 +99,7 @@
padding-left: 1rem; padding-left: 1rem;
gap: 20px; gap: 20px;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -103,16 +108,15 @@
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
</style> </style>
</head> <div id="header"></div>
<div id="header"></div> <div id="body">
<body id="body">
<div class="header-wrapper"> <div class="header-wrapper">
<p>$company.name</p> <p>$company.name</p>
@ -134,7 +138,7 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div>
<div id="footer"></div>
</html>

View File

@ -1,17 +1,11 @@
<!DOCTYPE html> <style id="style">
<html lang="en">
<head id="head">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="style">
:root { :root {
--primary-color: $primary_color; --primary-color: $primary_color;
--secondary-color: $secondary_color; --secondary-color: $secondary_color;
} }
* { * {
font-size: '$font_size'; font-size: "$font_size";
} }
p { p {
@ -30,19 +24,23 @@
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.header-wrapper .company-logo { .header-wrapper .company-logo {
height: 5rem; height: 5rem;
} }
.header-wrapper .entity-details-wrapper { .header-wrapper .entity-details-wrapper {
background-color: var(--primary-color); background-color: var(--primary-color);
padding: 1rem; padding: 1rem;
border-radius: 10px; border-radius: 10px;
} }
.header-wrapper #entity-details { .header-wrapper #entity-details {
width: 100%; width: 100%;
color: white; color: white;
text-align: left; text-align: left;
} }
.header-wrapper #entity-details > tr, .header-wrapper #entity-details > tr,
.header-wrapper #entity-details th { .header-wrapper #entity-details th {
font-weight: normal; font-weight: normal;
@ -54,11 +52,13 @@
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 40px; gap: 40px;
} }
.contacts-wrapper .contact-label { .contacts-wrapper .contact-label {
font-weight: bold; font-weight: bold;
color: var(--primary-color); color: var(--primary-color);
margin-left: 1rem; margin-left: 1rem;
} }
.contacts-wrapper #company-address, .contacts-wrapper #company-address,
.contacts-wrapper #company-details, .contacts-wrapper #company-details,
.contacts-wrapper #client-details { .contacts-wrapper #client-details {
@ -66,6 +66,7 @@
flex-direction: column; flex-direction: column;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.contacts-wrapper .company-info { .contacts-wrapper .company-info {
margin-top: 1rem; margin-top: 1rem;
padding: 1rem; padding: 1rem;
@ -74,6 +75,7 @@
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 10px; gap: 10px;
} }
.contacts-wrapper #client-details { .contacts-wrapper #client-details {
margin-top: 1rem; margin-top: 1rem;
padding: 1rem; padding: 1rem;
@ -92,33 +94,41 @@
table-layout: fixed; table-layout: fixed;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
#product-table > thead { #product-table > thead {
text-align: left; text-align: left;
} }
#product-table > thead > tr > th { #product-table > thead > tr > th {
font-size: 1.2rem; font-size: 1.2rem;
padding: 1rem; padding: 1rem;
background: var(--primary-color); background: var(--primary-color);
color: white; color: white;
} }
#product-table > thead tr > th:last-child { #product-table > thead tr > th:last-child {
text-align: right; text-align: right;
} }
#product-table > thead tr > th:first-child { #product-table > thead tr > th:first-child {
border-top-left-radius: 10px; border-top-left-radius: 10px;
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
} }
#product-table > thead tr > th:last-child { #product-table > thead tr > th:last-child {
border-top-right-radius: 10px; border-top-right-radius: 10px;
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
} }
#product-table > tbody > tr > td { #product-table > tbody > tr > td {
border-bottom: 1px solid var(--primary-color); border-bottom: 1px solid var(--primary-color);
padding: 1rem; padding: 1rem;
} }
#product-table > tbody > tr > td:first-child { #product-table > tbody > tr > td:first-child {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table > tbody > tr > td:last-child { #product-table > tbody > tr > td:last-child {
text-align: right; text-align: right;
} }
@ -134,6 +144,7 @@
padding-left: 1rem; padding-left: 1rem;
gap: 20px; gap: 20px;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due-label'], [data-element='product-table-balance-due-label'],
@ -142,21 +153,22 @@
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
font-weight: bold; font-weight: bold;
} }
#product-table-footer #product-table-footer
> * > *
[data-element='product-table-balance-due'] { [data-element='product-table-balance-due'] {
color: var(--primary-color); color: var(--primary-color);
} }
#product-table-footer > * > :last-child { #product-table-footer > * > :last-child {
text-align: right; text-align: right;
padding-right: 1rem; padding-right: 1rem;
} }
</style> </style>
</head>
<div id="header"></div> <div id="header"></div>
<body id="body"> <div id="body">
<div class="header-wrapper"> <div class="header-wrapper">
<img <img
class="company-logo" class="company-logo"
@ -189,7 +201,7 @@
<table id="product-table" cellspacing="0"></table> <table id="product-table" cellspacing="0"></table>
<div id="product-table-footer" cellspacing="0"></div> <div id="product-table-footer" cellspacing="0"></div>
</body> </div>
<div id="footer"></div>
<div id="footer"></div>
</html>