diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 1e8367268fb..95159542d78 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -1811,22 +1811,21 @@ body.editor_enable.editor_has_snippets { @include o-position-absolute($o-we-handles-offset-to-hide, $left: 50%); transform: translate(-50%, -110%); - &, > .o_overlay_move_options { + &, > .o_overlay_move_options, .o_overlay_edit_options { display: flex; } - > .o_overlay_move_options { - > *, + * { + > .o_overlay_move_options, .o_overlay_edit_options { + > * { @extend %we-generic-button; margin: 0 1px 0; min-width: 22px; padding: 0 $o-we-sidebar-content-field-button-group-button-spacing * .5; color: $o-we-fg-lighter; + &.oe_snippet_remove { + background-color: mix($o-we-color-danger, $o-we-sidebar-content-field-clickable-bg); + } } } - > .oe_snippet_remove { - margin-left: $o-we-sidebar-content-field-button-group-button-spacing; - background-color: mix($o-we-color-danger, $o-we-sidebar-content-field-clickable-bg);; - } > .o_overlay_move_options > .o_move_handle { cursor: move; width: 30px; @@ -1836,8 +1835,8 @@ body.editor_enable.editor_has_snippets { background-repeat: no-repeat; } &:hover { - > .o_overlay_move_options { - > *, + * { + > .o_overlay_move_options, .o_overlay_edit_options { + > * { @include o-hover-opacity(.6); &:hover { @@ -1846,10 +1845,6 @@ body.editor_enable.editor_has_snippets { } } } - > .oe_snippet_remove:hover { - border-color: mix($o-we-color-danger, $o-we-sidebar-content-field-pressed-bg, .4); - background-color: $o-we-color-danger; - } } } } diff --git a/addons/web_editor/static/src/xml/snippets.xml b/addons/web_editor/static/src/xml/snippets.xml index 0c0319c8561..62308dee4e5 100644 --- a/addons/web_editor/static/src/xml/snippets.xml +++ b/addons/web_editor/static/src/xml/snippets.xml @@ -15,7 +15,9 @@
-