add print style for ticket zoom
This commit is contained in:
parent
c2c9949f25
commit
d4c572fe08
4 changed files with 53 additions and 1 deletions
4
app/assets/stylesheets/application-print.css
Normal file
4
app/assets/stylesheets/application-print.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/*
|
||||||
|
*= require_self
|
||||||
|
*= require ./print.scss
|
||||||
|
*/
|
46
app/assets/stylesheets/print.scss
Normal file
46
app/assets/stylesheets/print.scss
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
#app > *:not(.content):not(.active),
|
||||||
|
#app > .hide,
|
||||||
|
.icon,
|
||||||
|
.avatar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
Ticket Zoom
|
||||||
|
===========
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
.ticketZoom-controls,
|
||||||
|
.scrollPageHeader,
|
||||||
|
.article-new,
|
||||||
|
.article-actions,
|
||||||
|
.tabsSidebar,
|
||||||
|
.attributeBar,
|
||||||
|
.textBubble-overflowContainer {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ticket-title {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ticket-article-item {
|
||||||
|
margin: 1em 0;
|
||||||
|
border: 1px solid;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-meta-value {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-content {
|
||||||
|
margin: 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-meta .article-meta-key {
|
||||||
|
display: none;
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title><%= Setting.get('product_name') %></title>
|
<title><%= Setting.get('product_name') %></title>
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= stylesheet_link_tag "application" %>
|
||||||
|
<%= stylesheet_link_tag "application-print", :media => 'print' %>
|
||||||
<% if Rails.configuration.assets.debug %>
|
<% if Rails.configuration.assets.debug %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
|
@ -8,4 +8,5 @@ Rails.application.config.assets.version = '1.0'
|
||||||
|
|
||||||
# Precompile additional assets.
|
# Precompile additional assets.
|
||||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||||
# Rails.application.config.assets.precompile += %w( search.js )
|
Rails.application.config.assets.precompile += %w( application-print.css )
|
||||||
|
Rails.application.config.assets.precompile += %w( print.css )
|
||||||
|
|
Loading…
Reference in a new issue