diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-01-14 15:27:22 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-01-16 16:38:09 +0100 |
| commit | 9dafe51f4722dbe83e2ab689d1aa74af05bd4f68 (patch) | |
| tree | aa5f8718d7e7bba903e2c7f20268f1a3c3088223 /addons/website/static/src/css/editor.sass | |
| parent | db9b7bc8256b17ea1adda3b832d7654abccc00df (diff) | |
[FIX] website editor: can't select and edit an empty field html or text
Diffstat (limited to 'addons/website/static/src/css/editor.sass')
| -rw-r--r-- | addons/website/static/src/css/editor.sass | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 8465df4a6e9..73b04009833 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -62,10 +62,19 @@ .arrow display: none -.o_editable[data-oe-model][data-oe-type]:hover - -moz-box-shadow: 0 0 10px 3px rgba(94, 255, 0, 0.8) - -webkit-box-shadow: 0 0 10px 3px rgba(94, 255, 0, 0.8) - box-shadow: 0 0 10px 3px rgba(94, 255, 0, 0.8) +.o_editable + &:not(:empty),&[data-oe-type] + &:not(:focus):hover + -moz-box-shadow: rgba(94, 255, 0, 0.8) 0 0 5px 2px inset + -webkit-box-shadow: rgba(94, 255, 0, 0.8) 0 0 5px 2px inset + box-shadow: rgba(94, 255, 0, 0.8) 0 0 5px 2px inset + &:focus,&[data-oe-type] + min-height: 0.8em + min-width: 8px + &.o_is_inline_editable + display: inline-block +.editor_enable [data-oe-readonly]:hover + cursor: default // }}} @@ -133,7 +142,7 @@ .o_editable .css_editable_mode_hidden display: none -.o_editable .css_non_editable_mode_hidden +.editor_enable .css_non_editable_mode_hidden display: block !important .o_editable .media_iframe_video .css_editable_mode_display |
