Created
August 23, 2013 14:18
-
-
Save forrestgrant/6319810 to your computer and use it in GitHub Desktop.
Using multiple stylesheets with pixate, for iOS specific styles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// _ios_seven.scss | |
// iOS 7 specific styles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
stylesheet = (Device.ios_version.to_f >= 7.0) ? 'ios_seven.css' : 'default.css' | |
PXEngine.styleSheetFromFilePath(File.join(NSBundle.mainBundle.resourcePath, stylesheet), withOrigin:0) | |
true | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// default.scss | |
@import 'main' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ios_seven.scss | |
@import 'main'; | |
@import 'ios_seven'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment