From 404ddc8795db6d416f8f9279507b4ed1bee98591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 1 Jan 2025 17:34:46 +0200 Subject: [PATCH] Update SCSS compiler --- index.php | 2 +- system/pages/play.php | 2 +- system/pages/watch.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 24ad8a1..717150d 100644 --- a/index.php +++ b/index.php @@ -100,7 +100,7 @@ if(class_exists('Page')){ compile(file_get_contents($file)); + echo $scss->compileString(file_get_contents($file))->getCss(); ?> /* MAIN.SCSS – END */ diff --git a/system/pages/play.php b/system/pages/play.php index 514678d..4087981 100644 --- a/system/pages/play.php +++ b/system/pages/play.php @@ -9,7 +9,7 @@ class Page { public function style() { $scss = new ScssPhp\ScssPhp\Compiler(); $file = __DIR__."/../../assets/css/player.scss"; - echo $scss->compile(file_get_contents($file)); + echo $scss->compileString(file_get_contents($file))->getCss(); echo ' main section#player audio::-webkit-media-controls { diff --git a/system/pages/watch.php b/system/pages/watch.php index a56db21..7b7e4ad 100644 --- a/system/pages/watch.php +++ b/system/pages/watch.php @@ -14,7 +14,7 @@ class Page { public function style() { $scss = new ScssPhp\ScssPhp\Compiler(); $file = __DIR__."/../../assets/css/player.scss"; - echo $scss->compile(file_get_contents($file)); + echo $scss->compileString(file_get_contents($file))->getCss(); echo " main {