summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-06-19 15:23:58 +0200
committerAntony Lesuisse <al@openerp.com>2012-06-19 15:23:58 +0200
commitf0f74adfef677f65c6802980533b0959a16b906b (patch)
tree405c537c2e15a3cff14c87af8484451d3a433693 /addons/web/static/src/css
parent18d9ddb042d04117fb6d2fc868f24eb55a5839df (diff)
[IMP] sass form cleanups
bzr revid: al@openerp.com-20120619132358-25it8p6mt79kf5bf
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css74
-rw-r--r--addons/web/static/src/css/base.sass84
2 files changed, 65 insertions, 93 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index d55b320b969..f1211d2167c 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -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 {
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 341755cbcb2..89f149b378b 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -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