-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selector interpolation fails if selector is a pseudo-element #1294
Comments
Incidentally, the error happens whether I use a single colon or double colons. |
workaround
|
less has to understand the selector and at the moment it doesn't understand |
Thanks for the workaround :-) |
Thanks @lukeapage for the workaround but please fix this. |
basically the same thing I'm doing here: placeholder mixin Anyways.. is it better to use |
There's no difference, currently |
there is a difference: in:
out:
I tend to use |
This is just a bug. |
ok. thx.. |
Allow selector interpolation inside pseudoselectors. #1294
I'd like to be able to have a mixin which can take a string variable "before" or "after", and use that to determine which pseudo-element the properties are applied to.
This works well when selector interpolation is applied to a class selector... so this LESS:
gives this CSS:
However when I replace the class selector with a pseudo-element selector:
I get the following error:
when I'd expect to see:
I'm running this on the command line using "lessc input.less", and am using v1.4.0-b2 of LESS.
The text was updated successfully, but these errors were encountered: