diff options
-rw-r--r-- | app/views/layouts/default.rhtml | 7 | ||||
-rw-r--r-- | app/views/request/_correspondence.rhtml | 1 | ||||
-rw-r--r-- | public/stylesheets/print.css | 40 | ||||
-rw-r--r-- | public/stylesheets/theme.css | 3 |
4 files changed, 48 insertions, 3 deletions
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 3e96a8b6e..8812f50a6 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -17,9 +17,10 @@ </title> <link rel="shortcut icon" href="/favicon.ico"> - <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet" %> - <%= stylesheet_link_tag 'fonts', :rel => "stylesheet" %> - <%= stylesheet_link_tag 'theme', :rel => "stylesheet" %> + <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %> + <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all" %> + <%= stylesheet_link_tag 'theme', :rel => "stylesheet", :media => "all" %> + <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print" %> <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %> <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%> <!--[if LT IE 7]> diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml index f1e77de8a..aa33f3bc4 100644 --- a/app/views/request/_correspondence.rhtml +++ b/app/views/request/_correspondence.rhtml @@ -1,3 +1,4 @@ +<div class="ff-print-fix"></div> <% if !info_request_event.nil? && info_request_event.event_type == 'response' incoming_message = info_request_event.incoming_message diff --git a/public/stylesheets/print.css b/public/stylesheets/print.css new file mode 100644 index 000000000..129b452b8 --- /dev/null +++ b/public/stylesheets/print.css @@ -0,0 +1,40 @@ +div#content, div#left_column, div.entirebodym div#wrapper { + width: 100%; + margin: 0; + float: none; +} +div#content { + padding-right: 0; + width: 96%; +} + +#wrapper { + width: auto; + padding: 0; + +} + +p.event_actions, +div#after_actions, +#right_column, +#header_right, +#banner, +#describe_state_form_1, +#describe_state_form_2 input[type=submit], +#footer { + display: none; +} + +div.correspondence { + background: none; + border: 1px solid #DDD; + border-radius: 0; + -moz-border-radius: 0; +} + +p#request_status { + page-break-after: avoid; +} +div.correspondence { + page-break-before: avoid; +}
\ No newline at end of file diff --git a/public/stylesheets/theme.css b/public/stylesheets/theme.css index ad1f7dfe6..ca99c3793 100644 --- a/public/stylesheets/theme.css +++ b/public/stylesheets/theme.css @@ -368,6 +368,9 @@ p.subtitle { margin-top:60px; } +div.ff-icon-printfix { + display: none; +} #search_form { margin:0px -6px 20px 0px; } |