diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html index c4f531f5d8..7d18453051 100644 --- a/resources/views/pdf-designs/creative.html +++ b/resources/views/pdf-designs/creative.html @@ -84,18 +84,14 @@ font-weight: normal; } - #product-table, - #delivery-note-table, - #task-table { + [data-ref="table"] { /* margin-bottom: 200px; */ min-width: 100%; table-layout: fixed; overflow-wrap: break-word; } - #product-table:not(:empty), - #delivery-note-table:not(:empty), - #task-table:not(:empty) { + [data-ref="table"]:not(:empty) { border-top: 5px solid var(--primary-color); margin-top: 3rem; } @@ -106,40 +102,28 @@ 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 { font-size: 1.1rem; padding: 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: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, - #delivery-note-table > tbody > tr > td, - #task-table > tbody > tr > td { + [data-ref="table"] > tbody > tr > td { padding: 1rem; } - #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: #e8e8e8; } @@ -171,7 +155,7 @@ margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(.75rem * var(--tw-space-y-reverse)); } - + #table-totals>.totals-table-right-side>*> :nth-child(2) { text-align: right; } @@ -201,15 +185,19 @@ } /** Markdown-specific styles. **/ - #product-table h3, - #task-table h3, - #delivery-note-table h3 { + [data-ref="table"] h3 { font-size: 1rem; margin-bottom: 0; } - + + [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 } */ @@ -266,12 +254,21 @@
-
+
-
+
+ +
+ +
+
+ +
+
+ +
+
-
-
@@ -281,7 +278,12 @@