From 87ada591c5cbf028c483b9e6c8024396bd43bdb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 5 Oct 2020 16:14:49 +0200 Subject: [PATCH] Distinguish links from content on printout --- static/css/hugo-theme.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/css/hugo-theme.css b/static/css/hugo-theme.css index 6adfd9163f..58c0b55330 100644 --- a/static/css/hugo-theme.css +++ b/static/css/hugo-theme.css @@ -68,6 +68,16 @@ body { #body a.highlight:hover:after, #body a.highlight:focus:after { width: 100%; } +@media print { + #body #body-inner a { + /* in print we want to distinguish links in our content from + normal text even if printed black/white; + don't use a.highlight in selector to also get links that are + put as HTML into markdown */ + text-decoration-line: underline; + } +} + .progress { position:absolute; background-color: rgba(246, 246, 246, 0.97);