From 97390a47c033a97d749934e1a4f984f590da477a Mon Sep 17 00:00:00 2001 From: j-james Date: Wed, 20 Oct 2021 21:53:23 -0700 Subject: Add special CSS for printing in Firefox --- css/resume.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'css') diff --git a/css/resume.css b/css/resume.css index cc1fe53..dc60b6c 100644 --- a/css/resume.css +++ b/css/resume.css @@ -69,7 +69,6 @@ ul { } @page { - /* todo: fit the resume all on one page in firefox */ size: auto; margin: 2mm; } @@ -90,4 +89,13 @@ ul { #pdf { display: none; } + /* fit resume on one page when printing in firefox */ + @-moz-document url-prefix() { + h1 { + margin-bottom: 0.1em; + } + h2 { + margin-top: 0.5em; + } + } } -- cgit v1.2.3-70-g09d2