A platform for community discussion. Free, open, simple.
DEV: moves print-specific styles from internal style tag to external print sheet (#6581)
Joe7707e42441cb
diff --git a/app/assets/stylesheets/common/printer-friendly.scss b/app/assets/stylesheets/common/printer-friendly.scssindex e76d132bcf3..d7d8e6824d3 100644--- a/app/assets/stylesheets/common/printer-friendly.scss+++ b/app/assets/stylesheets/common/printer-friendly.scss@@ -35,9 +35,16 @@.alert-info,.badge-category,.badge-category-bg,- .badge-notification.clicks {+ .badge-notification.clicks,+ .crawler-nav,+ .powered-by-link {display: none !important;}+ /* For readability */+ a,+ a:visited {+ color: #0088cc !important;+ }/* bottom border to help separate posts */div.row {border-top: 1px solid #aaa;diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erbindex 15b72d539f1..bcc2e6a1404 100644--- a/app/views/topics/show.html.erb+++ b/app/views/topics/show.html.erb@@ -104,18 +104,6 @@<% if @topic_view.print %><% content_for :after_body do %>- <style media="print">- /* For readability */- a,- a:visited {- color: #0088cc !important;- }- /* hide crawler nav in print view */- .crawler-nav,- .powered-by-link {- display: none;- }- </style><%= preload_script('print-page') %><% end %><% end %>