fix(site): render the map without transitions when printing

The box strokes fade from screen to print colors over 0.15 s, and the PNG/PDF render sometimes captured them mid-fade. That made the output differ slightly between runs and the map fingerprint flip, which created an unnecessary release (v2.0.2). Print styles now disable transitions and animations, so 12 of 12 test renders are byte-identical.
This commit is contained in:
Meysam Parvizi
2026-10-10 03:10:24 +02:00
committed by Meysam
parent 71adde583f
commit 558cc859f5
+8
View File
@@ -450,6 +450,14 @@
}
@media print {
/* Print the final colors, not a frame of the screen-to-print color transition. */
*,
*::before,
*::after {
transition: none !important;
animation: none !important;
}
html[data-theme] {
color-scheme: light;
--bg: #ffffff;