diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-04-18 23:27:18 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-04-29 07:34:29 +0000 |
commit | 748c3db68793ce3076da9563954d4dd806d22820 (patch) | |
tree | 3d696ab496911cbca69b359a664d5d3572769b2f | |
parent | f835660548095a1bab45907cadf2c283aff0500a (diff) | |
download | nextcloud-server-backport/52249/stable31.tar.gz nextcloud-server-backport/52249/stable31.zip |
chore(theming): remove scssphp and just native nested CSSbackport/52249/stable31
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/theming/lib/Controller/ThemingController.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php index c3f365a11b6..880c0e08ea5 100644 --- a/apps/theming/lib/Controller/ThemingController.php +++ b/apps/theming/lib/Controller/ThemingController.php @@ -32,7 +32,6 @@ use OCP\IL10N; use OCP\INavigationManager; use OCP\IRequest; use OCP\IURLGenerator; -use ScssPhp\ScssPhp\Compiler; /** * Class ThemingController @@ -45,7 +44,7 @@ class ThemingController extends Controller { public const VALID_UPLOAD_KEYS = ['header', 'logo', 'logoheader', 'background', 'favicon']; public function __construct( - $appName, + string $appName, IRequest $request, private IConfig $config, private IAppConfig $appConfig, @@ -402,10 +401,7 @@ class ThemingController extends Controller { $css = ":root { $variables } " . $customCss; } else { // If not set, we'll rely on the body class - $compiler = new Compiler(); - $compiledCss = $compiler->compileString("[data-theme-$themeId] { $variables $customCss }"); - $css = $compiledCss->getCss(); - ; + $css = "[data-theme-$themeId] { $variables $customCss }"; } try { |