Skip to content

Commit

Permalink
[FIX] website_sale: fix shadow effect on the product
Browse files Browse the repository at this point in the history
fixed box-shadow effect to fit perfectly on the product shop grid layout
and product carousel

task-2206930
Closes #47789

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
  • Loading branch information
kup-odoo committed Aug 5, 2020
1 parent d1caa5c commit bc49bef
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion addons/website/static/src/scss/website.edit_mode.scss
Expand Up @@ -20,10 +20,25 @@ $-editor-messages-margin-x: 2%;

.o_editable {
&:not(:empty), &[data-oe-type] {
&:not([data-oe-model="ir.ui.view"]):not([data-oe-type="html"]):hover,
&:not([data-oe-model="ir.ui.view"]):not([data-oe-type="html"]):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"]:hover {
position: relative;

&:after {
content: "";
pointer-events: none;
position: absolute;
z-index: 1;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
box-shadow: $o-brand-odoo 0 0 5px 2px inset;
}
}
}
&:focus, &[data-oe-type] {
min-height: 0.8em;
Expand Down

0 comments on commit bc49bef

Please sign in to comment.