From 9e489b48e6ac9bcce751a5fc38c9310db9c870b0 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 4 Sep 2026 20:58:44 +0200 Subject: [PATCH] Fix footer solde colors not showing red/green The generic totals-row rule (tr.figli-totals-row td) has higher specificity than the lone td.figli-solde-crediteur/-debiteur rules, so its neutral color always won in the footer even though soldeClass() was already applying the right class there. --- web/modules/custom/figli_compta_ledger/css/home.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/modules/custom/figli_compta_ledger/css/home.css b/web/modules/custom/figli_compta_ledger/css/home.css index d5f6da8..8f7f058 100644 --- a/web/modules/custom/figli_compta_ledger/css/home.css +++ b/web/modules/custom/figli_compta_ledger/css/home.css @@ -152,6 +152,15 @@ html.gin--dark-mode #figli-home-app { #figli-home-app td.figli-solde-debiteur { color: var(--figli-error); } +/* Footer totals row sets its own `color` (higher specificity: tr.class + + td beats a lone td.class) which otherwise overrides the solde colors + above -- repeat them scoped to the row so red/green still wins there. */ +#figli-home-app tr.figli-totals-row td.figli-solde-crediteur { + color: var(--figli-positive); +} +#figli-home-app tr.figli-totals-row td.figli-solde-debiteur { + color: var(--figli-error); +} /* Single colored + bold anchor per row (Montant HT only) so entrées vs sorties are scannable at a glance -- everything else in the row (TTC,