// 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) {
{
$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';
default => '50%',
};
-
$positiony = match ($this->data['theme']->{$themePrefix . 'VerticalAlign' . $themeSuffix}) {
VerticalAlign::TOP => '0%',
VerticalAlign::MIDDLE => '50%',
default => '50%',
};
-
$this->sassVariables[$sassPrefix . '-repeat'] = $repeat;
$this->sassVariables[$sassPrefix . '-size'] = $size;
$this->sassVariables[$sassPrefix . '-position-x'] = $positionx;