cloudkite/Classy — pull request #58 by gabbayabb (2014-04-28 12:57:03+00:00)
Title: Some update

Hi!

I'm new to github. We recently made some updates on Classy to use it in production.
Is there any way to merge back our changes to your Classy repo?

Most of the changes are just fixes but there are also a few modifications:

1. 262da7e Take care of class hierarchy upon calculating selector precedence
Here is a simple example to demonstrate why is this can be useful:
You want to set all of your UIBarItem's text color to red, except UIBarButtonItem. Now you can do this in a simple way:

^UIBarItem {
titleTextAttributes[state:normal] @ {
foreground-color #f00
}
}

^UIBarButtonItem {
titleTextAttributes[state:normal] @ {
foreground-color #0f0
}
}

2. 29fad55 An easy way to handle the 'selected | highlighted' and 'selected | disabled' control states
I'm not too proud on this one, but we just want to set those multistates on our controls. Surely you can do a better solution for this problem, but currently it works.

Thank you,
gabbayabb