From 6bd28ebbfb3062d6e3541712dd295f48fa213e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 13:33:43 +0100 Subject: [PATCH 1/9] bold --- resources/views/pdf-designs/bold.html | 41 ++++++++++++++++----------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index 9ba2e78d4d2b..1084bb5bd92b 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -82,7 +82,8 @@ padding-bottom: 0.5rem; } - #product-table { + #product-table, + #task-table { min-width: 100%; table-layout: fixed; overflow-wrap: break-word; @@ -90,40 +91,47 @@ margin-bottom: 200px; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-table > thead > tr > th { padding: 2rem; font-size: 1.5rem; } - #product-table > thead > tr > th:last-child { + #product-table > thead > tr > th:last-child, + #task-table > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { padding: 1.5rem; } - #product-table > tbody > tr > td:last-child { + #product-table > tbody > tr > td:last-child, + #task-table > tbody > tr > td:last-child { text-align: right; } - #product-table > tbody > tr > td:first-child { + #product-table > tbody > tr > td:first-child, + #task-table > tbody > tr > td:first-child { font-weight: bold; } - #product-table > tbody > tr:nth-child(odd) { + #product-table > tbody > tr:nth-child(odd), + #task-table > tbody > tr:nth-child(odd) { background-color: #ebebeb; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; padding-top: .5rem; @@ -131,23 +139,23 @@ gap: 20px; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; font-size: 1.4rem; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { color: var(--primary-color); } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1.5rem; } @@ -177,8 +185,9 @@
- +
+ +
- From 88f881faf767de4a850cd127428d28d54bdd1a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:13:28 +0100 Subject: [PATCH 2/9] business --- resources/views/pdf-designs/business.html | 49 ++++++++++++++--------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/resources/views/pdf-designs/business.html b/resources/views/pdf-designs/business.html index 66424603c21d..2542ebd30238 100644 --- a/resources/views/pdf-designs/business.html +++ b/resources/views/pdf-designs/business.html @@ -92,7 +92,8 @@ font-weight: normal; } - #product-table { + #product-table, + #task-table { margin-top: 3.5rem; margin-bottom: 200px; min-width: 100%; @@ -100,44 +101,54 @@ overflow-wrap: break-word; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; background: var(--secondary-color); } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-table > thead > tr > th { padding: 1rem; color: white; font-weight: semibold; } - #product-table > thead > tr > th:first-child { + #product-table > thead > tr > th:first-child, + #task-table > thead > tr > th:first-child { border-top-left-radius: 1rem; } - #product-table > thead > tr > th:last-child { + #product-table > thead > tr > th:last-child, + #task-table > thead > tr > th:last-child { border-top-right-radius: 1rem; text-align: right; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { padding: 1rem; } - #product-table > tbody > tr > td:last-child { + #product-table > tbody > tr > td:last-child, + #task-table > tbody > tr > td:last-child { text-align: right; } - #product-table > tbody > tr:nth-child(odd) > td { + #product-table > tbody > tr:nth-child(odd) > td, + #task-table > tbody > tr:nth-child(odd) > td { background: #e8e8e8; } - #product-table > tbody > tr:nth-child(even) > td { + #product-table > tbody > tr:nth-child(even) > td, + #task-table > tbody > tr:nth-child(even) > td { background: #f7f7f7; } [data-element='product-table-balance-due-label'], - [data-element='product-table-balance-due'] { + [data-element='product-table-balance-due'], + [data-element='task-table-balance-due-label'], + [data-element='task-table-balance-due'] { color: var(--secondary-color) !important; font-weight: bold !important; } @@ -149,16 +160,16 @@ } } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > *:last-child { + #table-totals > *:last-child { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; } - #product-table-footer > * { + #table-totals > * { background-color: #f7f7f7; display: grid; grid-template-columns: 3fr 1fr 1fr; @@ -168,23 +179,23 @@ padding-bottom: 0.8rem; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; font-size: 1.2rem; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { color: red; } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1rem; } @@ -215,7 +226,9 @@
- +
+ +
From 100898e5302edfb99a7d19017309aaf58f7099b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:25:48 +0100 Subject: [PATCH 3/9] clean --- resources/views/pdf-designs/clean.html | 35 ++++++++++++++++---------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html index d460689533f1..9315ae4d7a60 100644 --- a/resources/views/pdf-designs/clean.html +++ b/resources/views/pdf-designs/clean.html @@ -77,7 +77,8 @@ font-weight: bold; } - #product-table { + #product-table, + #task-table { margin-top: 3rem; margin-bottom: 200px; min-width: 100%; @@ -85,34 +86,39 @@ overflow-wrap: break-word; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-table > thead > tr > th { font-size: 1.1rem; padding-bottom: 1.5rem; padding-left: 1rem; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { border-bottom: 1px solid #9f9f9f; padding: 1rem; } - #product-table > tbody > tr > td:first-child { + #product-table > tbody > tr > td:first-child, + #task-table > tbody > tr > td:first-child { color: var(--primary-color); } - #product-table > tbody > tr:nth-child(odd) { + #product-table > tbody > tr:nth-child(odd), + #task-table > tbody > tr:nth-child(odd) { background-color: #f5f5f5; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; padding-top: .5rem; @@ -120,22 +126,22 @@ gap: 20px; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { color: var(--primary-color); } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1rem; } @@ -163,7 +169,10 @@
- + +
+ +
From 4ee36307f96f359f7accb630acbf2ea5109c84b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:47:09 +0100 Subject: [PATCH 4/9] playful --- resources/views/pdf-designs/playful.html | 43 +++++++++++++++--------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index 3581726c745a..db7ed5279b33 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -87,7 +87,8 @@ border-bottom: 1px solid var(--primary-color); } - #product-table { + #product-table, + #task-table { margin-top: 3rem; margin-bottom: 200px; min-width: 100%; @@ -95,49 +96,57 @@ overflow-wrap: break-word; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-table > thead > tr > th { font-size: 1.2rem; padding: 1rem; background: var(--primary-color); color: white; } - #product-table > thead tr > th:last-child { + #product-table > thead tr > th:last-child, + #task-table > thead tr > th:last-child { text-align: right; } - #product-table > thead tr > th:first-child { + #product-table > thead tr > th:first-child, + #task-table > thead tr > th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; } - #product-table > thead tr > th:last-child { + #product-table > thead tr > th:last-child, + #task-table > thead tr > th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { border-bottom: 1px solid var(--primary-color); padding: 1rem; } - #product-table > tbody > tr > td:first-child { + #product-table > tbody > tr > td:first-child, + #task-table > tbody > tr > td:first-child { color: var(--primary-color); } - #product-table > tbody > tr > td:last-child { + #product-table > tbody > tr > td:last-child, + #task-table > tbody > tr > td:last-child { text-align: right; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; padding-top: 0.5rem; @@ -145,22 +154,22 @@ gap: 20px; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { color: var(--primary-color); } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1rem; } @@ -200,7 +209,9 @@
- +
+ +
From 64ec10279c4cb67d0428f4300e512dfa78260cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:47:14 +0100 Subject: [PATCH 5/9] creative --- resources/views/pdf-designs/creative.html | 37 ++++++++++++++--------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html index cebdbfb2fe22..7c5886414c26 100644 --- a/resources/views/pdf-designs/creative.html +++ b/resources/views/pdf-designs/creative.html @@ -86,7 +86,8 @@ font-weight: normal; } - #product-table { + #product-table, + #task-table { margin-top: 3rem; margin-bottom: 200px; min-width: 100%; @@ -95,58 +96,64 @@ border-top: 5px solid var(--primary-color); } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-table > thead > tr > th { font-size: 1.1rem; padding: 1rem; } - #product-table > thead > tr > th:last-child { + #product-table > thead > tr > th:last-child, + #task-table > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td:last-child { + #product-table > tbody > tr > td:last-child, + #task-table > tbody > tr > td:last-child { text-align: right; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { padding: 1rem; } - #product-table > tbody > tr:nth-child(odd) { + #product-table > tbody > tr:nth-child(odd), + #task-table > tbody > tr:nth-child(odd) { background-color: #e8e8e8; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; padding-top: 1rem; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; color: var(--primary-color); } - #product-table-footer > * > * { + #table-totals > * > * { padding-left: 1rem; } - #product-table-footer > *:last-child > * { + #table-totals > *:last-child > * { border-top: 5px solid var(--primary-color); padding-top: 1rem; } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1rem; } @@ -181,7 +188,9 @@
- +
+ +
From 054998ff064dc8571ec64d0b1e4a640d2c1c702f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:47:17 +0100 Subject: [PATCH 6/9] elegant --- resources/views/pdf-designs/elegant.html | 34 +++++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index 167805e5f150..ada1f8373398 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -79,7 +79,8 @@ font-weight: normal; } - #product-table { + #product-table, + #task-table { margin-top: 3rem; margin-bottom: 200px; min-width: 100%; @@ -87,11 +88,13 @@ overflow-wrap: break-word; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-table > thead > tr > th { font-size: 1.1rem; padding-bottom: 1.5rem; padding-left: 1rem; @@ -99,16 +102,19 @@ font-weight: bold; } - #product-table > thead > tr > th:last-child { + #product-table > thead > tr > th:last-child, + #task-table > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { border-bottom: 1px solid; padding: 1rem; } - #product-table > tbody > tr > td:last-child { + #product-table > tbody > tr > td:last-child, + #task-table > tbody > tr > td:last-child { text-align: right; } @@ -121,11 +127,11 @@ border-bottom: 4px solid; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; padding-top: 0.5rem; @@ -133,22 +139,22 @@ gap: 20px; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { color: var(--primary-color); } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 0.5rem; } @@ -189,7 +195,9 @@
- +
+ +

