Hi, I’d like to use the Ratchet CSS framework to style a mobile app.
Ratched offers an iOS and Android theme for their CSS. Just include one .css or the other.
How do I include these conditionally? The simplest thing that could work would be to just comment/uncomment before building.
Have you used a better way to have the app “detect” where it’s being built/run and link the right css file? Does it work well? Are there issues with juggling the css like this in Meteor?
There’s a Ratchet package in Atmosphere, but it just loads the ios version :-/
If you are hosting the CSS files yourself and not on a CDN then you’ll need to put them into the /public folder so that meteor doesn’t bundle them automatically.
FWIW, the Android theme is broken in Ratchet (I don’t remember why, but I think it had to do with icon menus). I decided to just use the iOS theme for now and skipped device detection.