From e50ba150c3e256561d384e3ae1575d75118407e6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Dec 2006 20:34:51 +0000 Subject: [PATCH] added print.css to hide header, menus and footer git-svn-id: http://redmine.rubyforge.org/svn/trunk@83 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/layouts/base.rhtml | 1 + public/stylesheets/print.css | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 public/stylesheets/print.css diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 4d036ef8a..cbb50a846 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -8,6 +8,7 @@ <%= stylesheet_link_tag "application" %> <%= stylesheet_link_tag "menu" %> <%= stylesheet_link_tag "rails" %> +<%= stylesheet_link_tag "print", :media => "print" %> <%= javascript_include_tag :defaults %> <%= javascript_include_tag 'menu' %> <%= javascript_include_tag 'calendar/calendar' %> diff --git a/public/stylesheets/print.css b/public/stylesheets/print.css new file mode 100644 index 000000000..2108bcab4 --- /dev/null +++ b/public/stylesheets/print.css @@ -0,0 +1,7 @@ +#header, #navigation, #subcontent, #footer { +display:none; +} + +.menu { +display:none; +}