Hacker News new | past | comments | ask | show | jobs | submit login
From Good to Great: 5 part series on better CSS with Compass and Sass (derekperez.com)
59 points by perezd on July 15, 2010 | hide | past | favorite | 4 comments



As someone who only knows enough CSS to rip apart templates and customize them, this is really cool. thanks.


I'm not sure I understand why precompiling CSS mixins and inheritance are a good idea. If you can define multiple classes for an element (which can override each other), why bother?


Chris Eppstein (develops compass) does a great job breaking down the why (for tools like sass in general) here => http://chriseppstein.github.com/blog/2009/09/20/why-styleshe...


The problem of applying multiple classes to an element arises when the definition of one class expects another css class to be applied to all the same elements because there is an implicit inheritance relationship between them. Keeping inheritance in the stylesheet allows the implementation details of those classes to be kept together instead of leaking out to the html and causing display bugs (which are very hard to unit test).




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

Search: