Commit 105580ba authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Fix issue where elements with data-colour-theme applied weren’t getting coloured correctly

Towards #164
parent dd6e7c8f
......@@ -4,6 +4,7 @@
/* When the theme’s dark mode is set to 'auto' or 'never',
set the lightmode version of the use variables. */
*,
[data-darkmode="auto"], [data-darkmode="auto"] > *,
[data-darkmode="never"], [data-darkmode="never"] > * {
--background: var(--background-lightmode);
......@@ -115,6 +116,7 @@
and the theme’s dark mode is set to 'auto',
set the darkmode version of the use variables. */
@media (prefers-color-scheme: dark) {
*,
[data-darkmode="auto"], [data-darkmode="auto"] > * {
--background: var(--background-darkmode);
--highlighted-background: var(--highlighted-background-darkmode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment