Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some nice code there. Have you thought about using less to make the css more readable?

For instance, I use a mixin called border-radius, which is replaced by all the vendor-specifics.



Hey - I have pondered using less / sass / etc but so far haven't yet had much need (though the repetition required by the theming is perhaps a strong case to start considering it). To be honest, the vast majority of the site's CSS is contained in Twitter's bootstrap framework anyway so up until this point it's not something I'd worried much about :)


If you're using bootstrap, it's even better to use less; it includes a load of mixins for things like border-radius etc.

Just @include "bootstrap.less" at the top of your less file, add your rules below and compile just your less file using lessc. Easy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: