[FIX] Fix some css, remove useless classes

bzr revid: fme@openerp.com-20120510103513-ejjeab5g3s6tr4tc
This commit is contained in:
Fabien Meghazi 2012-05-10 12:35:13 +02:00
parent 9eb8e07d4f
commit 8b95683d20
5 changed files with 70 additions and 63 deletions

View File

@ -1785,24 +1785,16 @@
.openerp .oe-listview-content {
width: 100%;
}
.openerp .oe-listview-content td, .openerp .oe-listview-content th {
padding: 3px 6px;
line-height: 18px;
}
.openerp .oe-listview-content td button, .openerp .oe-listview-content th button {
border: none;
background: transparent;
padding: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
-box-shadow: none;
}
.openerp .oe-listview-content thead {
.openerp .oe-listview-content > thead {
border-bottom: 2px solid #cacaca;
background: #eeeeee;
vertical-align: top;
}
.openerp .oe-listview-content thead th:after {
.openerp .oe-listview-content > thead td, .openerp .oe-listview-content > thead th {
padding: 3px 6px;
line-height: 18px;
}
.openerp .oe-listview-content > thead th:after {
content: "";
float: right;
margin-top: 7px;
@ -1811,12 +1803,12 @@
border-color: black transparent;
visibility: hidden;
}
.openerp .oe-listview-content thead th.sortup:after {
.openerp .oe-listview-content > thead th.sortup:after {
visibility: visible;
filter: alpha(opacity=60);
opacity: 0.6;
}
.openerp .oe-listview-content thead th.sortdown:after {
.openerp .oe-listview-content > thead th.sortdown:after {
border-bottom: none;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
@ -1828,14 +1820,35 @@
filter: alpha(opacity=60);
opacity: 0.6;
}
.openerp .oe-listview-content tbody {
.openerp .oe-listview-content > tbody {
cursor: pointer;
background: white;
}
.openerp .oe-listview-content tbody tr {
.openerp .oe-listview-content > tbody > tr {
border-top: 1px solid #dddddd;
}
.openerp .oe-listview-content tbody tr:nth-child(odd) {
.openerp .oe-listview-content > tbody > tr > td, .openerp .oe-listview-content > tbody > tr > th {
padding: 3px 6px;
line-height: 18px;
}
.openerp .oe-listview-content > tbody > tr > td > button, .openerp .oe-listview-content > tbody > tr > th > button {
border: none;
background: transparent;
padding: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
-box-shadow: none;
}
.openerp .oe-listview-content > tbody > tr > td.oe_list_checkbox:first-child, .openerp .oe-listview-content > tbody > tr th.oe_list_checkbox:first-child {
width: 17px;
}
.openerp .oe-listview-content > tbody > tr > td.oe_list_checkbox:first-child:after, .openerp .oe-listview-content > tbody > tr th.oe_list_checkbox:first-child:after {
border-width: 0;
}
.openerp .oe-listview-content > tbody > tr > td.oe-number {
text-align: right !important;
}
.openerp .oe-listview-content > tbody > tr:nth-child(odd) {
background-color: #f0f0fa;
background-color: #f0f0fa;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0f0fa), to(#eeeef6));
@ -1845,13 +1858,13 @@
background-image: -o-linear-gradient(top, #f0f0fa, #eeeef6);
background-image: linear-gradient(to bottom, #f0f0fa, #eeeef6);
}
.openerp .oe-listview-content tfoot {
.openerp .oe-listview-content > tfoot {
border-top: 2px solid #cacaca;
border-bottom: 1px solid #cacaca;
background: #eeeeee;
font-weight: bold;
}
.openerp .oe-listview-content tbody tr:hover td, .openerp .oe-listview-content tbody tr:hover th {
.openerp .oe-listview-content > tbody tr:hover td, .openerp .oe-listview-content tbody tr:hover th {
background-color: #eeeeee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#dedede));
background-image: -webkit-linear-gradient(top, #eeeeee, #dedede);
@ -1860,15 +1873,6 @@
background-image: -o-linear-gradient(top, #eeeeee, #dedede);
background-image: linear-gradient(to bottom, #eeeeee, #dedede);
}
.openerp .oe-listview-content td.oe_list_checkbox:first-child, .openerp .oe-listview-content th.oe_list_checkbox:first-child {
width: 17px;
}
.openerp .oe-listview-content td.oe_list_checkbox:first-child:after, .openerp .oe-listview-content th.oe_list_checkbox:first-child:after {
border-width: 0;
}
.openerp .oe-listview-content td.oe-number {
text-align: right !important;
}
.openerp .oe-listview-content .numeric {
text-align: right;
width: 82px;

View File

@ -1482,18 +1482,13 @@ $colour4: #8a89ba
// ListView {{{
.oe-listview-content
width: 100%
td, th
padding: 3px 6px
line-height: 18px
button
border: none
background: transparent
padding: 0
@include box-shadow(none)
thead
> thead
border-bottom: 2px solid #cacaca
background: #eee
vertical-align: top
td, th
padding: 3px 6px
line-height: 18px
th:after
content: ""
float: right
@ -1522,29 +1517,37 @@ $colour4: #8a89ba
// visibility: visible
// @include box-shadow(none)
// @include opacity(0.6)
tbody
> tbody
cursor: pointer
background: white
tr
> tr
border-top: 1px solid #ddd
tr:nth-child(odd)
> td, > th
padding: 3px 6px
line-height: 18px
> button
border: none
background: transparent
padding: 0
@include box-shadow(none)
> td.oe_list_checkbox:first-child, th.oe_list_checkbox:first-child
width: 17px
&:after
border-width: 0
> td.oe-number
text-align: right !important
> tr:nth-child(odd)
background-color: #f0f0fa
@include vertical-gradient(#f0f0fa, #eeeef6)
tfoot
> tfoot
border-top: 2px solid #cacaca
border-bottom: 1px solid #cacaca
background: #eee
font-weight: bold
tbody tr:hover td, tbody tr:hover th
> tbody tr:hover td, tbody tr:hover th
@include vertical-gradient(#eee, #dedede)
td.oe_list_checkbox:first-child, th.oe_list_checkbox:first-child
width: 17px
&:after
border-width: 0
td.oe-number
text-align: right !important
.numeric
text-align: right
width: 82px

View File

@ -98,7 +98,7 @@ instance.web.ViewEditor = instance.web.OldWidget.extend({
var view_widget = [{'name': 'view_name', 'string':'View Name', 'type': 'char', 'required': true, 'value' : this.model + '.custom_' + Math.round(Math.random() * 1000)},
{'name': 'view_type', 'string': 'View Type', 'type': 'selection', 'required': true, 'value': 'Form', 'selection': [['',''],['tree', 'Tree'],['form', 'Form'],['graph', 'Graph'],['calendar', 'Calender']]},
{'name': 'proirity', 'string': 'Priority', 'type': 'float', 'required': true, 'value':'16'}];
this.create_view_dialog.$element.append('<table id="create_view" style="width:400px" class="oe_forms"></table>');
this.create_view_dialog.$element.append('<table id="create_view" style="width:400px" class="oe_form"></table>');
this.create_view_widget = [];
_.each(view_widget, function(widget) {
var type_widget = new (self.property.get_any([widget.type])) (self.create_view_dialog, widget);
@ -877,7 +877,7 @@ instance.web.ViewEditor = instance.web.OldWidget.extend({
'fonts' : {'name':'fonts', 'string': 'fonts', 'type': 'char'},
};
var arch_val = self.get_object_by_id(this.one_object.clicked_tr_id,this.one_object['main_object'], []);
this.edit_node_dialog.$element.append('<table id="rec_table" style="width:400px" class="oe_forms"></table>');
this.edit_node_dialog.$element.append('<table id="rec_table" style="width:400px" class="oe_form"></table>');
this.edit_widget = [];
self.ready = $.when(self.on_groups(properties)).then(function () {
_PROPERTIES_ATTRIBUTES['groups']['selection'] = self.groups;
@ -963,7 +963,7 @@ instance.web.ViewEditor = instance.web.OldWidget.extend({
{text: _t("Cancel"), click: function() { self.add_node_dialog.close(); }}
]
}).open();
this.add_node_dialog.$element.append('<table id="rec_table" style="width:420px" class="oe_forms"><tbody><tr></tbody></table>');
this.add_node_dialog.$element.append('<table id="rec_table" style="width:420px" class="oe_form"><tbody><tr></tbody></table>');
var table_selector = self.add_node_dialog.$element.find('table[id=rec_table] tbody');
_.each(render_list, function(node) {
type_widget = new (self.property.get_any([node.type])) (self.add_node_dialog, node);

View File

@ -204,7 +204,7 @@ openerp.web.list_editable = function (instance) {
var $new_row = $('<tr>', {
id: _.uniqueId('oe-editable-row-'),
'data-id': record_id,
'class': row ? $(row).attr('class') : '' + ' oe_forms',
'class': (row ? $(row).attr('class') : '') + ' oe_form',
click: function (e) {e.stopPropagation();}
})
.delegate('button.oe-edit-row-save', 'click', function () {

View File

@ -125,7 +125,7 @@
<li><a href="#db_change_password">Password</a></li>
<li><a id="back_to_login" href="#">Back to Login</a></li>
</ul>
<form id="db_create" name="create_db_form" class="oe_forms" method="POST">
<form id="db_create" name="create_db_form" method="POST">
<table align="center" class="db_option_table">
<tr>
<th colspan="2" class="option_string"> CREATE DATABASE </th>
@ -165,7 +165,7 @@
</tr>
</table>
</form>
<form id="db_drop" name="drop_db_form" class="oe_forms" method="POST">
<form id="db_drop" name="drop_db_form" method="POST">
<table align="center" class="db_option_table">
<tr>
<th colspan="2" class="option_string"> DROP DATABASE </th>
@ -190,7 +190,7 @@
</tr>
</table>
</form>
<form id="db_backup" name="backup_db_form" class="oe_forms" method="POST" target="backup-target" action="/web/database/backup">
<form id="db_backup" name="backup_db_form" method="POST" target="backup-target" action="/web/database/backup">
<input type="hidden" name="token"/>
<table align="center" class="db_option_table">
<tr>
@ -216,7 +216,7 @@
</tr>
</table>
</form>
<form id="db_restore" name="restore_db_form" class="oe_forms" method="POST">
<form id="db_restore" name="restore_db_form" method="POST">
<table align="center" class="db_option_table">
<tr>
<th colspan="2" class="option_string"> RESTORE DATABASE </th>
@ -238,7 +238,7 @@
</tr>
</table>
</form>
<form id="db_change_password" name="change_pwd_form" class="oe_forms" method="POST">
<form id="db_change_password" name="change_pwd_form" method="POST">
<table align="center" class="db_option_table">
<tr>
<th colspan="2" class="option_string"> CHANGE MASTER PASSWORD </th>
@ -374,7 +374,7 @@
</div>
</t>
<t t-name="UserMenu.password">
<form name="change_password_form" class="oe_forms" method="POST">
<form name="change_password_form" method="POST">
<table align="center">
<tr>
<td><label for="old_pwd">Old Password:</label></td>
@ -723,7 +723,7 @@
</t>
</div>
</t>
<form t-name="FormView.set_default" class="oe_forms oe_frame">
<form t-name="FormView.set_default">
<t t-set="args" t-value="widget.dialog_options.args"/>
<table style="width: 100%">
<tr>
@ -1040,7 +1040,7 @@
</t>
</t>
<t t-name="FieldReference">
<table class="oe_form_field_reference oe_frame oe_forms" border="0" cellpadding="0" cellspacing="0">
<table class="oe_form_field_reference oe_form" border="0" cellpadding="0" cellspacing="0">
<tr>
<td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection">
</td>
@ -1314,7 +1314,7 @@
</div>
</t>
<t t-name="SearchView.add_to_dashboard">
<div class="oe_forms">
<div class="oe_form">
<p><b>Select Dashboard to add this filter to:</b></p>
<select style="width: 100%; margin-right: 1em;">
<option t-foreach="dashboards" t-as="menu" t-att-value="menu.id" t-att-selected="(menu.id == selected_menu_id) || undefined"><t t-esc="menu.name"/></option>