LESS mixins only working when declared in the same style sheet
I'm a little confused about something:
I decided to make a global LESS document where I declare my mixins. When the mixins are referenced in other style sheets, they do not work. They only seem to work when they ar开发者_StackOverflow中文版e declared and referenced in the same style sheet. This is really annoying. Is this how LESS is suppose to work?
Thanks!
Bastain
LESS uses an import style that is similar to that used by C and C++. You need to import your mixin stylesheet into your LESS file using the @import
command before you can use those mixins.
精彩评论