白黒印刷 / 共通CSSと設定
この作例の全ページに共通するCSSとプロジェクト設定です。CSSは製品のbusinessプリセットを拡張します。個別ページのソースと組み合わせて使います。
design/theme.css
「design/theme.css」の節へ/* Original sample CSS, extends business preset. */
.ps-mode-paged{font-size:11pt;line-height:1.6;}.ps-mode-paged .ps-fixed>.ps-body{padding:18mm 18mm;}
:root{--accent:#111;--text:#111;--muted:#333;--background:#fff;}h1{font-size:29pt;text-transform:uppercase;border-top:3pt solid #111;border-bottom:1pt solid #111;padding:12pt 0;}h2{font-size:14pt;color:#111;border-bottom:2pt solid #111;}table{font-size:10pt;}th{background:#fff;color:#111;border-bottom:2pt solid #111;}td,th{border:1pt solid #111;padding:9pt;}blockquote{background:#fff;border-left:3pt solid #111;padding:10pt;}figure{margin:15pt 0;}
.illustration-panel img{width:100%;max-height:55mm;object-fit:contain;}.illustration-panel figcaption{font-size:9pt;line-height:1.4;}
.ps-body hr{display:block;width:100%;max-width:none;height:0;border:0;border-bottom:1pt solid #111;margin:12pt 0;}
.wworpoint/project.json
「.wworpoint/project.json」の節へ{
"schemaVersion": 1,
"name": "design-monochrome-ja",
"entry": "document.md",
"document": {
"mode": "paged",
"lang": "ja-JP",
"defaultPage": {
"size": "A4",
"orientation": "portrait"
}
},
"theme": {
"preset": "business",
"entry": "design/theme.css"
},
"output": {
"directory": "dist",
"formats": [
"pdf"
]
},
"security": {
"html": "none",
"sharedAssetRoots": []
}
}