diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index a30feca9fba..5e8ed4f6c43 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -140,15 +140,6 @@ table.editorbar-panel td.selected { } /* ---- SNIPPET EDITOR ---- */ -#oe_droperror .modal-header { - border-bottom: 0; -} -#oe_droperror .modal-footer { - border-top: 0; - margin: 0; - padding: 0; -} - #oe_snippets { position: fixed; left: 0px; @@ -282,15 +273,21 @@ table.editorbar-panel td.selected { border-radius: 3px; } -.oe_drop_zone { +.oe_drop_zone, .oe_drop_zone_style { background: rgba(153, 0, 255, 0.17); border-radius: 3px; } -.oe_drop_zone.oe_hover { +.oe_drop_zone.oe_hover, .oe_drop_zone_style.oe_hover { background: rgba(0, 255, 133, 0.22); z-index: 1001; } +.oe_drop_zone_style { + color: white; + height: 48px; + margin-bottom: 32px; +} + /* ---- SNIPPET MANIPULATOR ---- */ .oe_overlay { display: block; diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 974e3cdef9e..565cb38d038 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -129,14 +129,6 @@ table.editorbar-panel /* ---- SNIPPET EDITOR ---- */ -#oe_droperror - .modal-header - border-bottom: 0 - .modal-footer - border-top: 0 - margin: 0 - padding: 0 - #oe_snippets position: fixed left: 0px @@ -253,13 +245,18 @@ table.editorbar-panel background: rgba(153, 0, 255, 0.17) border-radius: 3px -.oe_drop_zone +.oe_drop_zone, .oe_drop_zone_style background: rgba(153, 0, 255, 0.17) border-radius: 3px &.oe_hover background: rgba(0, 255, 133, 0.22) z-index: 1001 +.oe_drop_zone_style + color: white + height: 48px + margin-bottom: 32px + /* ---- SNIPPET MANIPULATOR ---- */ .oe_overlay diff --git a/addons/website/static/src/js/website.snippets.js b/addons/website/static/src/js/website.snippets.js index 9e45a3b85ce..8ebeda9440a 100644 --- a/addons/website/static/src/js/website.snippets.js +++ b/addons/website/static/src/js/website.snippets.js @@ -387,11 +387,6 @@ $('.oe_drop_zone').droppable('destroy').remove(); if (!dropped) { self.$modal.modal('toggle'); - setTimeout(function () { - self.$modal.fadeOut(function () { - self.$modal.modal('hide'); - }); - }, 3000); } }, }); diff --git a/addons/website/static/src/xml/website.snippets.xml b/addons/website/static/src/xml/website.snippets.xml index 415cdb6c74d..87bf0390d26 100644 --- a/addons/website/static/src/xml/website.snippets.xml +++ b/addons/website/static/src/xml/website.snippets.xml @@ -16,17 +16,38 @@ -