} else {
$texts = '.texts{width:' . floor(floatval($w) + $corrText) . 'px;height:' . floor(floatval($h) + $corrText) . 'px;}';
}
+
$res[] = $texts;
// Theme
protected function _cssBackground()
{
- $body = '#background,#splash{';
- $body .= 'background-color:#' . $this->theme->parametres->backgroundColor . ' !important;';
+ $body = '';
+
+ if ($this->theme->parametres->displayBackgroundDuringLoading) {
+ $body .= '#background,#splash{background-color:#' . $this->theme->parametres->backgroundColor . ' !important;}';
+ } else {
+ $body .= '#background{transition:500ms opacity;visibility:hidden;opacity:0;background-color:#' . $this->theme->parametres->backgroundColor . ' !important;}';
+ $body .= '#splash{background-color:' . $this->theme->parametres->loadingBackColor . ' !important;}';
+ }
+
+ $body .= '#background,#splash{';
+
switch ($this->theme->parametres->repeat) {
case wsTheme::REPEAT:
$body .= 'background-repeat:repeat;';