From: Vincent Vanwaelscappel Date: Thu, 14 Oct 2021 15:03:25 +0000 (+0200) Subject: wip #4757 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=563b46be7957c862d1b42a546d91efd3c6973f56;p=fluidbook_tools.git wip #4757 --- diff --git a/src/Compiler/Styles.php b/src/Compiler/Styles.php index af35082..f1bfdf5 100644 --- a/src/Compiler/Styles.php +++ b/src/Compiler/Styles.php @@ -260,7 +260,8 @@ trait Styles #tooltip $this->lessVariables['tooltip-background'] = Color::colorToCSS($this->config->tooltipBackColor); $this->lessVariables['tooltip-color'] = Color::colorToCSS($this->config->tooltipTextColor); - $this->lessVariables['tooltip-font-size'] = 14 * (($this->config->tooltipTextSize ?: 100) / 100); + $this->lessVariables['tooltip-font-size'] = $this->config->tooltipTextSize; + $this->lessVariables['tooltip-padding'] = $this->config->tooltipPadding; #Videos if ($this->config->bigPlayImage) { @@ -356,7 +357,7 @@ trait Styles $this->vdir->copy($p, 'data/' . $path); return $p; } - $po=str_replace('.svg', '.o.svg', $p); + $po = str_replace('.svg', '.o.svg', $p); if (file_exists($po)) { copy($po, $p); $this->vdir->copy($p, 'data/' . $path);