From 143936a8c802cc6f64b567e12f008821822d8428 Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Thu, 18 Oct 2012 18:47:56 +0530 Subject: [PATCH 1/2] [IMP] Improve css to hide border,button,notebook tab,scoll. bzr revid: bth@tinyerp.com-20121018131756-7bz5wt9bl6ck11jn --- addons/web/static/src/css/base.css | 42 +++++++++---------- addons/web/static/src/css/base.sass | 37 ++++++++-------- .../static/src/css/web_calendar.css | 8 ++++ addons/web_gantt/static/src/css/gantt.css | 8 ++++ addons/web_kanban/static/src/css/kanban.css | 6 +++ addons/web_kanban/static/src/css/kanban.sass | 3 ++ 6 files changed, 64 insertions(+), 40 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 36c5e96bd19..de9b50e53ac 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -2561,12 +2561,6 @@ .openerp .oe_list.oe_list_editable td.oe_list_record_delete { position: absolute; } -.openerp .oe_list.oe_list_editable.oe_editing .oe_edition .oe_list_field_cell:not(.oe_readonly) { - color: transparent; -} -.openerp .oe_list.oe_list_editable.oe_editing .oe_edition .oe_list_field_cell:not(.oe_readonly) * { - visibility: hidden; -} .openerp .oe_list.oe_list_editable.oe_editing .oe_m2o_drop_down_button { top: 5px; } @@ -2585,10 +2579,10 @@ } .openerp .oe_list.oe_list_editable.oe_editing .oe_form_field.oe_form_field_float input, .openerp .oe_list.oe_list_editable.oe_editing .oe_form_field.oe_form_view_integer input { text-align: right; - width: 100% !important; + width: 100%; } .openerp .oe_list.oe_list_editable.oe_editing .oe_form_field.oe_form_field_datetime > span, .openerp .oe_list.oe_list_editable.oe_editing .oe_form_field.oe_form_field_date > span { - width: 100% !important; + width: 100%; } .openerp .oe_list.oe_list_editable.oe_editing .oe_form_field.oe_form_field_datetime input.oe_datepicker_master, .openerp .oe_list.oe_list_editable.oe_editing .oe_form_field.oe_form_field_date input.oe_datepicker_master { width: 100% !important; @@ -2597,9 +2591,6 @@ min-width: 0 !important; max-width: none !important; } -.openerp .oe_list_group_name { - white-space: nowrap; -} .openerp .oe_form .oe_form_field_many2many > .oe_list .oe_list_pager_single_page { display: none; } @@ -2659,17 +2650,14 @@ background: #eeeeee; vertical-align: top; } +.openerp .oe_list_content > thead th { + position: relative; +} .openerp .oe_list_content td, .openerp .oe_list_content th { padding: 3px 6px; line-height: 18px; } -.openerp .oe_list_content th.oe_sortable, .openerp .oe_list_content th.oe_sortable div { - cursor: pointer; -} -.openerp .oe_list_content th.oe_sortable div { - position: relative; -} -.openerp .oe_list_content th.oe_sortable div:after { +.openerp .oe_list_content th:after { position: absolute; right: 6px; content: ""; @@ -2679,12 +2667,12 @@ border-color: black transparent; visibility: hidden; } -.openerp .oe_list_content th.sortup div:after { +.openerp .oe_list_content th.sortup:after { visibility: visible; filter: alpha(opacity=60); opacity: 0.6; } -.openerp .oe_list_content th.sortdown div:after { +.openerp .oe_list_content th.sortdown:after { border-bottom: none; border-left: 4px solid transparent; border-right: 4px solid transparent; @@ -2927,11 +2915,21 @@ 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; } } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 5f9e4f2e31f..622b019e8fa 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -2026,10 +2026,6 @@ $sheet-max-width: 860px td.oe_list_record_delete position: absolute .oe_list.oe_list_editable.oe_editing - .oe_edition .oe_list_field_cell:not(.oe_readonly) - * - visibility: hidden - color: transparent .oe_m2o_drop_down_button top: 5px .oe_m2o_cm_button @@ -2044,17 +2040,15 @@ $sheet-max-width: 860px &.oe_form_field_float,&.oe_form_view_integer input text-align: right - width: 100% !important + width: 100% &.oe_form_field_datetime,&.oe_form_field_date > span - width: 100% !important + width: 100% input.oe_datepicker_master width: 100% !important .oe_form_field_float,.oe_form_view_integer,&.oe_form_field_datetime,&.oe_form_field_date min-width: 0 !important max-width: none !important - .oe_list_group_name - white-space: nowrap // }}} // FormView.many2many {{{ .oe_form .oe_form_field_many2many > .oe_list @@ -2104,14 +2098,12 @@ $sheet-max-width: 860px border-bottom: 2px solid #cacaca background: #eee vertical-align: top + th + position: relative td, th padding: 3px 6px line-height: 18px - th.oe_sortable, th.oe_sortable div - cursor: pointer - th.oe_sortable div - position: relative - th.oe_sortable div:after + th:after position: absolute right: 6px content: "" @@ -2120,10 +2112,10 @@ $sheet-max-width: 860px border-style: solid border-color: #000 transparent visibility: hidden - th.sortup div:after + th.sortup:after visibility: visible @include opacity(0.6) - th.sortdown div:after + th.sortdown:after border-bottom: none border-left: 4px solid transparent border-right: 4px solid transparent @@ -2314,10 +2306,19 @@ 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 // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: diff --git a/addons/web_calendar/static/src/css/web_calendar.css b/addons/web_calendar/static/src/css/web_calendar.css index 9cfc2f777bd..083451f3fbc 100644 --- a/addons/web_calendar/static/src/css/web_calendar.css +++ b/addons/web_calendar/static/src/css/web_calendar.css @@ -1053,3 +1053,11 @@ div.openerp .dhx_cal_editor textarea { .openerp .dhx_cal_event .dhx_header, .openerp .dhx_cal_event .dhx_header { display:none; } +@media print { + div.dhx_cal_navline .dhx_cal_tab, div.dhx_cal_navline .dhx_cal_prev_button, div.dhx_cal_navline .dhx_cal_next_button, div.dhx_cal_navline .dhx_cal_today_button{ + display: none; + } + .openerp .dhx_cal_data { + overflow-y: hidden !important; + } +} \ No newline at end of file diff --git a/addons/web_gantt/static/src/css/gantt.css b/addons/web_gantt/static/src/css/gantt.css index c6939fc9463..d6ef08c15fa 100644 --- a/addons/web_gantt/static/src/css/gantt.css +++ b/addons/web_gantt/static/src/css/gantt.css @@ -7,3 +7,11 @@ position: absolute; top: 5px; } +@media print { + .oe_gantt button { + display: none; + } + .oe_gantt > table > tbody > tr > td > div > div { + overflow: hidden !important; + } +} \ No newline at end of file diff --git a/addons/web_kanban/static/src/css/kanban.css b/addons/web_kanban/static/src/css/kanban.css index 60e8eefcf37..c706bdcd063 100644 --- a/addons/web_kanban/static/src/css/kanban.css +++ b/addons/web_kanban/static/src/css/kanban.css @@ -609,3 +609,9 @@ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(255, 255, 255, 0.8) inset; -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(255, 255, 255, 0.8) inset; } + +@media print { + .oe_kanban_groups button { + display: none; + } +} diff --git a/addons/web_kanban/static/src/css/kanban.sass b/addons/web_kanban/static/src/css/kanban.sass index 1210e9bf640..56d457cee19 100644 --- a/addons/web_kanban/static/src/css/kanban.sass +++ b/addons/web_kanban/static/src/css/kanban.sass @@ -502,6 +502,9 @@ @include vertical-gradient(#f6f6f6, #e3e3e3) @include box-shadow((0 1px 2px rgba(0, 0, 0, .1), 0 1px 1px rgba(255, 255, 255, .8) inset)) +@media print + .oe_kanban_groups button + display: none // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: From 479627856c3fc4e8c12dfe5b5b3d59609de1838c Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Fri, 19 Oct 2012 12:07:30 +0530 Subject: [PATCH 2/2] [IMP] Improve css to hide scroll in mail threads and remove text shadow. bzr revid: bth@tinyerp.com-20121019063730-cx2axh9cgbego6o0 --- addons/web/static/src/css/base.css | 12 ++++++++++++ addons/web/static/src/css/base.sass | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 56369e18ba9..8234c26e507 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -2944,4 +2944,16 @@ div.ui-widget-overlay { .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 0a3d94220c0..128fdf8834e 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -2327,6 +2327,12 @@ div.ui-widget-overlay .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 > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: