summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css/base.sass
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-08-21 10:13:23 +0200
committerAntony Lesuisse <al@openerp.com>2015-08-21 22:06:52 +0200
commitd4bae06d081798e35529c2323b66ec5467545cdb (patch)
treebf481d1bce45f6aba21c809bd3264433ff09d284 /addons/web/static/src/css/base.sass
parent6baf611df1064a3ae5f6368d3a35b3c3d7779543 (diff)
[IMP] web: use css to display attachment mimetype
Widgets and website display images or display the type with icon like pdf, doc...
Diffstat (limited to 'addons/web/static/src/css/base.sass')
-rw-r--r--addons/web/static/src/css/base.sass21
1 files changed, 18 insertions, 3 deletions
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 5b48b1dc8b4..64a73b8addd 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -1650,14 +1650,29 @@ $sheet-padding: 16px
border-radius: 2px
border: solid 1px rgba(124,123,173,0.14)
.oe_attachment
+ background-repeat: no-repeat
+ word-wrap: break-word
padding: 2px
padding-left: 4px
padding-right: 4px
- .fa
+ overflow: hidden
+ a
+ display: block
+ background-repeat: no-repeat
+ background-size: contain
+ word-wrap: break-word
+ width: 100px
+ height: 80px
+ > .fa
font-size: 23px
- margin-top: -5px
- .fa:hover
+ position: absolute
+ top: -5px
+ right: -8px
+ > .fa:hover
text-decoration: none
+ .fa-inverse
+ font-size: 1.15em
+ margin-top: 1px
.oe_attachment:nth-child(odd)
background: white
.oe_attachment:nth-child(even)