$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';
$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;
if ($font === 'sans-serif') {
return;
}
- if($font==='Open Sans'){
- $font='OpenSans';
+ if ($font === 'Open Sans') {
+ $font = 'OpenSans';
}
$path = 'style/fonts/' . $font;