From 95a7ff134c08364db8640789d651d910d71e1b3c Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Thu, 24 Jun 2021 19:09:59 +0200 Subject: [PATCH] Improve print CSS --- original-assets/styles/styles.scss | 13 ++++++++++++- templates/assets/css/styles.css | 12 +++++++++++- templates/footer.gohtml | 11 ++++------- templates/post.gohtml | 2 +- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/original-assets/styles/styles.scss b/original-assets/styles/styles.scss index a00cbf9..ab887ce 100644 --- a/original-assets/styles/styles.scss +++ b/original-assets/styles/styles.scss @@ -245,7 +245,18 @@ footer { nav, #post-actions, #related, - #interactions { + #interactions, + #posteditactions, + #tor { display: none; } + + a { + text-decoration: none; + } + + // Show link + .e-content a[href]:after { + content: " [" attr(href) "]"; + } } \ No newline at end of file diff --git a/templates/assets/css/styles.css b/templates/assets/css/styles.css index 3917a72..1f2a224 100644 --- a/templates/assets/css/styles.css +++ b/templates/assets/css/styles.css @@ -211,7 +211,17 @@ footer * { nav, #post-actions, #related, -#interactions { +#interactions, +#posteditactions, +#tor { display: none; } + + a { + text-decoration: none; + } + + .e-content a[href]:after { + content: " [" attr(href) "]"; + } } diff --git a/templates/footer.gohtml b/templates/footer.gohtml index ec685a2..25afcac 100644 --- a/templates/footer.gohtml +++ b/templates/footer.gohtml @@ -1,18 +1,15 @@ {{ define "footer" }} diff --git a/templates/post.gohtml b/templates/post.gohtml index 6b309db..39a3e94 100644 --- a/templates/post.gohtml +++ b/templates/post.gohtml @@ -28,7 +28,7 @@ {{ include "author" . }} {{ if .LoggedIn }} -
+