You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to do it this way to target desktop and IE versions below IE9; any help would be brilliant, otherwise I'd end up repeating myself over and over to get something done.
Activity
seven-phases-max commentedon Feb 11, 2014
In short, selectors and media queries can't be combined together since they are very different beasts, so mixins are your friends...
ChrisButterworth commentedon Feb 11, 2014
That's great, thanks.
Do you think it'd be a feature added in the future? It solves the problem now but I can see cases where there would be hundreds of mixins...
lukeapage commentedon Feb 11, 2014
Yes!
How about this...
This is using a feature that should be merged into master and released in 1.7 in the next couple of weeks.
lukeapage commentedon Feb 11, 2014
So the
.desktop-and-old-iemixin describes the wrap and then you use that to abstract out the fact it is both a media query and a class.lukeapage commentedon Feb 11, 2014
and added a test case for this
https://github.com/less/less.js/pull/1859/files#diff-d18acf5d1b39dcf0c1635dd08a77c71fR22
seven-phases-max commentedon Feb 12, 2014
Btw., nice #1859 example. I did not notice that this use-case is exactly what #965 started with :)
ChrisButterworth commentedon Feb 12, 2014
That's great, and a great example, thanks a lot.