davideisinger.com

My personal website
Log | Files | Refs | README

commit 434aff903dca9f8942049bfdccab50043a284d76
parent b0114b9bef7132494666aa4e7ee11276f11d6452
Author: David Eisinger <[email protected]>
Date:   Fri, 10 Jan 2025 00:11:44 -0500

Further print style tweaks

Diffstat:
Mthemes/v2/assets/css/style.scss | 30+++++++++++++++++++++++++++---
Mthemes/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 @@ -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 @@ -17,7 +17,7 @@ <section class="page-break"> <h2> - {{ .Title }} + <a href="{{ .RelPermalink }}">{{ .Title }}</a> </h2> <h3>