lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

Strange behavior when @import is used

Open aflubenov opened this issue 12 years ago • 1 comments
trafficstars

I got "vars.less" file, its content is: // variables @siteHeaderBackgroundColor : #ff0000;


Then I have the following rules:

@import '/less/front-2.3.1/vars.less'; .site-header { background-color : @siteHeaderBackgroundColor; }

@siteHeaderBackgroundColor: #fafafa;


The result of compiling it is .site-header { background-color: #ff0000; }

when the correct result must be: .site-header { background-color: #fafafa; }

aflubenov avatar Mar 20 '13 16:03 aflubenov

This could be closed. It was fixed with the PR #548, available in the v0.5.0 release.

tzi avatar Apr 10 '15 09:04 tzi