diff --git a/src/privatim/reporting/template/report.pt b/src/privatim/reporting/template/report.pt index 51978b99..b58241af 100644 --- a/src/privatim/reporting/template/report.pt +++ b/src/privatim/reporting/template/report.pt @@ -6,7 +6,7 @@ - + ${document.title} @@ -22,7 +22,8 @@ - diff --git a/src/privatim/static/css/report.css b/src/privatim/static/css/report.css deleted file mode 100644 index 2ea64fed..00000000 --- a/src/privatim/static/css/report.css +++ /dev/null @@ -1,115 +0,0 @@ -/* - * CSS stylesheet for the printable report. - * - * Uses the CSS Paged Media Module (https://www.w3.org/TR/css-page-3/). This - * module allows to design documents for a paged presentation (unlike the web, - * where the content is mostly continuous). Most regular CSS directives apply - * here too, but there are ome extra directives. - * - * In addition, Weasyprint might not (yet) support all Paged Media Module - * extensions. A good overview can be found here: https://print-css.rocks/lessons - * - * For further reading and reference: - * - Live Preview: https://printcss.live/ - * - Header and footers: https://css4.pub/2022/running-headers/ - * - CSS at-rules: https://www.qhmit.com/css/at-rules/ - */ - -/* dm-sans-regular - latin-ext_latin */ -@font-face { - font-family: 'DM Sans'; - font-style: normal; - font-weight: 400; - src: local(''), - url(../fonts/dm-sans-v6-latin-ext_latin-regular.woff2) format('woff2'), - url(../fonts/dm-sans-v6-latin-ext_latin-regular.woff) format('woff'); -} - -/* dm-sans-italic - latin-ext_latin */ -@font-face { - font-family: 'DM Sans'; - font-style: italic; - font-weight: 400; - src: local(''), - url(../fonts/dm-sans-v6-latin-ext_latin-italic.woff2) format('woff2'), - url(../fonts/dm-sans-v6-latin-ext_latin-italic.woff) format('woff'); -} - -/* dm-sans-500 - latin-ext_latin */ -@font-face { - font-family: 'DM Sans'; - font-style: normal; - font-weight: 500; - src: local(''), - url(../fonts/dm-sans-v6-latin-ext_latin-500.woff2) format('woff2'), - url(../fonts/dm-sans-v6-latin-ext_latin-500.woff) format('woff'); -} - -/* Global page settings. */ -@page { - size: A4; - - /* Configure inner margins */ - margin: 1.5cm; - margin-top: 1cm; - - /* Font for the headers and footers. */ - font-family: DM Sans; - - /* Setup header and footer */ - @top-left { - /* NOTE: We use a running element, i.e., taking an element from the page - * and display it in the header. Alternatively, you can set the logo as - * the background-image and scale it down, however, we have experienced - * image quality loss when doing that. - */ - content: element(header); - } - - @top-center { - font-weight: bold; - font-size: 16pt; - content: string(title); - } - - @top-right { - font-size: 10pt; - content: string(doc-creation-date); - } - - @bottom-right { - font-size: 10pt; - content: "Seite " counter(page) "/" counter(pages); - } -} - -.agenda-items-list { - list-style: none; - padding-left: 0; -} - -img { - min-width: 5cm; - max-width: 5cm; - max-height: 3.5cm; - -} - -body { - font-family: DM Sans; - font-size: 10pt; -} - -.fw-bold { - font-weight: bold; -} - -.attendees-list { - padding-left: 1rem; -} - -hr { - margin: 2rem 0; - border: none; - border-top: 1px solid #000; -} diff --git a/src/privatim/reporting/template/report.css b/src/privatim/static/report.css similarity index 85% rename from src/privatim/reporting/template/report.css rename to src/privatim/static/report.css index 2ea64fed..9c8d2631 100644 --- a/src/privatim/reporting/template/report.css +++ b/src/privatim/static/report.css @@ -21,8 +21,8 @@ font-style: normal; font-weight: 400; src: local(''), - url(../fonts/dm-sans-v6-latin-ext_latin-regular.woff2) format('woff2'), - url(../fonts/dm-sans-v6-latin-ext_latin-regular.woff) format('woff'); + url(fonts/dm-sans-v6-latin-ext_latin-regular.woff2) format('woff2'), + url(fonts/dm-sans-v6-latin-ext_latin-regular.woff) format('woff'); } /* dm-sans-italic - latin-ext_latin */ @@ -31,8 +31,8 @@ font-style: italic; font-weight: 400; src: local(''), - url(../fonts/dm-sans-v6-latin-ext_latin-italic.woff2) format('woff2'), - url(../fonts/dm-sans-v6-latin-ext_latin-italic.woff) format('woff'); + url(fonts/dm-sans-v6-latin-ext_latin-italic.woff2) format('woff2'), + url(fonts/dm-sans-v6-latin-ext_latin-italic.woff) format('woff'); } /* dm-sans-500 - latin-ext_latin */ @@ -41,8 +41,8 @@ font-style: normal; font-weight: 500; src: local(''), - url(../fonts/dm-sans-v6-latin-ext_latin-500.woff2) format('woff2'), - url(../fonts/dm-sans-v6-latin-ext_latin-500.woff) format('woff'); + url(fonts/dm-sans-v6-latin-ext_latin-500.woff2) format('woff2'), + url(fonts/dm-sans-v6-latin-ext_latin-500.woff) format('woff'); } /* Global page settings. */