diff --git a/site/views/layouts/default.ctp b/site/views/layouts/default.ctp index f394601..22f33ce 100644 --- a/site/views/layouts/default.ctp +++ b/site/views/layouts/default.ctp @@ -33,6 +33,7 @@ echo $html->meta('icon') . "\n"; echo $html->css('cake.generic') . "\n"; echo $html->css('layout') . "\n"; + echo $html->css('print', null, array('media' => 'print')) . "\n"; echo $html->css('sidemenu') . "\n"; //echo $html->css('jquery/base/ui.all') . "\n"; //echo $html->css('jquery/smoothness/ui.all') . "\n"; diff --git a/site/webroot/css/print.css b/site/webroot/css/print.css new file mode 100644 index 0000000..be93c35 --- /dev/null +++ b/site/webroot/css/print.css @@ -0,0 +1,46 @@ +/************************************************************ + ************************************************************ + * Styles for media type: print + */ + +/* No need for the menu */ +table#layout td#sidecolumn + { display: none; } + +/* No need for the debug kit */ +div#debug-kit-toolbar + { display: none; } + +/* In fact, no need for any debug stuff */ +.debug + { display: none; } + + +/************************************************************ + * Grid display + */ + +/* Grid are not to be truncated when printing, so + * set overflow to visible for necessary selectors. + */ +div#content, div.grid_bdiv + { overflow: visible ! important } + +div.grid_hdiv + { border-bottom: 3px double #000; } + +/* The header is generally useless, except for the