From 611e315b21e5fbd93d4ffda0c1fd7693d1b53f32 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 20 Sep 2023 20:25:25 +0200 Subject: [PATCH] wip #6108 @0.25 --- app/Elearning/QuizCompiler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Elearning/QuizCompiler.php b/app/Elearning/QuizCompiler.php index 6789e8bb5..71ee7a9f3 100644 --- a/app/Elearning/QuizCompiler.php +++ b/app/Elearning/QuizCompiler.php @@ -133,6 +133,7 @@ class QuizCompiler extends Base // Fonts size:Line Height $this->sassVariables['fonts-size'] = "(14: 20px, 16: 22px, 20: 28px, 24: 35px)"; + // Main background $this->sassVariables['background-color'] = Color::colorToCSS($this->theme->backgroundColor); $this->sassVariables['background-custom'] = $this->theme->backgroundCustom ? 'true' : 'false'; if ($this->theme->backgroundCustom) { @@ -151,7 +152,7 @@ class QuizCompiler extends Base { $this->sassVariables[$sassPrefix . '-image'] = '../' . $this->data['theme']->{$themePrefix . 'Image' . $themeSuffix}; - switch ($this->data['theme']->{$themePrefix . 'Image' . $themeSuffix}) { + switch ($this->data['theme']->{$themePrefix . 'Size' . $themeSuffix}) { case ThemeBackgroundSize::REPEAT: $size = 'auto auto'; @@ -180,7 +181,6 @@ class QuizCompiler extends Base default => '50%', }; - $positiony = match ($this->data['theme']->{$themePrefix . 'VerticalAlign' . $themeSuffix}) { VerticalAlign::TOP => '0%', VerticalAlign::MIDDLE => '50%', @@ -188,7 +188,6 @@ class QuizCompiler extends Base default => '50%', }; - $this->sassVariables[$sassPrefix . '-repeat'] = $repeat; $this->sassVariables[$sassPrefix . '-size'] = $size; $this->sassVariables[$sassPrefix . '-position-x'] = $positionx; -- 2.39.5