From: vincent@cubedesigners.com Date: Wed, 13 Dec 2017 10:53:00 +0000 (+0000) Subject: #1490 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ec98f8c611bee6feb85acafc1d4b5f9da578b391;p=cubeextranet.git #1490 --- diff --git a/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php b/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php index 60aace958..b8fc35271 100644 --- a/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php @@ -1404,9 +1404,9 @@ class wsHTML5Compiler { if ($this->theme->parametres->subSecondaryColor) { $lessVariables['menu-button-background'] = wsHTML5::colorToCSS($this->theme->parametres->subSecondaryColor); } else { - $lessVariables['menu-background-green'] = 'max(@max, min(255-45, green(@menu-background)))'; - $lessVariables['menu-background-red'] = 'max(@max, min(255-45, red(@menu-background)))'; - $lessVariables['menu-background-blue'] = 'max(@max, min(255-45, blue(@menu-background)))'; + $lessVariables['menu-background-green'] = 'max(45, min(255-45, green(@menu-background)))'; + $lessVariables['menu-background-red'] = 'max(45, min(255-45, red(@menu-background)))'; + $lessVariables['menu-background-blue'] = 'max(45, min(255-45, blue(@menu-background)))'; $lessVariables['menu-button-background'] = 'overlay(rgb(@menu-background-red, @menu-background-green, @menu-background-blue), #c0c0c0)'; } 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 abe416a08..2811fec69 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1404,9 +1404,9 @@ class wsHTML5Compiler { if ($this->theme->parametres->subSecondaryColor) { $lessVariables['menu-button-background'] = wsHTML5::colorToCSS($this->theme->parametres->subSecondaryColor); } else { - $lessVariables['menu-background-green'] = 'max(@max, min(255-45, green(@menu-background)))'; - $lessVariables['menu-background-red'] = 'max(@max, min(255-45, red(@menu-background)))'; - $lessVariables['menu-background-blue'] = 'max(@max, min(255-45, blue(@menu-background)))'; + $lessVariables['menu-background-green'] = 'max(45, min(255-45, green(@menu-background)))'; + $lessVariables['menu-background-red'] = 'max(45, min(255-45, red(@menu-background)))'; + $lessVariables['menu-background-blue'] = 'max(45, min(255-45, blue(@menu-background)))'; $lessVariables['menu-button-background'] = 'overlay(rgb(@menu-background-red, @menu-background-green, @menu-background-blue), #c0c0c0)'; }