]> _ Git - fluidbook_tools.git/commitdiff
wip #4757
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 15:03:25 +0000 (17:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 15:03:25 +0000 (17:03 +0200)
src/Compiler/Styles.php

index af35082058a1cea7448397b1881fdfef2a1bc51a..f1bfdf55c76401d26df08d10d3f18b258a33546b 100644 (file)
@@ -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);