From 434aff903dca9f8942049bfdccab50043a284d76 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Fri, 10 Jan 2025 00:11:44 -0500 Subject: [PATCH] Further print style tweaks --- themes/v2/assets/css/style.scss | 30 ++++++++++++++++++++++++--- themes/v2/layouts/archive/single.html | 2 +- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss index 88a0806..6745e6d 100644 --- a/themes/v2/assets/css/style.scss +++ b/themes/v2/assets/css/style.scss @@ -227,6 +227,7 @@ audio::-webkit-media-controls-panel { @media print { body { background-color: white; + font-size: 24px; padding: 0; } @@ -234,9 +235,16 @@ audio::-webkit-media-controls-panel { display: none; } - a:not(:has(img), [href^="#"], [href="/"])::after { - content: " (" attr(href) ")"; - font-size: 0.8em; + a:not(:has(img), [href^="#"], [href="/"]) { + border-bottom: 1.5px solid #00a; + text-decoration: none; + + &::after { + border-bottom: 1.5px solid white; + color: #eee; + content: " [" attr(href) "]"; + font-weight: normal; + } } h2, @@ -245,6 +253,7 @@ audio::-webkit-media-controls-panel { page-break-after: avoid; } + blockquote, li { page-break-inside: avoid; } @@ -256,4 +265,19 @@ audio::-webkit-media-controls-panel { .page-break { page-break-after: always; } + + a.footnote-backref { + display: none; + } + + code { + background: none; + border-radius: 0; + padding: 0; + + &::before, + &::after { + content: "`" + } + } } \ No newline at end of file diff --git a/themes/v2/layouts/archive/single.html b/themes/v2/layouts/archive/single.html index 6d5c48d..cd71fc1 100644 --- a/themes/v2/layouts/archive/single.html +++ b/themes/v2/layouts/archive/single.html @@ -17,7 +17,7 @@

- {{ .Title }} + {{ .Title }}