From 636b93e99516dc9bb29f1ca3ab5429fc31e874b0 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Jun 2024 08:24:26 -0300 Subject: [PATCH] Fix overriding font-family for both light and dark themes --- debug_toolbar/static/debug_toolbar/css/toolbar.css | 6 ++++-- docs/changes.rst | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debug_toolbar/static/debug_toolbar/css/toolbar.css b/debug_toolbar/static/debug_toolbar/css/toolbar.css index e028a67b7..c7e201d07 100644 --- a/debug_toolbar/static/debug_toolbar/css/toolbar.css +++ b/debug_toolbar/static/debug_toolbar/css/toolbar.css @@ -1,6 +1,5 @@ /* Variable definitions */ -:root, -#djDebug[data-theme="light"] { +:root { /* Font families are the same as in Django admin/css/base.css */ --djdt-font-family-primary: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", @@ -10,7 +9,10 @@ "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; +} +:root, +#djDebug[data-theme="light"] { --djdt-font-color: black; --djdt-background-color: white; --djdt-panel-content-background-color: #eee; diff --git a/docs/changes.rst b/docs/changes.rst index a0215d09c..20272fda7 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -4,6 +4,8 @@ Change log Pending ------- +* Fix overriding font-family for both light and dark themes. + 4.4.2 (2024-05-27) ------------------