Files
gnilebeinandClaude Sonnet 5.5 3536970107
CI / Deploy / PHP 8.4 (push) Successful in 1m19s
CI / Deploy / PHP 8.5 (push) Successful in 3m15s
CI / Deploy / test (push) Successful in 10s
CI / Deploy / deploy (push) Skipped
Start every slide on a new page in the PDF export
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 12:26:59 +01:00

62 lines
3.1 KiB
PHP

<?php
/**
* Layout for PDF documents (rendered by App\View\PdfView with Dompdf).
* Self-contained: no external resources, colors as literals (Dompdf has no CSS variables),
* font DejaVu Sans (ships with Dompdf, covers umlauts and arrows).
*
* @var \App\View\AppView $this
*/
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title><?= h($this->fetch('title')) ?></title>
<style>
@page { margin: 22mm 16mm 20mm; }
body { font-family: "DejaVu Sans", sans-serif; font-size: 10pt; line-height: 1.4; color: #1d1f33; }
h1 { font-size: 20pt; margin: 0 0 2mm; color: #1d1f33; }
h2 { font-size: 13pt; margin: 0 0 1mm; }
h3 { font-size: 10.5pt; margin: 4mm 0 1.5mm; }
h2, h3, .eyebrow { page-break-after: avoid; }
p { margin: 0 0 2mm; }
.page-header { position: fixed; top: -14mm; left: 0; right: 0; font-size: 8pt; color: #5d6280; }
.page-header .brand { color: #4b3fe0; font-weight: bold; }
/* Page numbers bottom right are drawn by PdfView::addPageNumbers(). */
.page-footer { position: fixed; bottom: -12mm; left: 0; right: 0; font-size: 8pt; color: #5d6280; }
.confidential { color: #c42b4b; font-weight: bold; }
.muted { color: #5d6280; }
.meta { margin-bottom: 6mm; color: #5d6280; }
.banner { border: 1px solid #c42b4b; background: #fdecef; color: #8a1730; padding: 3mm 4mm; margin-bottom: 6mm; }
.banner--info { border-color: #dde0ee; background: #eef0f8; color: #1d1f33; }
.slide { border-top: 1px solid #dde0ee; padding-top: 4mm; margin-top: 5mm; page-break-inside: avoid; }
.slide--long { page-break-inside: auto; }
/* Every slide starts on a new page (the first one follows the title block). */
.slide + .slide { page-break-before: always; border-top: 0; padding-top: 0; margin-top: 0; }
.eyebrow { font-size: 8pt; text-transform: uppercase; letter-spacing: .5pt; color: #4b3fe0; margin-bottom: 1mm; }
.tag { color: #a86400; }
.tag--internal { color: #c42b4b; }
table { width: 100%; border-collapse: collapse; margin: 2mm 0; }
th, td { text-align: left; vertical-align: top; padding: 1.2mm 2mm; border-bottom: 1px solid #eef0f8; }
th { font-size: 8.5pt; color: #5d6280; font-weight: normal; }
td.num, th.num { text-align: right; white-space: nowrap; width: 18mm; }
td.bar { width: 55mm; }
.bar__track { background: #eef0f8; height: 3.2mm; }
.bar__fill { background: #4b3fe0; height: 3.2mm; }
.bar__fill--ok { background: #18865a; }
.correct { color: #18865a; font-weight: bold; }
ol.list, ul.list { margin: 1mm 0 0; padding-left: 6mm; }
ol.list li, ul.list li { margin-bottom: 1.2mm; }
.stat { font-size: 12pt; font-weight: bold; }
td.stars { color: #c27c00; letter-spacing: 1pt; }
.empty { color: #5d6280; font-style: italic; }
/* slide texts with *bold*, _italic_, ~strike~ and lists (FormatHelper) */
.formatted { margin: 0 0 2mm; }
.formatted ul { margin: 1mm 0; padding-left: 6mm; }
</style>
</head>
<body>
<?= $this->fetch('content') ?>
</body>
</html>