summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/css
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
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')
-rw-r--r--addons/web_editor/static/src/css/editor.css24
-rw-r--r--addons/web_editor/static/src/css/editor.sass20
2 files changed, 38 insertions, 6 deletions
diff --git a/addons/web_editor/static/src/css/editor.css b/addons/web_editor/static/src/css/editor.css
index be264550f0f..6c01eca42d3 100644
--- a/addons/web_editor/static/src/css/editor.css
+++ b/addons/web_editor/static/src/css/editor.css
@@ -694,13 +694,31 @@
.note-image-dialog .existing-attachments .existing-attachment-cell {
position: relative;
}
-.note-image-dialog .existing-attachments .existing-attachment-cell .img {
+.note-image-dialog .existing-attachments .existing-attachment-cell .o_attachment_border {
border: 1px solid #848490;
+ text-align: center;
+}
+.note-image-dialog .existing-attachments .existing-attachment-cell .o_image {
+ max-width: 100%;
+ padding-top: 80%;
+ max-height: 100%;
+ display: inline-block;
+}
+.note-image-dialog .existing-attachments .existing-attachment-cell .o_image img {
+ width: 100%;
+}
+.note-image-dialog .existing-attachments .existing-attachment-cell .o_webimage {
+ background-image: none;
+ padding-top: 0;
+ width: 100%;
+ height: initial;
+ vertical-align: middle;
}
.note-image-dialog .existing-attachments .existing-attachment-cell .existing-attachment-remove {
position: absolute;
top: 0;
left: 15px;
+ z-index: 1;
cursor: pointer;
background: white;
padding: 2px;
@@ -711,7 +729,7 @@
-webkit-border-bottom-right-radius: 8px;
border-bottom-right-radius: 8px;
}
-.note-image-dialog .existing-attachments .existing-attachment-cell.media_selected > i, .note-image-dialog .existing-attachments .existing-attachment-cell.media_selected > img {
+.note-image-dialog .existing-attachments .existing-attachment-cell.media_selected > * {
border-width: 5px;
border-color: #00f8f8;
}
@@ -1018,7 +1036,7 @@ html[lang] > body.editor_enable [data-oe-translation-state]:hover {
cursor: text;
}
html[lang] > body.editor_enable [data-oe-translation-state="translated"] {
- background: rgba(120, 215, 110, 0.5) !important
+ background: rgba(120, 215, 110, 0.5) !important;
}
html[data-translatable] .oe_field_translate {
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)