diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-09-25 11:37:19 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-09-25 16:06:21 +0200 |
| commit | 743f26a7968b1a876cf1b28d30305d811dd63ebe (patch) | |
| tree | f86436d3888f9ce3dc31378f3f7e7162748a1263 /addons/web_editor/static/src/css/editor.sass | |
| parent | 7ffd1954e430cb50562bbc61caac4a3d4df3e601 (diff) | |
[FIX] web_editor: display editable area placeholder
Diffstat (limited to 'addons/web_editor/static/src/css/editor.sass')
| -rw-r--r-- | addons/web_editor/static/src/css/editor.sass | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/addons/web_editor/static/src/css/editor.sass b/addons/web_editor/static/src/css/editor.sass index 094ecc6bc32..420ec01fe1e 100644 --- a/addons/web_editor/static/src/css/editor.sass +++ b/addons/web_editor/static/src/css/editor.sass @@ -915,8 +915,16 @@ html[data-translatable] .oe_field_translate display: block !important .media_iframe_video .css_editable_mode_display display: block !important - -.oe_empty[data-oe-placeholder]:empty + + [placeholder]:empty + content: " \00a0 " attr(placeholder) + [placeholder]:empty:active:after, [placeholder]:empty:focus:after + content: none + input, textarea, select + &[placeholder]:empty + content: none + +.oe_empty[placeholder]:empty min-height: 220px !important background-repeat: no-repeat background-position: center @@ -934,7 +942,6 @@ html[data-translatable] .oe_field_translate text-align: center padding-top: 160px display: block - content: " \00a0 " attr(data-oe-placeholder) font-size: 24px &.o_no_placeholder_image @@ -945,7 +952,7 @@ html[data-translatable] .oe_field_translate &[data-oe-type=html] &:after font-size: 16px -.editor_has_snippets .oe_empty[data-oe-placeholder]:empty +.editor_has_snippets .oe_empty[placeholder]:empty background-image: url('/web_editor/static/src/img/drag_here.png') !important #web_editor-top-edit |
