[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
This commit is contained in:
Fabien Meghazi 2011-12-20 21:14:34 +01:00
parent 09e3e3582e
commit 683aeeb2c5
2 changed files with 11 additions and 7 deletions

View File

@ -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;

View File

@ -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()