Commit cb626e7
committed
Use CSS variables for colors
More recent versions of Django admin use CSS variables to control the
theming color, allowing a user to chose their color scheme
independently from their preferred one. Previously, django-polymorphic
supported different color schemes only via the `prefers-color-scheme`
media query. This commit implements usage of CSS variables for colors,
ensuring consistent compatibility with the rest of the admin interface.1 parent cfd49b2 commit cb626e7
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
0 commit comments