Files
kaleidoskop/styles/print.css
T
valknar a8ade90ffb Set up book project: Markdown→CSS→PDF pipeline for KDP
Adds the full authoring and build toolchain for "Das Kaleidoskop der
Schlummerwelten" — all 12 story content files in Markdown, Nunjucks
HTML templates, CSS print layout, and Puppeteer-based PDF generation
targeting Amazon KDP (8.5×8.5 in, 0.125in bleed).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 15:38:07 +02:00

35 lines
624 B
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* KDP: 8.5×8.5 in trim, 0.125in bleed on all sides */
@page {
size: 8.75in 8.75in;
margin: 0;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
width: 8.75in;
background: white;
}
.page {
width: 8.75in;
height: 8.75in;
position: relative;
overflow: hidden;
page-break-after: always;
break-after: page;
}
/* Safe zone: content that must not be cut stays 0.25in from bleed edge */
.page--text .text-page-inner,
.page--title .title-content,
.page--toc,
.page--imprint .imprint-content {
/* 0.125in bleed + 0.25in safety margin = 0.375in from PDF edge */
padding: 0.75in;
}