diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index c7f3af43022..e53b9bc92ab 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -1002,3 +1002,25 @@ section, .oe_img_bg, [data-oe-shape-data] { } } } + +// Autocomplete dropdowns +.ui-autocomplete { + max-height: 50vh; + overflow-y: auto; + overflow-x: hidden; + + .ui-menu-item { + padding: 0; + > .ui-state-active { + border: none; + font-weight: normal; + margin: 0; + } + } + .fw-bold { + // Needed because the font-family is not "system fonts everywhere" as + // elements around it. TODO: use "system fonts everywhere" for + // the 'ui-autocomplete' and remove this line. + font-weight: 700 !important; + } +} diff --git a/addons/web_editor/static/src/scss/web_editor.frontend.scss b/addons/web_editor/static/src/scss/web_editor.frontend.scss index c1ec4ed7908..6470da92f9a 100644 --- a/addons/web_editor/static/src/scss/web_editor.frontend.scss +++ b/addons/web_editor/static/src/scss/web_editor.frontend.scss @@ -15,20 +15,6 @@ transform: translate(-50%, -50%) } -.ui-autocomplete { - max-height: 50vh; - overflow-y: auto; - overflow-x: hidden; - - .ui-menu-item { - padding: 0; - > .ui-state-active { - border: none; - font-weight: normal; - margin: 0; - } - } -} @include media-breakpoint-down(md) { .o_we_shape { display: none; diff --git a/addons/website/static/src/components/dialog/edit_menu.scss b/addons/website/static/src/components/dialog/edit_menu.scss deleted file mode 100644 index 3af9717484f..00000000000 --- a/addons/website/static/src/components/dialog/edit_menu.scss +++ /dev/null @@ -1,16 +0,0 @@ -.ui-autocomplete.o_edit_menu_autocomplete { - max-height: 50vh; - overflow-y: auto; - overflow-x: hidden; - .ui-menu-item { - padding: 0; - > .ui-state-active { - border: none; - font-weight: normal; - margin: 0; - } - } - .fw-bold { - font-weight: 700 !important; - } -}