Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why I love “describing in the browser” with OOCSS-Inspired Microclasses. Parent comment
instead of writing obtuse HTML:
<div class="corner-box brand-color-bg pad-box-mini shadow-box light-text-color content-box"></div>
<div class="sign-up-callout"></div>
/*implementation details*/ .corner-box {...} .brand-color-bg {...} /*style descriptions*/ .sign-up-callout { .corner-box; .brand-color-bg; }
.red {color:red;}
.box-callout {...} .box-call-to-action {...}
instead of writing obtuse HTML:
you could continue to write semantic HTML: and then use mixins to separate the description of styling concepts and the implementation details: I suppose the downside of the approach is that you need to carefully maintain a dictionary that isn't too tied to implementation, e.g. but also not too abstract, e.g.