diff options
| author | Krupa Patel <kup@odoo.com> | 2020-08-05 11:19:26 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-12-29 09:40:26 +0000 |
| commit | 90585878cfd68ab258eb38c2c7622a5e88d6396a (patch) | |
| tree | 306d705f8f01821d06ac7b28a05bb2286e3ed353 /addons/website/static/src | |
| parent | 45e6309aa1d79d06c7110c86205781874ab44e30 (diff) | |
[FIX] website: fix edit mode shadow effect on images
Fix box-shadow effect to fit perfectly on the product shop grid layout
and product carousel.
task-2206930
closes odoo/odoo#63514
X-original-commit: bc49bef467b4650a61d21ea09a17bb1eb520a1c9
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/scss/website.edit_mode.scss | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/addons/website/static/src/scss/website.edit_mode.scss b/addons/website/static/src/scss/website.edit_mode.scss index 1b659a2bb4c..33d7e7edd8b 100644 --- a/addons/website/static/src/scss/website.edit_mode.scss +++ b/addons/website/static/src/scss/website.edit_mode.scss @@ -29,10 +29,21 @@ $-editor-messages-margin-x: 2%; .o_editable { &:not(:empty), &[data-oe-type] { - &:not([data-oe-model="ir.ui.view"]):not([data-oe-type="html"]):not(.o_editable_no_shadow):hover, + &:not([data-oe-model="ir.ui.view"]):not([data-oe-type="html"]):not(.o_editable_no_shadow):not([data-oe-type="image"]):hover, &.o_editable_date_field_linked { box-shadow: $o-brand-odoo 0 0 5px 2px inset; } + &[data-oe-type="image"]:not(.o_editable_no_shadow):hover { + position: relative; + + &:after { + content: ""; + pointer-events: none; + @include o-position-absolute(0, 0, 0, 0); + z-index: 1; + box-shadow: $o-brand-odoo 0 0 5px 2px inset; + } + } } &:focus, &[data-oe-type] { min-height: 0.8em; |
