]> _ Git - cubeextranet.git/commitdiff
#1490
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 13 Dec 2017 10:53:00 +0000 (10:53 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 13 Dec 2017 10:53:00 +0000 (10:53 +0000)
inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 60aace958e9f9996cbe31f97ee5dd236b9346f86..b8fc35271d997afb23e5d5d734089c0e3bc5ff61 100644 (file)
@@ -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)';
                }
 
index abe416a083eb06397b1a06b7e0aaa5fbfe3e1e17..2811fec696c8a95d76481cd6eddada773ff6efac 100644 (file)
@@ -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)';
                }