From 7b8cda989b4f5661710dd8fde1cd46222b571185 Mon Sep 17 00:00:00 2001 From: Hikari Date: Mon, 20 Apr 2026 12:10:18 -0700 Subject: [PATCH] fix: restore print media query functionality Removes CDN global styles before printing via beforeprint/afterprint events, preventing the witchy theme from bleeding into print output. Fixes print layout: centred name and contact info, reset margins for compact sub-position lists, and footer z-index for screen view. --- src/parse.ts | 10 ++++++++++ src/static/style.css | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/parse.ts b/src/parse.ts index 7875518..ae4f24e 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -28,6 +28,16 @@ const htmlBeginning = ` const htmlEnd = ` + `; const request = await fetch( diff --git a/src/static/style.css b/src/static/style.css index 392c0c7..920777e 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -42,6 +42,9 @@ hr { box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7); margin-bottom: 10px; } + footer { + z-index: 1; + } } @media print { :root { @@ -50,6 +53,15 @@ hr { * { color: black; font-family: "Times New Roman", serif; + margin: 0; + padding: 0; + } + h1 { + text-align: center; + font-size: 1.8rem; + } + .info { + text-align: center; } video, footer,