From 9530af25d4c6916dec04e3122ac770d854e0ffed Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Wed, 9 Sep 2020 08:05:41 +0000 Subject: [PATCH] [FIX] web_editor: fix remove btn z-index in media dialog Add a z-index on remove btn in media dialog because before that the button was hidden behind images. Also review a little bit the style of the button. task-2312878 closes odoo/odoo#58839 X-original-commit: 4a8239c86e3fdf2830bd4f52d2424fe0f83d4639 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/wysiwyg.scss | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 332e725ae60..79818d4ae2e 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -250,14 +250,10 @@ body .modal { margin: 1px; .o_existing_attachment_optimize, .o_existing_attachment_remove { - background-color: scale-color($card-border-color, $alpha: -50%); - text-shadow: 0 0 1px white; + background-color: rgba(white, 0.4); opacity: 0; cursor: pointer; - - &:hover { - background-color: $card-border-color; - } + transition: color 0.2s ease; } .o_existing_attachment_optimize { @@ -267,6 +263,7 @@ body .modal { .o_existing_attachment_remove { @include o-position-absolute($top: 0, $right: 0); + z-index: 1; border-radius: 0 0 0 2px; &:hover { color: $o-we-color-danger;