From 1971bf39810468b2b67e2ecd3c86c663d5cffcfd Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Thu, 6 May 2021 16:04:41 +0200 Subject: [PATCH] [REF] web, website: refine and simplify dropdown design Prior to this commit, Bootstrap dropdowns, jQueryUI dropdowns and Odoo dropdowns where styled independently leading to visual inconsistencies and code repetition. This commit will customize and improve the Bootstrap design using as much as possible predefined variables. Then it will simply '@extend' owl/jQueryUI classes in order to visually match the bootstrap ones. Since dropdown classes are used in the top-menu (and its design is partially shared with frontend apps), this commit provides the necessary adaptations for this component as well. --- addons/google_drive/static/src/xml/gdrive.xml | 2 +- addons/web/__manifest__.py | 1 - .../web/static/src/core/debug/debug_menu.xml | 2 +- .../static/src/core/dropdown/dropdown.scss | 137 ++++--- .../web/static/src/core/dropdown/dropdown.xml | 2 +- .../legacy/js/views/graph/graph_controller.js | 2 +- .../src/legacy/scss/bootstrap_overridden.scss | 15 +- .../web/static/src/legacy/scss/dropdown.scss | 88 +---- .../src/legacy/scss/dropdown_extra.scss | 52 +-- .../static/src/legacy/scss/dropdown_menu.scss | 46 --- .../src/legacy/scss/kanban_dashboard.scss | 11 +- .../static/src/legacy/scss/kanban_view.scss | 1 - addons/web/static/src/legacy/scss/navbar.scss | 348 ++++++++++-------- .../static/src/legacy/scss/navbar_mobile.scss | 177 ++++----- .../src/legacy/scss/primary_variables.scss | 2 + .../static/src/legacy/scss/search_view.scss | 83 ----- addons/web/static/src/legacy/scss/utils.scss | 27 +- addons/web/static/src/legacy/xml/base.xml | 13 +- .../static/src/webclient/navbar/navbar.scss | 106 +----- .../static/src/webclient/navbar/navbar.xml | 2 +- .../switch_company_menu.xml | 22 +- .../static/tests/legacy/views/pivot_tests.js | 7 +- .../webclient/switch_company_menu_tests.js | 2 +- .../website/static/src/scss/website.ui.scss | 9 +- .../views/website_navbar_templates.xml | 10 +- 25 files changed, 475 insertions(+), 692 deletions(-) delete mode 100644 addons/web/static/src/legacy/scss/dropdown_menu.scss diff --git a/addons/google_drive/static/src/xml/gdrive.xml b/addons/google_drive/static/src/xml/gdrive.xml index d12b3459516..db1e3a11c8a 100644 --- a/addons/google_drive/static/src/xml/gdrive.xml +++ b/addons/google_drive/static/src/xml/gdrive.xml @@ -1,7 +1,7 @@
  • -