diff options
-rw-r--r-- | apps/theming/lib/Controller/ThemingController.php | 2 | ||||
-rw-r--r-- | core/src/icons.js | 4 | ||||
-rw-r--r-- | dist/icons.css | 4 |
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); |