Skip to content

Commit 895615a

Browse files
authored
Merge pull request #52521 from nextcloud/backport/52249/stable31
[stable31] fix(theming): remove scssphp and use just native nested CSS
2 parents f835660 + 748c3db commit 895615a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/theming/lib/Controller/ThemingController.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
use OCP\INavigationManager;
3333
use OCP\IRequest;
3434
use OCP\IURLGenerator;
35-
use ScssPhp\ScssPhp\Compiler;
3635

3736
/**
3837
* Class ThemingController
@@ -45,7 +44,7 @@ class ThemingController extends Controller {
4544
public const VALID_UPLOAD_KEYS = ['header', 'logo', 'logoheader', 'background', 'favicon'];
4645

4746
public function __construct(
48-
$appName,
47+
string $appName,
4948
IRequest $request,
5049
private IConfig $config,
5150
private IAppConfig $appConfig,
@@ -402,10 +401,7 @@ public function getThemeStylesheet(string $themeId, bool $plain = false, bool $w
402401
$css = ":root { $variables } " . $customCss;
403402
} else {
404403
// If not set, we'll rely on the body class
405-
$compiler = new Compiler();
406-
$compiledCss = $compiler->compileString("[data-theme-$themeId] { $variables $customCss }");
407-
$css = $compiledCss->getCss();
408-
;
404+
$css = "[data-theme-$themeId] { $variables $customCss }";
409405
}
410406

411407
try {

0 commit comments

Comments
 (0)