summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/css/editor.sass
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-08-12 15:52:13 +0200
committerAntony Lesuisse <al@openerp.com>2015-08-21 22:06:52 +0200
commit41e730cbfa8321308a088f30b78a5b4673f87125 (patch)
tree791aceb526b273a6991f3f427be586a4e2166590 /addons/web_editor/static/src/css/editor.sass
parent00adbd36ff1fc9a6eaa86d206d0f340285f21aac (diff)
[IMP] web_editor: add document into the media editor
User can upload documents and add the link in the page to download it.
Diffstat (limited to 'addons/web_editor/static/src/css/editor.sass')
-rw-r--r--addons/web_editor/static/src/css/editor.sass20
1 files changed, 17 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/css/editor.sass b/addons/web_editor/static/src/css/editor.sass
index da05b02145e..d14601ce8d8 100644
--- a/addons/web_editor/static/src/css/editor.sass
+++ b/addons/web_editor/static/src/css/editor.sass
@@ -601,13 +601,27 @@ $attachment-border-color: #848490
.existing-attachment-cell
position: relative
- .img
+ .o_attachment_border
border: 1px solid $attachment-border-color
+ text-align: center
+ .o_image
+ max-width: 100%
+ padding-top: 80%
+ max-height: 100%
+ display: inline-block
+ img
+ width: 100%
+ .o_webimage
+ background-image: none
+ padding-top: 0
+ width: 100%
+ height: initial
+ vertical-align: middle
.existing-attachment-remove
position: absolute
top: 0
left: 15px // padding-left on col-*
-
+ z-index: 1
cursor: pointer
background: white
padding: 2px
@@ -616,7 +630,7 @@ $attachment-border-color: #848490
border-left: none
+border-bottom-right-radius(8px)
&.media_selected
- > i, > img
+ > *
border-width: 5px
border-color: rgb(0, 248, 248)