diff options
| author | Jiten (OpenERP) <jra@tinyerp.com> | 2012-10-19 14:37:46 +0530 |
|---|---|---|
| committer | Jiten (OpenERP) <jra@tinyerp.com> | 2012-10-19 14:37:46 +0530 |
| commit | 68e66d2dfbb42bbbe3dcbdff18599be0751310db (patch) | |
| tree | 19169e38038c1642ae889746e9dc90bcf5cf45b3 /addons/web | |
| parent | ee40868da97fe5606592f00cc07c5d1a06c5de10 (diff) | |
| parent | b734ff2ec5f36b8f7c95cb5e73b112648124b1b1 (diff) | |
[IMP] Improved code to based on printing on browser by click Ctrl+P.
bzr revid: jra@tinyerp.com-20121019090746-do2pmc8z5hvoh8l7
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/css/base.css | 26 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 21 |
2 files changed, 42 insertions, 5 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 36c5e96bd19..8234c26e507 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -2927,11 +2927,33 @@ div.ui-widget-overlay { } @media print { - .oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header { + .oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header, .openerp .oe_notebook > li.ui-state-default { display: none; } - .openerp .oe_application .oe_form_sheet { + .oe_list_content button, .oe_list_content input[type=checkbox] { + display: none; + } + + .openerp .tree_header button { + display: none; + } + .openerp .oe_notebook > li.ui-tabs-selected { + display: block; + } + .openerp .oe_application .oe_form_sheet, .openerp .oe_application .oe_form_sheetbg { border: none; } + + .openerp div.oe_mail_wall { + overflow: hidden !important; + } + + .oe_mail .oe_mail_thread_msg .oe_mail_unread, .oe_mail_fetch_more { + display: none; + } + + .openerp { + text-shadow: none; + } } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 5f9e4f2e31f..128fdf8834e 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -2314,10 +2314,25 @@ div.ui-widget-overlay @include radius(3px) @media print - .oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header + .oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header, .openerp .oe_notebook > li.ui-state-default display: none - .openerp .oe_application .oe_form_sheet - border: none + .oe_list_content + button, input[type=checkbox] + display: none + .openerp + .tree_header button + display: none + .oe_notebook > li.ui-tabs-selected + display: block + .oe_application + .oe_form_sheet, .oe_form_sheetbg + border: none + .openerp div.oe_mail_wall + overflow: hidden !important + .oe_mail .oe_mail_thread_msg .oe_mail_unread, .oe_mail_fetch_more + display: none + .openerp + text-shadow: none // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers <afile> > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: |
