ClassyKit / Classy

Expressive, flexible, and powerful stylesheets for UIView and friends.
http://classykit.github.io/Classy/
MIT License
740 stars 77 forks source link

fixes #56 sort style nodes in ascending precedence order before applying rules. #59

Closed keithnorm closed 10 years ago

keithnorm commented 10 years ago

This is to be more in line with CSS rules such that given this scenario:

UILabel { text-color: blue; }

UILabel { text-color: red; }

A UILabel should have red text.

Also, this missing Ball.png was breaking the example app. It's not used but I added it anyway as a quick fix.

NOTE: This is a fundamental change to Classy's behavior and may cause some stylesheets to appear to be broken if they were written in a way that relies on applying the rules from the bottom to the top of a stylesheet.

cloudkite commented 10 years ago

Cool thanks for the contribution!