less-docs icon indicating copy to clipboard operation
less-docs copied to clipboard

List of the greatest Less misuses and abuses?

Open seven-phases-max opened this issue 11 years ago • 3 comments

Probably if we have enough examples then some kind of Don't do this! page would be handy.

Inspired by http://stackoverflow.com/a/21068438/2712740, curiously it uses almost every latest Less feature (property merge, property interpolation, default() etc.) but in the same time it is probably the most misleading solution I have written so far.

seven-phases-max avatar Jan 11 '14 22:01 seven-phases-max

Yes!

My number 1 is dont just wrap selectors everywhere.. understand it still produces lots of css and you still have to understand what it produces.

lukeapage avatar Jan 11 '14 22:01 lukeapage

Btw, by "wrap selectors" do you mean nesting selectors everywhere? This is one of my favorite "donts" too... I always dreamt to say something like "Never nest only because it is possible to nest"...

seven-phases-max avatar Jan 11 '14 23:01 seven-phases-max

Yep..

lukeapage avatar Jan 11 '14 23:01 lukeapage