Add configurable running print header
The line printed on every page is now a header stored in the document as header.fields: any number of Text / Last updated fields, each optionally aligned left or right (at most one of each). Printed order is left, unaligned, right. Edited from a Print header panel with live preview; documents without a header use the previous title/last-update default. The header is a repeating table header so it sits in flow and cannot overlap body text, replacing the fixed-position footer. Also add "Open your existing Final Wishes file" to the start screen so data in an older encrypted file can be carried into a newer build. Closes #9 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,15 +40,25 @@ textarea { width: 100%; display: block; } label { display: block; margin-top: .5
|
||||
.tools { display: inline-flex; gap: .2rem; } .addsec { display: grid; gap: .4rem; margin-top: 1rem; }
|
||||
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
|
||||
/* ---------- print header (screen preview and printed running header) ---------- */
|
||||
.phead { display: flex; align-items: baseline; gap: 14px; font: 700 1.15rem system-ui, sans-serif; border-bottom: 2px solid currentColor; padding-bottom: 5px; }
|
||||
.ph-left { flex: 0 1 auto; text-align: left; min-width: 0; } /* the left field wraps first */
|
||||
.ph-right { flex: 0 0 auto; text-align: right; margin-left: auto; white-space: nowrap; }
|
||||
.ph-mid { flex: 1 1 auto; display: flex; justify-content: center; gap: 14px; } .ph-mid > span { white-space: nowrap; }
|
||||
.hpreview { padding: .75rem 1rem; } .navextra { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .5rem; }
|
||||
|
||||
/* ---------- print ---------- */
|
||||
@media screen { #printdoc { display: none; } .radio { display: block; margin: .5rem 0; } dialog.card { max-width: 30rem; } dialog::backdrop { background: rgba(0,0,0,.45); } }
|
||||
@page { size: letter; margin: 0.8in 0.8in 1in; }
|
||||
@page { size: letter; margin: 0.7in 0.8in 0.8in; }
|
||||
@media print {
|
||||
:root { color-scheme: light; }
|
||||
html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
|
||||
#app, dialog { display: none !important; }
|
||||
#printdoc { display: block; font-family: Georgia, "Times New Roman", serif; line-height: 1.35; }
|
||||
.pfooter { position: fixed; bottom: -0.6in; left: 0; right: 0; text-align: center; font: 9pt system-ui, sans-serif; color: #444; border-top: 0.5pt solid #999; padding-top: 3pt; }
|
||||
.ptable { width: 100%; border-collapse: collapse; }
|
||||
.ptable > thead > tr > td, .ptable > tbody > tr > td { padding: 0; }
|
||||
.ptable > thead { display: table-header-group; }
|
||||
.phead { color: #000; border-bottom-color: #000; margin-bottom: 14pt; }
|
||||
.pcover { break-after: page; }
|
||||
.pcover h1 { font-size: 26pt; margin: 1.2in 0 .2in; }
|
||||
.powner { font-size: 14pt; }
|
||||
|
||||
Reference in New Issue
Block a user