News for hackers. Stuff that matters.
Re:Why I love “describing in the browser” with OOCSS-Inspire... by rcsorensen on Wednesday October 31, 2012 @01:23PM (#4724002)
This is a great example of CSS becoming programming.

With preprocessors (mentioned at the end of the article), prototyping can finish with an element like

  <form class="content-box last mid-bg corner-box border-box bevel-box-light pad-box">
  ...
  </form>
then turn back to your application.less, throw in:

  .username-form {
    .content-box;
    .last;
    .mid-bg;
    .corner-box;
    .border-box;
    .bevel-box-light;
    .pad-box;
  }
and we're suddenly working with higher-level concepts in CSS, specifically not the basics of the style attributes.

Working this way gives you room to play with in-browser prototyping in a strong way, using just the inspector and classes on elements to build up your visuals.

There are no comments on this comment yet.