News for hackers. Stuff that matters.
Re:Less, a leaner CSS by jonursenbach on Tuesday June 16, 2009 @05:01PM (#660884)
This is ridiculous. The first two examples they give you, you are actually producing more code than if you had done it properly to begin with.

  #header, #footer {
      /* styling here */
  }
Less, in their case, is actually more.
Re:Less, a leaner CSS by pkulak on Tuesday June 16, 2009 @05:07PM (#660899)
That's because they are trying to make simple examples. I've wanted this functionality in CSS many times, and in my real-world CSS, it would have made it a _lot_ easier and shorter.
Re:Less, a leaner CSS by icey on Tuesday June 16, 2009 @05:08PM (#660902)
I think you've missed the point. They are trying to show you that you can define variables for use throughout your CSS, so you aren't forced to search and replace every time you want to change something. Their examples have higher line counts than the pure CSS because their examples have more functionality than pure CSS.
Re:Less, a leaner CSS by randallsquared on Tuesday June 16, 2009 @05:08PM (#660901)
I'm not sure if you're serious. First, there are going to be differences between header and footer styles, which means you're going to have to declare them once as you say, and then at least one of them after that for the differences. Second, this offers the opportunity to do things only once, which is helpful for maintenance (though Firebug helps a lot, in my experience, in telling you exactly how you got this style).