💄 make title/part titles match font size
This commit is contained in:
@@ -579,7 +579,7 @@ export function registerIpcHandlers(): void {
|
|||||||
const pageCSS = `
|
const pageCSS = `
|
||||||
@page { size: ${pageSizeCss}; }
|
@page { size: ${pageSizeCss}; }
|
||||||
body { font-family: ${fontFamily}; font-size: ${opts.fontSize}pt; line-height: 2; color: #000; margin: 0; padding: 0; }
|
body { font-family: ${fontFamily}; font-size: ${opts.fontSize}pt; line-height: 2; color: #000; margin: 0; padding: 0; }
|
||||||
h1 { font-weight: bold; font-size: ${opts.fontSize + 2}pt; text-align: center; text-transform: uppercase; margin: 0; line-height: 2; }
|
h1 { font-weight: bold; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; letter-spacing: 0.15em; margin: 0; line-height: 2; }
|
||||||
h2, h3 { font-weight: ${headingWeight}; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; margin: 0; line-height: 2; }
|
h2, h3 { font-weight: ${headingWeight}; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; margin: 0; line-height: 2; }
|
||||||
p { margin: 0; text-indent: 0.5in; text-align: left; }
|
p { margin: 0; text-indent: 0.5in; text-align: left; }
|
||||||
h1 + p, h2 + p, h3 + p, hr + p, .chapter > p:first-child { text-indent: 0; }
|
h1 + p, h2 + p, h3 + p, hr + p, .chapter > p:first-child { text-indent: 0; }
|
||||||
@@ -591,7 +591,7 @@ export function registerIpcHandlers(): void {
|
|||||||
ul, ol { margin: 0 0 0 0.5in; }
|
ul, ol { margin: 0 0 0 0.5in; }
|
||||||
li { margin: 0; }
|
li { margin: 0; }
|
||||||
.chapter { padding-top: 2.5in; }
|
.chapter { padding-top: 2.5in; }
|
||||||
.part-heading { font-family: ${fontFamily}; font-weight: bold; font-size: ${opts.fontSize + 2}pt; text-align: center; text-transform: uppercase; letter-spacing: 0.15em; margin: 0; line-height: 2; }
|
.part-heading { font-family: ${fontFamily}; font-weight: bold; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; letter-spacing: 0.15em; margin: 0; line-height: 2; }
|
||||||
`
|
`
|
||||||
|
|
||||||
// Print each section to its own PDF buffer. Cover page uses its own CSS;
|
// Print each section to its own PDF buffer. Cover page uses its own CSS;
|
||||||
|
|||||||
Reference in New Issue
Block a user