Skip to content

Instantly share code, notes, and snippets.

@Cosmo
Created June 4, 2012 14:14
Show Gist options
  • Save Cosmo/2868653 to your computer and use it in GitHub Desktop.
Save Cosmo/2868653 to your computer and use it in GitHub Desktop.
Teacup::Stylesheet.new(:iphone) do
# enable orientations on the root view
style do
left 0
top 0
width 320
height 480
backgroundColor :lightyellow.uicolor
portrait true
upside_down false
only :ipad, :landscape do
backgroundColor :pink.uicolor
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment