Skip to content

Commit 2362f62

Browse files
committed
Add basic print styles
- Hide menu, social share buttons, and ads on print - Close mmistakes#191
1 parent be97221 commit 2362f62

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

_sass/print.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* ==========================================================================
2+
PRINT STYLES
3+
========================================================================== */
4+
5+
/*
6+
Hide the following elements on print
7+
========================================================================== */
8+
9+
@media print {
10+
.top-navigation,
11+
.social-share,
12+
.related-articles,
13+
.google-ads {
14+
display: none;
15+
}
16+
}

assets/css/main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ sitemap: false
2525
@import "page";
2626
@import "vendor/font-awesome/font-awesome";
2727
@import "vendor/magnific-popup/magnific-popup";
28-
//@import "vendor/google/fonts";
28+
//@import "vendor/google/fonts";
29+
@import "print";

0 commit comments

Comments
 (0)