From 683aeeb2c5374a960351622440e5ff7456e1dcd4 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 20 Dec 2011 21:14:34 +0100 Subject: [PATCH] [FIX] Fix some editable list styling bugs due to last styling merge There is still one missing problem: once editing an existing row, the font size is buggy. bzr revid: fme@openerp.com-20111220201434-5gwo37br7qil1qp5 --- addons/web/static/src/css/base.css | 16 ++++++++++------ addons/web/static/src/js/view_list_editable.js | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 2fa530cf1c0..ea47e0877ee 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -764,7 +764,7 @@ label.error { padding-left: 18px; } /* List */ -.openerp .oe-listview table { +.openerp table.oe-listview-content { clear: right; width: 100%; border-spacing: 0; @@ -789,7 +789,7 @@ label.error { background: none; } -.openerp .oe-listview td, +.openerp .oe-listview > table > tbody > tr > td, .openerp .oe-listview th { vertical-align: middle; text-align: left; @@ -809,7 +809,7 @@ label.error { } /* Could use :not selectors if they were supported by MSIE8... */ -.openerp .oe-listview tbody td { +.openerp .oe-listview > table > tbody > tr > td { border-left: 1px solid #dadada; /*currently commenting to test with no vertical lines in list view*/ } .openerp .oe-listview tbody td:first-child, @@ -840,12 +840,12 @@ label.error { vertical-align: middle; } -.openerp .oe-listview table tbody td { +.openerp .oe-listview > table > tbody > tr > td { border-bottom: 1px solid #E3E3E3; } -.openerp .oe-listview td.oe-actions { +.openerp .oe-listview td.oe-actions { border-bottom:none; } @@ -867,12 +867,16 @@ label.error { .openerp .oe-listview .oe-field-cell progress { width: 100%; } -.openerp .oe-listview .oe-field-cell button { +.openerp .oe-listview .oe-field-cell.oe-button button, +.openerp .oe-listview .oe_form_button button { margin: 0; padding: 0; border: none; background: none; width: 16px; + box-shadow: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; } .openerp .oe-listview .oe-field-cell button:active { opacity: 0.5; diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index 453536f7ec6..daf708104e8 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -242,7 +242,7 @@ openerp.web.list_editable = function (openerp) { self.edition_form.appendTo(); $.when(self.edition_form.on_loaded(self.get_form_fields_view())).then(function () { // put in $.when just in case FormView.on_loaded becomes asynchronous - $new_row.find('td') + $new_row.find('> td') .addClass('oe-field-cell') .removeAttr('width') .end()