aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-08-17 15:19:46 +0200
committerGitHub <noreply@github.com>2022-08-17 15:19:46 +0200
commite32314e12988fe3e2307ad90133f5abf3314bead (patch)
tree3f4cbf6e805129ea4ef4ced52f9de75e7a88ea87
parent634ee18d03fd36369d22a9eca2d88d66a8975c3a (diff)
parent601664bc84e91b752ab6e6251510b559a5a676fc (diff)
downloadnextcloud-server-e32314e12988fe3e2307ad90133f5abf3314bead.tar.gz
nextcloud-server-e32314e12988fe3e2307ad90133f5abf3314bead.zip
Merge pull request #33564 from nextcloud/fix/theming-selector
-rw-r--r--apps/theming/lib/Controller/ThemingController.php2
-rw-r--r--core/src/icons.js4
-rw-r--r--dist/icons.css4
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index 94deb2e7376..e671c2d53e8 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -331,7 +331,7 @@ class ThemingController extends Controller {
} else {
// If not set, we'll rely on the body class
$compiler = new Compiler();
- $compiledCss = $compiler->compileString("body[data-theme-$themeId] { $variables $customCss }");
+ $compiledCss = $compiler->compileString("[data-theme-$themeId] { $variables $customCss }");
$css = $compiledCss->getCss();;
}
diff --git a/core/src/icons.js b/core/src/icons.js
index 6ea8070c912..33ca22cae77 100644
--- a/core/src/icons.js
+++ b/core/src/icons.js
@@ -322,12 +322,12 @@ css += generateVariablesAliases(true)
css += '}}'
// DARK THEME
-css += 'body[data-themes*=light] {'
+css += '[data-themes*=light] {'
css += generateVariablesAliases()
css += '}'
// DARK THEME
-css += 'body[data-themes*=dark] {'
+css += '[data-themes*=dark] {'
css += generateVariablesAliases(true)
css += '}'
diff --git a/dist/icons.css b/dist/icons.css
index 5f200a1046e..a53b457626f 100644
--- a/dist/icons.css
+++ b/dist/icons.css
@@ -1585,7 +1585,7 @@ body .nav-icon-systemtagsfilter {
--icon-view-previous-dark: var(--original-icon-view-previous-white);
}
}
-body[data-themes*=light] {
+[data-themes*=light] {
--icon-add-dark: var(--original-icon-add-dark);
--icon-add-white: var(--original-icon-add-white);
--icon-address-dark: var(--original-icon-address-dark);
@@ -1794,7 +1794,7 @@ body[data-themes*=light] {
--icon-view-previous-white: var(--original-icon-view-previous-white);
}
-body[data-themes*=dark] {
+[data-themes*=dark] {
--icon-add-white: var(--original-icon-add-dark);
--icon-add-dark: var(--original-icon-add-white);
--icon-address-white: var(--original-icon-address-dark);