$thanks_label!

From bb76cec267d31c38e21dc8be15d4d51249b6f94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:47:20 +0100 Subject: [PATCH 7/9] hipster --- resources/views/pdf-designs/hipster.html | 34 +++++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/resources/views/pdf-designs/hipster.html b/resources/views/pdf-designs/hipster.html index 18aba9e22fc0..17b1e71ef47e 100644 --- a/resources/views/pdf-designs/hipster.html +++ b/resources/views/pdf-designs/hipster.html @@ -97,7 +97,8 @@ font-weight: bold; } - #product-table { + #product-table, + #task-table { margin-top: 3rem; margin-bottom: 200px; min-width: 100%; @@ -105,37 +106,42 @@ overflow-wrap: break-word; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; text-transform: uppercase; font-weight: bold; } - #product-table > thead > tr > th { + #product-table > thead > tr > th, + #task-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 { + #product-table > thead > tr > th:last-child, + #task-table > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td { + #product-table > tbody > tr > td, + #task-table > tbody > tr > td { padding: 1rem; border-left: 1px solid; } - #product-table > tbody > tr td:last-child { + #product-table > tbody > tr td:last-child, + #task-table > tbody > tr td:last-child { text-align: right; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; padding-top: 0.5rem; @@ -143,22 +149,22 @@ gap: 20px; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { color: var(--primary-color); } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1rem; } @@ -218,7 +224,9 @@
- +
+ +
From d9f915bb377bbeee2731b1e4fd4e0409bb1b5796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:47:24 +0100 Subject: [PATCH 8/9] modern --- resources/views/pdf-designs/modern.html | 38 +++++++++++++++---------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index b29aa6ec53d9..703d697ab4b8 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -70,36 +70,43 @@ margin: 3rem 1.5rem; } - #product-table { + #product-table, + #task-table { min-width: 100%; table-layout: fixed; overflow-wrap: break-word; } - #product-table > thead { + #product-table > thead, + #task-table > thead { text-align: left; } - #product-table > thead > tr > th { + #product-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 { + #product-table > thead > tr > th:last-child, + #task-table > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td { + #product-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 { + #product-table > tbody > tr > td:first-child, + #task-table > tbody > tr > td:first-child { font-weight: bold; } - #product-table > tbody > tr > td:last-child { + #product-table > tbody > tr > td:last-child, + #task-table > tbody > tr > td:last-child { text-align: right; } @@ -134,11 +141,11 @@ margin-bottom: 0.5rem; } - #product-table-footer { + #table-totals { page-break-inside: avoid; } - #product-table-footer > * { + #table-totals > * { display: grid; grid-template-columns: 3fr 1fr 1fr; margin-top: 0.5rem; @@ -146,26 +153,26 @@ margin-left: 1.5rem; } - #product-table-footer + #table-totals > * [data-element='product-table-balance-due-label'], - #product-table-footer + #table-totals > * [data-element='product-table-balance-due'] { font-weight: bold; font-size: 1.3rem; } - #product-table-footer > * > * { + #table-totals > * > * { padding-left: 1.5rem; } - #product-table-footer > * > :last-child { + #table-totals > * > :last-child { text-align: right; padding-right: 1rem; } - #product-table-footer > *:last-child { + #table-totals > *:last-child { background-color: var(--secondary-color); color: white; padding-top: 0.7rem; @@ -227,9 +234,10 @@
+
- +
From fd8ea385803f0d80a02cdea070282522a687bb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 5 Nov 2020 14:47:28 +0100 Subject: [PATCH 9/9] plain --- resources/views/pdf-designs/plain.html | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index 917422737842..4e556595c566 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -147,4 +147,3 @@ -