I am new to LESS and am trying to create a complex structure to my LESS files so I can separate the front end framework files from my platform files from my client specific changes.... So to that end I have a structure using @import "filename.less"; like this (all separated into sub folders....)
master.less > platform.less > bootstrap.less > variables.less
> mixins.less
> ............etc
> font-awesome.less > ........etc
> bootstrap-ui.less > ........etc
> platform-variables.less
> platform-mixins.less
......... etc
> site.less > site-variables.less
...............etc..
random-page.less
OK so master.less has a import to platform.less and site.less etc....
My question how come I am able to use the mixins defined in mixins.less file.... in random-page.less but not able to use the mixins defined in my custom mixin file in random-page.less (platform-mixins.less) that is called from the platform.less file I'm very confused.... please advise.
The error that I receive is:
>> NameError: .no-padding is undefined in css/site/random-page.less on line 75, column 3:
>> 74 .footer-sidebar {
>> 75 .no-padding;
>> 76 }
Which is true because it does not exist in this file? However the bootstrap standard mixin works as expected despite the clear fix mixin/class not existing in this file... .footer-sidebar { .clearfix; }
Is this a LESS issue which SASS or Stylus etc.... resolves please advise.
.no-paddingis defined (For example is this really a mixin defined in the global scope and not something buried deep deep under other selector(s)?). - seven-phases-maxsite.lessseparately frommaster.less? That way it won't work of course (countraryplatform.lesscan be compiled alone since it includes all used components)). How do you compile all that, btw.? - seven-phases-max