From c86d2fe419b7c51c32beb07c33d56839b4d84a7e Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Mon, 1 Aug 2022 10:05:27 +0000 Subject: [PATCH] [REF] gamification: review and simplify scss Part of the overall v16 SCSS optimization/restyle, task-2704984 task-2938963 Part-of: odoo/odoo#97192 --- addons/gamification/__manifest__.py | 5 --- .../static/src/scss/gamification.scss | 37 ------------------- .../views/gamification_badge_views.xml | 2 +- .../views/gamification_goal_views.xml | 8 ++-- 4 files changed, 5 insertions(+), 47 deletions(-) delete mode 100644 addons/gamification/static/src/scss/gamification.scss diff --git a/addons/gamification/__manifest__.py b/addons/gamification/__manifest__.py index 9b99964392a..787a11b5e4d 100644 --- a/addons/gamification/__manifest__.py +++ b/addons/gamification/__manifest__.py @@ -44,10 +44,5 @@ Both goals and badges are flexibles and can be adapted to a large range of modul 'data/gamification_karma_rank_demo.xml', 'data/gamification_karma_tracking_demo.xml', ], - 'assets': { - 'web.assets_backend': [ - 'gamification/static/src/**/*', - ], - }, 'license': 'LGPL-3', } diff --git a/addons/gamification/static/src/scss/gamification.scss b/addons/gamification/static/src/scss/gamification.scss deleted file mode 100644 index 5139c1547a2..00000000000 --- a/addons/gamification/static/src/scss/gamification.scss +++ /dev/null @@ -1,37 +0,0 @@ -.o_kanban_gamification { - img.o_kanban_badge_avatars { - width: 30px; - height: 30px; - padding-left: 0; - margin-top: 8px; - border-radius: 2px; - -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); - object-fit: cover; - } - .o_kanban_content { - .o_goal_state_block { - width: 200px; - height: 130px; - margin: auto; - margin-bottom: -20px; - text-align: center; - .o_goal_state { - font-size: 2.5em; - font-weight: bold; - padding-top: 13px; - } - } - } - .o_kanban_badge_description { - padding-bottom: 15px; - } - .o_red { - color: red; - } - .o_green { - color: green; - } - .o_orange { - color: orange; - } -} diff --git a/addons/gamification/views/gamification_badge_views.xml b/addons/gamification/views/gamification_badge_views.xml index 7a49efe5624..9d57d2c39fb 100644 --- a/addons/gamification/views/gamification_badge_views.xml +++ b/addons/gamification/views/gamification_badge_views.xml @@ -145,7 +145,7 @@ granted, this month -
+
diff --git a/addons/gamification/views/gamification_goal_views.xml b/addons/gamification/views/gamification_goal_views.xml index 76c81b75728..47fd8eebcb0 100644 --- a/addons/gamification/views/gamification_goal_views.xml +++ b/addons/gamification/views/gamification_goal_views.xml @@ -173,12 +173,12 @@
-
+
- + - +
@@ -186,7 +186,7 @@ -
+
Target: less than