Scales can now be shown as stars (1 to n) instead of numbered steps: participants tap stars, the stage shows the average as partly filled stars and the distribution as bars from most to fewest stars, and the evaluation page and PDF export print ratings as stars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
57 lines
2.8 KiB
PHP
57 lines
2.8 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; }
|
|
.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; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<?= $this->fetch('content') ?>
|
|
</body>
|
|
</html>
|