add print style for ticket zoom

This commit is contained in:
Felix Niklas 2016-03-11 15:34:43 +01:00
parent c2c9949f25
commit d4c572fe08
4 changed files with 53 additions and 1 deletions

View file

@ -0,0 +1,4 @@
/*
*= require_self
*= require ./print.scss
*/

View 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;
}

View file

@ -4,6 +4,7 @@
<meta charset="utf-8">
<title><%= Setting.get('product_name') %></title>
<%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag "application-print", :media => 'print' %>
<% if Rails.configuration.assets.debug %>
<%= javascript_include_tag "application" %>
<% else %>

View file

@ -8,4 +8,5 @@ Rails.application.config.assets.version = '1.0'
# Precompile additional assets.
# 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 )