From ec9cfc83fef8696784f46a6e09c549cb8108f3a2 Mon Sep 17 00:00:00 2001 From: bdeshi Date: Mon, 23 May 2022 21:01:57 +0600 Subject: [PATCH] add noprint class to hide elements when printing --- assets/styles/content.sass | 2 ++ includes/sections/copyright.pug | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/styles/content.sass b/assets/styles/content.sass index e0d39fc..9e95335 100644 --- a/assets/styles/content.sass +++ b/assets/styles/content.sass @@ -10,6 +10,8 @@ a a.print:after content: " (" attr(href) ") " font-size: 50% + .noprint + display: none .synopsis .desc > p diff --git a/includes/sections/copyright.pug b/includes/sections/copyright.pug index 17a4c8e..a981716 100644 --- a/includes/sections/copyright.pug +++ b/includes/sections/copyright.pug @@ -8,4 +8,5 @@ section.copyright | Created with #[+ext_a('https://pugjs.org', 'pug')] | and #[+ext_a('https://sass-lang.com', 'sass')]. | Built with #[+ext_a('https://parceljs.org', 'parcel')]. - | Pronunciation generated by #[+ext_a('https://ipa-reader.xyz', 'ipa-reader')]. + | + span.noprint Pronunciation generated by #[+ext_a('https://ipa-reader.xyz', 'ipa-reader')].