Added a print media CSS file, and fixed the jqGrid print problem of truncating the table to a single page. Also, used the opportunity to disable printing of the side menu and the debug toolkit, as well as some more jqGrid cleanup.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@403 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
46
webroot/css/print.css
Normal file
46
webroot/css/print.css
Normal file
@@ -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 <th>,
|
||||
* as well as the footer navtable. The pagination buttons
|
||||
* are of no use, nor is the selbox to set # of rows.
|
||||
*/
|
||||
.GridHeader td,
|
||||
div.scroll .navtable,
|
||||
div.scroll .pgbuttons,
|
||||
div.scroll select.selbox
|
||||
{ display: none; }
|
||||
|
||||
/* The "page N / M" input box... make it look like normal text */
|
||||
div.scroll input[type='text'] {
|
||||
border: none;
|
||||
background: transparent;
|
||||
}
|
||||
Reference in New Issue
Block a user