From ffcd68f9f8ab8507470ee06fc33516b3db6dadef Mon Sep 17 00:00:00 2001 From: Alexander Braml Date: Thu, 24 Sep 2026 21:31:37 +0200 Subject: [PATCH] Add a CipherCell header to every page but the cover Co-Authored-By: Claude Opus 5.5 --- report_generator/template/report.css | 27 ++++++++++++++++++++++++ report_generator/template/report.html.j2 | 1 + 2 files changed, 28 insertions(+) diff --git a/report_generator/template/report.css b/report_generator/template/report.css index 0b53d08..c0e5585 100644 --- a/report_generator/template/report.css +++ b/report_generator/template/report.css @@ -62,6 +62,13 @@ size: A4; margin: 22mm 18mm 18mm 18mm; + @top-center { + content: element(page-header); + width: 100%; + vertical-align: bottom; + padding-bottom: 4mm; + } + @bottom-left { content: string(scan-footer); font-family: "Space Grotesk", sans-serif; @@ -101,6 +108,26 @@ code, font-size: 0.93em; } +/* The cover carries the mark large already; a second, small one above it would only repeat it. */ +@page :first { + @top-center { + content: none; + } +} + +/* The mark -- the logo and the company name, which the image carries together -- above every page, + ruled off from the content. */ +.page-header { + position: running(page-header); + padding-bottom: 1.6mm; + border-bottom: 0.4pt solid var(--border); +} + +.page-header img { + height: 5mm; + display: block; +} + /* Carried into the running footer on every page. Set once, on the cover. */ .footer-scan { string-set: scan-footer content(); diff --git a/report_generator/template/report.html.j2 b/report_generator/template/report.html.j2 index f6d3b74..1562099 100644 --- a/report_generator/template/report.html.j2 +++ b/report_generator/template/report.html.j2 @@ -98,6 +98,7 @@ {# ------------------------------------------------------------------------------------------ #} + Scan: {{ cover.scan_id }} {{ cover.footer_date }}