Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSSless mixin are undefined between less files

I downloaded CCSLess and a collection of mixin called elements.less. When i try to use one of the mixin in my own quickStart.less file it says:

.gradient is undefined in quickStart.less on line 28, column 5:

{ .gradient;}

in the console it parses it in the right order: the elements.less is parsed first.

and yet i am unable to call mixin which are located in a different file.

anyone knows why?

like image 567
Guy Avatar asked Dec 06 '25 07:12

Guy


1 Answers

Are you sure you have correctly imported elements.less ? Try putting

@import "elements"

at the top of your file.

like image 69
Denis Avatar answered Dec 08 '25 19:12

Denis