DEV: moves print-specific styles from internal style tag to external print sheet (#6581)

* DEV: removes internal styles from print view

* DEV: adds styles to print sheet
This commit is contained in:
Joe 2018-11-13 11:45:55 +08:00 committed by Sam
parent 7b44339529
commit 7707e42441
2 changed files with 8 additions and 13 deletions

View File

@ -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;

View File

@ -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 %>