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] 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 @@
- +
+ +