I have the following less compile error. My less is below not sure what is causing this.
undefined_methodError: error evaluating function `darken`: Object #<Object> has no method 'toHSL' in /Users/anderskitson/Sites/mrskitson.ca/wp-content/themes/wordpress-bootstrap/library/less/variables.less:164:34
163 @navbarBackground: "../images/nav.png";
164 @navbarBorder: darken(@navbarBackground, 12%);
165
(This action was triggered by a change to navbar.less)
Less File
@navbarBackground: "../images/nav.png";
background: url("{@navbarBackground}");
From the fine manual:
The
darkenfunction wants a color but your@navbarBackgroundis a URL for a background image. You’re getting a complaint abouttoHSLbecause LESS is trying to convert the color to the HSL format to make the darkening computation easier.I don’t know of any way to darken an image through LESS, you might need to manually darken the image and switch between them as needed.