[IMP] sass form cleanups

bzr revid: al@openerp.com-20120619132358-25it8p6mt79kf5bf
This commit is contained in:
Antony Lesuisse 2012-06-19 15:23:58 +02:00
parent 18d9ddb042
commit f0f74adfef
3 changed files with 67 additions and 95 deletions

View File

@ -107,7 +107,7 @@
display: inline-block;
border: 1px solid #ababab;
color: #404040;
margin: 0 4px 0 0;
margin: 0;
padding: 3px 12px;
font-size: 13px;
text-align: center;
@ -1603,18 +1603,6 @@
max-width: 700px;
font-size: 125%;
}
.openerp .oe_view_topbar {
border-bottom: 1px solid #cacaca;
background-color: #fcfcfc;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede));
background-image: -webkit-linear-gradient(top, #fcfcfc, #dedede);
background-image: -moz-linear-gradient(top, #fcfcfc, #dedede);
background-image: -ms-linear-gradient(top, #fcfcfc, #dedede);
background-image: -o-linear-gradient(top, #fcfcfc, #dedede);
background-image: linear-gradient(to bottom, #fcfcfc, #dedede);
padding: 0 8px;
line-height: 30px;
}
.openerp .oe_form_dropdown_section {
position: relative;
display: inline-block;
@ -1622,9 +1610,6 @@
.openerp .oe_formview {
background: white;
}
.openerp .oe_form_header {
padding: 8px;
}
.openerp .oe_form_invalid input, .openerp .oe_form_invalid select, .openerp .oe_form_invalid textarea {
background-color: #ff6666 !important;
border: 1px solid #dd0000 !important;
@ -1706,6 +1691,29 @@
font-weight: bold;
color: #b33630;
}
.openerp .oe_form_subtotal_footer {
width: auto;
float: right;
}
.openerp .oe_form_subtotal_footer td.oe_form_group_cell {
text-align: right;
padding: 0;
}
.openerp .oe_form_subtotal_footer td.oe_form_group_cell_label {
border: none;
}
.openerp .oe_form_subtotal_footer .oe_form_field {
width: auto !important;
}
.openerp .oe_form_subtotal_footer .oe_form_subtotal_footer_separator {
border-top: 1px solid #cacaca;
font-size: 120%;
font-weight: bold;
}
.openerp .oe_form_subtotal_footer label.oe_form_subtotal_footer_separator {
font-weight: bold !important;
padding: 2px 8px 2px 0px !important;
}
.openerp .oe_application .oe_form_sheetbg {
background: url(/web/static/src/img/form_sheetbg.png);
padding: 8px 0;
@ -1725,29 +1733,6 @@
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.openerp .oe_form .oe_form_subtotal_footer {
width: auto;
float: right;
}
.openerp .oe_form .oe_form_subtotal_footer td.oe_form_group_cell {
text-align: right;
padding: 0;
}
.openerp .oe_form .oe_form_subtotal_footer td.oe_form_group_cell_label {
border: none;
}
.openerp .oe_form .oe_form_subtotal_footer .oe_form_field {
width: auto !important;
}
.openerp .oe_form .oe_form_subtotal_footer .oe_form_subtotal_footer_separator {
border-top: 1px solid #cacaca;
font-size: 120%;
font-weight: bold;
}
.openerp .oe_form .oe_form_subtotal_footer label.oe_form_subtotal_footer_separator {
font-weight: bold !important;
padding: 2px 8px 2px 0px !important;
}
.openerp .oe_form_invisible {
display: none !important;
}
@ -1814,9 +1799,6 @@
top: -4px;
padding: 0 2px;
}
.openerp .oe_form .oe_form_field_text textarea {
resize: none;
}
.openerp .oe_form .oe_form_field {
width: 100%;
display: inline-block;
@ -2040,11 +2022,11 @@
border-left: 1px solid #666666;
padding: 0 4px 0 4px;
}
.openerp .oe_form .oe_form_field_progressbar {
.openerp .oe_form_field_progressbar {
display: inline-block;
min-width: 70px;
}
.openerp .oe_form .oe_form_field_progressbar.ui-progressbar {
.openerp .oe_form_field_progressbar.ui-progressbar {
height: 22px;
font-size: 10px;
-webkit-box-sizing: border-box;
@ -2058,12 +2040,12 @@
background: white;
min-width: 50px;
}
.openerp .oe_form .oe_form_field_progressbar.ui-progressbar span {
.openerp .oe_form_field_progressbar.ui-progressbar span {
position: absolute;
margin-left: 10px;
font-weight: bold;
}
.openerp .oe_form .oe_form_field_progressbar.ui-progressbar .ui-widget-header {
.openerp .oe_form_field_progressbar.ui-progressbar .ui-widget-header {
background: #cccccc url(/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;
}
.openerp .oe_form .oe_form_field_one2many > .oe_view_manager .oe_list_pager_single_page {

View File

@ -148,7 +148,7 @@ $colour4: #8a89ba
display: inline-block
border: 1px solid #ababab
color: #404040
margin: 0 4px 0 0
margin: 0
padding: 3px 12px
font-size: 13px
text-align: center
@ -1281,11 +1281,6 @@ $colour4: #8a89ba
padding: 35px 0px 0px 0px
max-width: 700px
font-size: 125%
.oe_view_topbar
border-bottom: 1px solid #cacaca
@include vertical-gradient(#fcfcfc, #dedede)
padding: 0 8px
line-height: 30px
// }}}
// FormView.body {{{
.oe_form_dropdown_section
@ -1293,8 +1288,6 @@ $colour4: #8a89ba
display: inline-block
.oe_formview
background: white
.oe_form_header
padding: 8px
.oe_form_invalid
input, select, textarea
background-color: #F66 !important
@ -1352,6 +1345,24 @@ $colour4: #8a89ba
.oe_form_steps_active
font-weight: bold
color: #b33630
.oe_form_subtotal_footer
width: auto
float: right
td.oe_form_group_cell
text-align: right
padding: 0
td.oe_form_group_cell_label
border: none
.oe_form_field
width: auto !important
.oe_form_subtotal_footer_separator
border-top: 1px solid #cacaca
font-size: 120%
font-weight: bold
label.oe_form_subtotal_footer_separator
font-weight: bold !important
padding: 2px 8px 2px 0px !important
// no sheet in popups
.oe_application
.oe_form_sheetbg
background: url(/web/static/src/img/form_sheetbg.png)
@ -1367,24 +1378,6 @@ $colour4: #8a89ba
padding: 16px
border: 1px solid #afafb6
@include box-shadow(0 0 10px rgba(0,0,0,0.3))
.oe_form
.oe_form_subtotal_footer
width: auto
float: right
td.oe_form_group_cell
text-align: right
padding: 0
td.oe_form_group_cell_label
border: none
.oe_form_field
width: auto !important
.oe_form_subtotal_footer_separator
border-top: 1px solid #cacaca
font-size: 120%
font-weight: bold
label.oe_form_subtotal_footer_separator
font-weight: bold !important
padding: 2px 8px 2px 0px !important
// }}}
// FormView.layout {{{
.oe_form_invisible
@ -1577,7 +1570,7 @@ $colour4: #8a89ba
.oe_form_group
margin: 5px 0px 5px 0px
// }}}
// FormView.binaryfile {{{
// FormView.fields_binary {{{
/* http://www.quirksmode.org/dom/inputfile.html
* http://stackoverflow.com/questions/2855589/replace-input-type-file-by-an-image
*/
@ -1636,26 +1629,23 @@ $colour4: #8a89ba
padding: 0 4px 0 4px
// }}}
// FormView.progressbar {{{
.oe_form
.oe_form_field_progressbar
display: inline-block
min-width: 70px
.oe_form_field_progressbar.ui-progressbar
height: 22px
font-size: 10px
@include box-sizing(border)
border: 1px solid #999
@include radius(3px)
background: white
min-width: 50px
span
position: absolute
margin-left: 10px
font-weight: bold
.ui-widget-header
background: #cccccc url(/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x
.oe_form_field_progressbar
display: inline-block
min-width: 70px
.oe_form_field_progressbar.ui-progressbar
height: 22px
font-size: 10px
@include box-sizing(border)
border: 1px solid #999
@include radius(3px)
background: white
min-width: 50px
span
position: absolute
margin-left: 10px
font-weight: bold
.ui-widget-header
background: #cccccc url(/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x
// }}}
// FormView.one2many {{{
.oe_form .oe_form_field_one2many > .oe_view_manager

View File

@ -979,7 +979,7 @@
</t>
</t>
<t t-name="FieldReference">
<table class="oe_form_field oe_form_field_reference oe_form" border="0" cellpadding="0" cellspacing="0">
<table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0">
<tr>
<td t-attf-class="oe_form_frame_cell oe_form_selection">
<span t-attf-class="oe_form_view_reference_selection"/>
@ -1250,7 +1250,7 @@
</div>
</t>
<t t-name="SearchView.add_to_dashboard">
<div class="oe_form">
<div>
<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>