]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6108 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Sep 2023 18:25:25 +0000 (20:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Sep 2023 18:25:25 +0000 (20:25 +0200)
app/Elearning/QuizCompiler.php

index 6789e8bb5f8268de1d1c2e969483600aafb884ea..71ee7a9f3fb3c0411a3554dc9989e406b95c3658 100644 (file)
@@ -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;