summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-06-13 12:05:16 +0200
committerFabien Meghazi <fme@openerp.com>2012-06-13 12:05:16 +0200
commit1ce9ec0718fa6f8ce32dec753ccb5711c18da737 (patch)
treec96ab93457a6cb4b4304780f593cbd7b025975c0 /addons/web/static/src/css
parent940cf37e4f5be5bef535a9eb9b5aa147bce92654 (diff)
[IMP] Improved hidden file uploads usage
bzr revid: fme@openerp.com-20120613100516-1opf05g81icwuwbr
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css4
-rw-r--r--addons/web/static/src/css/base.sass14
2 files changed, 9 insertions, 9 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 0ccaf77c809..eaba96e771a 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -1875,14 +1875,14 @@
vertical-align: -3px;
padding: 0 2px;
}
-.openerp .oe_form .oe-binary-file-set {
+.openerp .oe_hidden_input_file {
overflow: hidden;
position: relative;
display: inline-block;
width: 45px;
height: 30px;
}
-.openerp .oe_form input.oe-binary-file {
+.openerp .oe_hidden_input_file input.oe-binary-file {
z-index: 0;
line-height: 0;
font-size: 12px;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index e6e48089733..00fbbb80c58 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -1508,13 +1508,12 @@ $colour4: #8a89ba
/* http://www.quirksmode.org/dom/inputfile.html
* http://stackoverflow.com/questions/2855589/replace-input-type-file-by-an-image
*/
- .oe_form
- .oe-binary-file-set
- overflow: hidden
- position: relative
- display: inline-block
- width: 45px
- height: 30px
+ .oe_hidden_input_file
+ overflow: hidden
+ position: relative
+ display: inline-block
+ width: 45px
+ height: 30px
input.oe-binary-file
z-index: 0
line-height: 0
@@ -1528,6 +1527,7 @@ $colour4: #8a89ba
-ms-filter: "alpha(opacity=0)"
margin: 0
padding: 0
+ .oe_form
.oe_form_field_image
> img
min-width: 100px