From 3bb2ccff30c37d953c796757d28521c79f96e965 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 22 Jul 2021 11:47:29 +0000 Subject: [PATCH] wait #4609 @0.25 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index cad5f93c9..3846f1851 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -2327,8 +2327,8 @@ height="0" width="0" style="display:none;visibility:hidden"> $this->lessVariables['css-scale'] = $this->cssScale; - $this->lessVariables['slider-background'] = wsHTML5::colorToCSS($this->theme->parametres->sliderBackground); - $this->lessVariables['slider-handle'] = wsHTML5::colorToCSS($this->theme->parametres->sliderHandle); + $this->lessVariables['slider-background'] = wsHTML5::colorToCSS(!$this->theme->parametres->sliderBackground ? 'rgba(0,0,0,0.1)' : $this->theme->parametres->sliderBackground); + $this->lessVariables['slider-handle'] = wsHTML5::colorToCSS(!$this->theme->parametres->sliderHandle ? '#ffffff' : $this->theme->parametres->sliderHandle); $this->lessVariables['slider-display'] = $this->_lessBoolean($this->theme->parametres->pagesBar); $this->lessVariables['slider-thumb-background'] = wsHTML5::colorToCSS($this->theme->parametres->pageBarThumbBack); $this->lessVariables['pages-background'] = $this->book->parametres->forceWhiteBackground ? '#ffffff' : 'transparent'; @@ -2367,7 +2367,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $this->lessVariables['book-page-ratio'] = floatval($w) / floatval($h); $this->lessVariables['page-shade-opacity'] = min(1, $this->theme->parametres->shadeAlpha / 50); - $c= new CubeIT_Graphics_Color($this->theme->parametres->bookShadeColor); + $c = new CubeIT_Graphics_Color($this->theme->parametres->bookShadeColor); $this->lessVariables['shadow-opacity'] = $c->getAlpha() * 1.2; $this->lessVariables['edges-display'] = $this->_lessBoolean($this->theme->parametres->usePageEdges); $this->lessVariables['edge-left-offset'] = 0; @@ -2950,8 +2950,8 @@ height="0" width="0" style="display:none;visibility:hidden"> if ($font === 'sans-serif') { return; } - if($font==='Open Sans'){ - $font='OpenSans'; + if ($font === 'Open Sans') { + $font = 'OpenSans'; } $path = 'style/fonts/' . $font; -- 2.39.5