diff --git a/addons/mail/static/src/webclient/commands/mail_providers.js b/addons/mail/static/src/webclient/commands/mail_providers.js index da3a67b9b79..c446d9a5886 100644 --- a/addons/mail/static/src/webclient/commands/mail_providers.js +++ b/addons/mail/static/src/webclient/commands/mail_providers.js @@ -7,9 +7,9 @@ const { Component, xml } = owl; class DialogCommand extends Component {} DialogCommand.template = xml` -
+
- +
`; diff --git a/addons/web/static/src/core/commands/command_items.xml b/addons/web/static/src/core/commands/command_items.xml index 498dadd26df..4ad61dc8de6 100644 --- a/addons/web/static/src/core/commands/command_items.xml +++ b/addons/web/static/src/core/commands/command_items.xml @@ -2,17 +2,17 @@ -
+
-
+
- + + diff --git a/addons/web/static/src/core/commands/command_palette.scss b/addons/web/static/src/core/commands/command_palette.scss index 99cedb1b5d2..b0b7e413984 100644 --- a/addons/web/static/src/core/commands/command_palette.scss +++ b/addons/web/static/src/core/commands/command_palette.scss @@ -1,141 +1,22 @@ .o_command_palette { - margin-top: 10vh; - - &.modal-content { - border: none; - border-radius: 3px !important; - overflow: hidden; - } - - > .modal-body { - padding: 0; - overflow: hidden; - } - - &_search { - display: flex; - align-items: center; - justify-content: space-between; - background-color: white; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); - padding: 0.8rem 1em; - font-size: 1.5rem; - - .fa-search { - color:#C7C7C7; + $-app-icon-size: 1.8rem; + + > .modal-body { + padding: 0; } - .o_namespace { - line-height: 1.8em; - min-width: 1em; - text-align: center; - } + &_listbox { + max-height: 50vh; - input { - border: none; - padding: 0; - line-height: 1.8em; - } - } - - &_listbox { - max-height: 50vh; - overflow-y: auto; - position: relative; - scrollbar-width: none; - -ms-overflow-style: none; - - &::-webkit-scrollbar { - display: none; - } - - &_empty { - padding: 1rem 1.3em; - line-height: 1.8em; - font-style: italic; - } - - .o_command_category { - padding: 0.5rem 0; - } - - hr { - margin: 0; - } - - .o_command { - position: relative; - line-height: 1.8em; - height: 2.8em; - - &.focused { - background: rgba($o-brand-primary, 0.15); - } - - &_default, &_hotkey { - background-color: inherit; - padding: 0.5rem 1.3em; - display: flex; - align-items: center; - justify-content: space-between; - } - - &_hotkey { - kbd { - background-color: #f4f7f8; - border-radius: 3px; - border: 1px solid #e5e5e5; - $shadowvalue: 0px 1px 1px rgba(0, 0, 0, 0.2), - inset 0px -1px 1px 1px rgba(230, 230, 230, 0.8), - inset 0px 2px 0px 0px rgba(255, 255, 255, 0.8); - color: #4c4c4c; - display: inline-block; - font-family: Consolas, "Liberation Mono", Courier, monospace; - font-size: 0.85em; - padding: 0 0.65rem; + .o_command { + &.focused { + background: rgba($o-brand-primary, 0.25); + } } - } - - .o_command_name { - > b { - color: $o-brand-primary; - } - } - - .o_app_icon { - position: relative; - border-radius: 4%; - height: 1.8em; - width: 1.8em; - - &> i.fa { - text-align: center; - position: absolute; - top: 25%; - left: 0; - bottom: auto; - right: 0; - } - } - } - } - - &_footer { - color: #707070; - background-color: #f6f7fa; - font-size: 1rem; - padding: 0.6rem 1.3em; - border-top: 1px solid rgba(0, 0, 0, 0.1); - - .o_namespace:hover { - color: $o-brand-primary; - cursor: pointer; - text-decoration: underline dotted; } - .o_promote { - color: $o-brand-primary; - font-weight: 900; + .o_app_icon { + height: $-app-icon-size; + width: $-app-icon-size; } - } } diff --git a/addons/web/static/src/core/commands/command_palette.xml b/addons/web/static/src/core/commands/command_palette.xml index 5effa89e8e2..18c503b678d 100644 --- a/addons/web/static/src/core/commands/command_palette.xml +++ b/addons/web/static/src/core/commands/command_palette.xml @@ -3,41 +3,42 @@
-