diff --git a/app/static/scss/_print.scss b/app/static/scss/_print.scss new file mode 100644 index 00000000..5aa28a40 --- /dev/null +++ b/app/static/scss/_print.scss @@ -0,0 +1,28 @@ +@media print { + #navbarSupportedContent, #side_pane, .voting_buttons, .comment_actions, footer, .post_reply_form, #post_replies .btn-group, + .navbar .nav-link, .post_utilities_bar, .community_header, .community_icon_big, .mobile_create_post { + display: none; + } + + .navbar { + padding-top: 0; + padding-bottom: 0; + } + + .comments > .comment { + break-inside: avoid; + } + + .main_pane { + border: none; + padding: 0; + + &>.btn-group { + display: none; + } + } + + .div.navbar { + border-bottom: none; + } +} \ No newline at end of file diff --git a/app/static/styles.css b/app/static/styles.css index 6039ec53..99b5b28e 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -864,5 +864,32 @@ div.navbar { background-color: black; } } +@media print { + #navbarSupportedContent, #side_pane, .voting_buttons, .comment_actions, footer, .post_reply_form, #post_replies .btn-group, +.navbar .nav-link, .post_utilities_bar, .community_header, .community_icon_big, .mobile_create_post { + display: none; + } + + .navbar { + padding-top: 0; + padding-bottom: 0; + } + + .comments > .comment { + break-inside: avoid; + } + + .main_pane { + border: none; + padding: 0; + } + .main_pane > .btn-group { + display: none; + } + + .div.navbar { + border-bottom: none; + } +} /*# sourceMappingURL=styles.css.map */ diff --git a/app/static/styles.scss b/app/static/styles.scss index 9fca4211..4e7f1eca 100644 --- a/app/static/styles.scss +++ b/app/static/styles.scss @@ -446,4 +446,6 @@ div.navbar { [data-bs-theme="dark"] .coolfieldset.collapsed legend, [data-bs-theme="dark"] .coolfieldset legend, [data-bs-theme="dark"] .coolfieldset.expanded legend { background-color: black; } -} \ No newline at end of file +} + +@import "scss/print";