Skip to content

Commit 748c3db

Browse files
susnuxbackportbot[bot]
authored andcommitted
chore(theming): remove scssphp and just native nested CSS
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent f835660 commit 748c3db

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)