From: vincent@cubedesigners.com Date: Wed, 31 Mar 2021 18:16:51 +0000 (+0000) Subject: wip #4358 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=298f0178d4cd50e1eaad4065db082644223760a7;p=cubeextranet.git wip #4358 @0.5 --- 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 086acdea2..e54d0859e 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -2259,6 +2259,7 @@ class wsHTML5Compiler } else { $texts = '.texts{width:' . floor(floatval($w) + $corrText) . 'px;height:' . floor(floatval($h) + $corrText) . 'px;}'; } + $res[] = $texts; // Theme @@ -2480,8 +2481,17 @@ class wsHTML5Compiler 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;';