From 63f4b545db2a0f18496cc382678a350c1588a86a Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Tue, 18 Mar 2025 12:32:31 +0100 Subject: [PATCH] [IMP] web_widget_x2many_2d_matrix: remove bg-colors to work with Odoo EE dark mode. The background color was needed in previous versions, however now the color is inherited by parent elements. Also removing shadow from totals. --- .../x2many_2d_matrix_field.scss | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/x2many_2d_matrix_field.scss b/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/x2many_2d_matrix_field.scss index 65e600333..1fe9e977c 100644 --- a/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/x2many_2d_matrix_field.scss +++ b/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/x2many_2d_matrix_field.scss @@ -16,7 +16,6 @@ $x2many_2d_matrix_max_height: 450px; position: sticky; top: 0; z-index: 1; - background-color: $o-list-footer-bg-color; &.total { right: 0; @@ -26,14 +25,7 @@ $x2many_2d_matrix_max_height: 450px; > tbody { > tr { &:nth-of-type(2n + 1) td.row-total, - &:nth-of-type(2n + 1) td:first-child { - background-color: mix(#000, #fff, 1%); - } &:nth-of-type(2n) td.row-total, - &:nth-of-type(2n) td:first-child { - background-color: white; - } - > td { text-align: right; @@ -48,7 +40,6 @@ $x2many_2d_matrix_max_height: 450px; border-right-width: 1px; border-right-color: $gray-300; border-right-style: solid; - box-shadow: -1px 5px 10px $gray-300; } &.row-total { padding: 0.5rem 0.75rem; @@ -58,7 +49,6 @@ $x2many_2d_matrix_max_height: 450px; border-left-width: 1px; border-left-color: $gray-300; border-left-style: solid; - box-shadow: -1px 5px 10px $gray-300; } } } @@ -66,7 +56,6 @@ $x2many_2d_matrix_max_height: 450px; > tfoot > tr > th { text-align: right; - background-color: $o-list-footer-bg-color; position: sticky; bottom: 0; @@ -76,7 +65,6 @@ $x2many_2d_matrix_max_height: 450px; border-left-width: 1px; border-left-color: $gray-300; border-left-style: solid; - background-color: white; } } }