summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-09-09 08:05:41 +0000
committerqsm-odoo <qsm@odoo.com>2020-09-29 12:54:22 +0000
commit4a8239c86e3fdf2830bd4f52d2424fe0f83d4639 (patch)
tree0775599e30e9bdc240ca7cf3bf7b6eba7b93e381 /addons/web_editor/static/src
parent07ef748c542cb20fdab4f0d9c02a87fb07bede3c (diff)
[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#58815 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg.scss9
1 files 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;