From 89d43ed011c258d4f585d24e1318750a1cf7d712 Mon Sep 17 00:00:00 2001 From: benjamin Date: Tue, 4 Mar 2025 08:51:42 +0000 Subject: [PATCH] fix core css to light mode only --- css/civicrm.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/css/civicrm.css b/css/civicrm.css index 43494262240c..4ac8f05416d2 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -6,6 +6,15 @@ * All styles should start with .crm-container unless they are specific to the main div only */ +/** + * CiviCRM themes do not generally have dark mode, so this declares we expect light mode + * for system components (and our responsive svg logo). + * In Riverlea, this is overridden depending on the dark mode setting. + */ +.crm-container { + color-scheme: only light; +} + /* Use this class to hide text that should only be there for screen readers */ .sr-only { border: 0;