From 68a3bd651f94cd059c80a2b02c3b618a3e00d18f Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Wed, 6 Jul 2022 08:10:44 +0000 Subject: [PATCH] [REF] *: BS5: Migrate tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - avoid black border in table of BS5 In BS5 there is a new rule: ```css .table > :not(:first-child) { border-top: 2px solid currentColor; } ``` This rule generate unwanted border in our visual, so we change the color to the old one we have in BS4 and in some case set the `border-top` to ´none´. PS: another solution is to use the `table-borderless` class, but then we have `tr` flickering for the height in list view (edit mode). - table background-color : * BS4: the background color is set with the `background-color` property * BS5: it's set with a box shadow and the `--table-accent-bg` CSS variable Task ID: 2766483 Part-of: odoo/odoo#95450 --- addons/mail/static/src/xml/activity_view.xml | 2 +- addons/survey/views/survey_templates.xml | 10 +++++----- .../static/src/legacy/scss/bootstrap_overridden.scss | 1 + addons/web/static/src/legacy/scss/list_view.scss | 1 + addons/web/static/src/views/graph/graph_renderer.xml | 2 +- addons/web/static/src/views/pivot/pivot_renderer.xml | 2 +- addons/website_sale/static/src/scss/website_sale.scss | 8 ++++---- addons/website_sale/views/templates.xml | 4 ++-- odoo/addons/base/tests/test_cloc.py | 4 ++-- 9 files changed, 18 insertions(+), 16 deletions(-) diff --git a/addons/mail/static/src/xml/activity_view.xml b/addons/mail/static/src/xml/activity_view.xml index 12bbd1c9a25..54b59bd3a68 100644 --- a/addons/mail/static/src/xml/activity_view.xml +++ b/addons/mail/static/src/xml/activity_view.xml @@ -84,7 +84,7 @@
- +
diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 5527e9f2e63..2e82f5ad469 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -553,14 +553,14 @@