Device.js
Frontend coding for mobile devices is a pain, so I wrote a JavaScript library to make things a bit easier for everyone.
Device.js makes it easy for you to write conditional CSS based on device operating system (iOS, Android, Blackberry), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
View the Demo (best on a mobile device)
Examples
Device.js inserts CSS classes into the <html> element.
iPhone

Android Tablet

Blackberry Tablet

Please vote up on Hacker News if you’d like to see this library mature. I could use the help of other developers forking and contributing patches for special edge cases that this library might not yet cover.