LESS mixin guards

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/14/2013 8:47:06 PM
Gravatar
Total Posts 211
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

LESS mixin guards

Hey Joe,

I've been using LESS CSS lately, and I ran into what appears to be a problem with dotLESS, when using the following code:

@a = string;
.item() when (@a = string) {
     // Rules to execute when a = string
}

.item() when not (@a = string) {
     // Rules to execute otherwise
}

I've tested my code using WinLess (http://winless.org/online-less-compiler), and it works fine there.

In mojoPortal, either one of those mixins on their own works fine, but if I try to use both of them the code fails to compile. I need both of them, because the people setting the variable @a might not know that if they set it to something other than a specific string it will break the site.

I've looked this up on the dotless github, and found this: https://github.com/dotless/dotless/issues/127
Supposedly this issue was fixed 11 months ago, so I was wondering if you know whether or not we're using an updated version of dotless, or if there is some other issue that hasn't yet been fixed?

Any help is greatly appreciated.

Thanks,
-Isaac

1/15/2013 7:01:44 AM
Gravatar
Total Posts 18439

Re: LESS mixin guards

Our source code repository has the latest release of DotLess, it is version 1.3.1.0 released 2012-09-21

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.