From 3d8c5e3e9637e763e8399274d473d72dcc632f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 29 Jul 2021 11:35:13 +0200 Subject: [PATCH] Update desings to support markdown --- resources/views/pdf-designs/bold.html | 10 +++++++++- resources/views/pdf-designs/business.html | 8 ++++++++ resources/views/pdf-designs/clean.html | 8 ++++++++ resources/views/pdf-designs/creative.html | 8 ++++++++ resources/views/pdf-designs/elegant.html | 8 ++++++++ resources/views/pdf-designs/hipster.html | 8 ++++++++ resources/views/pdf-designs/modern.html | 10 +++++++++- resources/views/pdf-designs/plain.html | 8 ++++++++ resources/views/pdf-designs/playful.html | 9 ++++++++- resources/views/pdf-designs/tech.html | 8 ++++++++ 10 files changed, 82 insertions(+), 3 deletions(-) diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index aafb61539c11..54434dd3778d 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -20,7 +20,7 @@ p { margin: 0; padding: 0; - page-break-after: always; + /* page-break-after: always; */ } .header-wrapper { @@ -242,6 +242,14 @@ display: none } } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/business.html b/resources/views/pdf-designs/business.html index b6bac291c6f1..3d5c61ee45a5 100644 --- a/resources/views/pdf-designs/business.html +++ b/resources/views/pdf-designs/business.html @@ -235,6 +235,14 @@ #footer { margin-top: 30px; } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html index 21bc1beab143..0cfb96bd705a 100644 --- a/resources/views/pdf-designs/clean.html +++ b/resources/views/pdf-designs/clean.html @@ -193,6 +193,14 @@ #footer { margin-top: 30px; } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html index 1229d9898ab0..18a537b3bdce 100644 --- a/resources/views/pdf-designs/creative.html +++ b/resources/views/pdf-designs/creative.html @@ -195,6 +195,14 @@ #footer { margin-top: 30px; } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index 06b6b66a7a69..d0591b5c5d58 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -193,6 +193,14 @@ #footer { margin-top: 30px; } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/hipster.html b/resources/views/pdf-designs/hipster.html index 6a87a6633788..3d15e1c4adc7 100644 --- a/resources/views/pdf-designs/hipster.html +++ b/resources/views/pdf-designs/hipster.html @@ -204,6 +204,14 @@ #footer { margin-top: 30px; } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index 5d6192dd47cb..dbc154858259 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -22,7 +22,7 @@ p { margin: 0; padding: 0; - page-break-after: always; + /* page-break-after: always; */ } .header-container { @@ -261,6 +261,14 @@ display: none } } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + }
diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index 264b727f9400..439ff565e912 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -171,6 +171,14 @@ [data-ref="totals_table-outstanding"] { color: var(--primary-color) } + + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index df145165cb46..55a4023a8fbd 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -240,8 +240,15 @@ #footer { margin-top: 1rem; } - + /** Markdown-specific styles. **/ + #product-table h3, + #task-table h3, + #delivery-note-table h3 { + font-size: 1rem; + margin-bottom: 0; + } +