From f106f9206546beb51d446dd309e21588e57db2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 24 Aug 2021 16:32:55 +0200 Subject: [PATCH] Update `Bold` --- resources/views/pdf-designs/bold.html | 64 ++++++++++++++------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index 46a89373e..0e669bb2e 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -80,9 +80,7 @@ padding-bottom: 0.5rem; } - #product-table, - #task-table, - #delivery-note-table { + [data-ref="table"] { min-width: 100%; table-layout: fixed; overflow-wrap: break-word; @@ -96,46 +94,32 @@ color: grey; } - #product-table > thead, - #delivery-note-table > thead, - #task-table > thead { + [data-ref="table"] > thead { text-align: left; } - #product-table > thead > tr > th, - #delivery-note-table > thead > tr > th, - #task-table > thead > tr > th { + [data-ref="table"] > thead > tr > th { padding: 1.5rem 3rem; font-size: 1rem; } - #product-table > thead > tr > th:last-child, - #delivery-note-table > thead > tr > th:last-child, - #task-table > thead > tr > th:last-child { + [data-ref="table"] > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td, - #delivery-note-table > tbody > tr > td, - #task-table > tbody > tr > td { + [data-ref="table"] > tbody > tr > td { padding: 1.5rem 3rem; } - #product-table > tbody > tr > td:last-child, - #delivery-note-table > tbody > tr > td:last-child, - #task-table > tbody > tr > td:last-child { + [data-ref="table"] > tbody > tr > td:last-child { text-align: right; } - #product-table > tbody > tr > td:first-child, - #delivery-note-table > tbody > tr > td:first-child, - #task-table > tbody > tr > td:first-child { + [data-ref="table"] > tbody > tr > td:first-child { font-weight: bold; } - #product-table > tbody > tr:nth-child(odd), - #delivery-note-table > tbody > tr:nth-child(odd), - #task-table > tbody > tr:nth-child(odd) { + [data-ref="table"] > tbody > tr:nth-child(odd) { background-color: #ebebeb; } @@ -254,12 +238,18 @@ margin-bottom: 0; } - [data-ref="product_table-product.description-th"] { + [data-ref="product_table-product.description-th"] { width: 23%; } + [data-ref="statement-totals"] { + margin-top: 1rem; + text-align: right; + margin-right: .75rem; + } + /** Useful snippets, uncomment to enable. **/ - + /** Hide company logo **/ /* .company-logo { display: none } */ @@ -318,11 +308,20 @@ - + - + - + + + +
+ + +
+ + +
@@ -350,7 +349,12 @@