From: Vincent Vanwaelscappel Date: Tue, 5 Aug 2025 10:03:07 +0000 (+0200) Subject: wait #7680 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ca4d02dd2cd5d139f5d14acbcd8d0c59e5a0054b;p=fluidbook-toolbox.git wait #7680 --- diff --git a/app/Elearning/QuizCompiler.php b/app/Elearning/QuizCompiler.php index 60e86efed..9da96b810 100644 --- a/app/Elearning/QuizCompiler.php +++ b/app/Elearning/QuizCompiler.php @@ -264,15 +264,15 @@ class QuizCompiler extends Base { $sass = ''; foreach ($this->sassVariables as $key => $value) { - $sass .= '$' . $key . ': ' . $this->_escapeSassValue($value) . "\n"; + $sass .= '$' . $key . ': ' . $this->_escapeSassValue($value, $key) . "\n"; } file_put_contents($this->compilePath . '/style/002-item-variables.sass', $sass); } - protected function _escapeSassValue($value) + protected function _escapeSassValue($value, $key = '') { $value = trim($value); - if (str_starts_with($value, 'rgb')) { + if (str_starts_with($value, 'rgb') || stristr($key, 'opacity')) { return $value; } if (stristr($value, '.')) {