From 2362f621fbb86ddbc50e52cabb208e86dfee17cb Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 3 Dec 2015 11:15:23 -0500 Subject: [PATCH] Add basic print styles - Hide menu, social share buttons, and ads on print - Close #191 --- _sass/print.scss | 16 ++++++++++++++++ assets/css/main.scss | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 _sass/print.scss diff --git a/_sass/print.scss b/_sass/print.scss new file mode 100644 index 0000000..ff66ddc --- /dev/null +++ b/_sass/print.scss @@ -0,0 +1,16 @@ +/* ========================================================================== + PRINT STYLES + ========================================================================== */ + +/* + Hide the following elements on print + ========================================================================== */ + +@media print { + .top-navigation, + .social-share, + .related-articles, + .google-ads { + display: none; + } +} diff --git a/assets/css/main.scss b/assets/css/main.scss index fdd8cf2..4e3fcb2 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -25,4 +25,5 @@ sitemap: false @import "page"; @import "vendor/font-awesome/font-awesome"; @import "vendor/magnific-popup/magnific-popup"; -//@import "vendor/google/fonts"; \ No newline at end of file +//@import "vendor/google/fonts"; +@import "print"; \ No newline at end of file -- 2.43.0