diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index 39e4a85caa15..d8fc5770f34e 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -86,9 +86,7 @@ font-weight: normal; } - #product-table, - #delivery-note-table, - #task-table { + [data-ref="table"] { margin-top: 3rem; /* margin-bottom: 200px; */ min-width: 100%; @@ -102,15 +100,11 @@ 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-bottom: 1.5rem; padding-left: 1rem; @@ -118,30 +112,21 @@ font-weight: bold; } - #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 { border-bottom: 1pt solid; padding: 1rem; } - #product-table > tbody > tr:first-child > td, - #delivery-note-table > tbody > tr:first-child > td, - #task-table > tbody > tr:first-child > td { + [data-ref="table"] > tbody > tr:first-child > td { border-top: 1pt solid !important; padding: 1rem; } - - #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; } @@ -206,17 +191,21 @@ #footer { margin-top: 30px; } - + /** 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 } */ @@ -275,12 +264,21 @@ -
+
-
+
+ +
+ +
+
+ +
+
+ +
+
-
-
@@ -290,7 +288,12 @@