This is a migrated thread and some comments may be shown as answers.

CSS depend platform

3 Answers 75 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tamir
Top achievements
Rank 2
Tamir asked on 27 Jan 2014, 12:05 PM
Hello,
Using Icenium window client.
I want to use different css file depend on the platform. 1 css for android and different for IOS.  
I know i can detect platform with cordova, but how to set the right css file.
Or there is a different way in config file?
Thanks in advance 

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 Jan 2014, 01:05 PM
Hello Tamir,

You are correct, you can achieve this by using device.platform to identify the platform and apply different css rules/file or utilize one of the Telerik AppBuilder features, called Platform-Specific Files.

Regards,
Steve
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tamir
Top achievements
Rank 2
answered on 27 Jan 2014, 01:45 PM
Thank you Steve,
So just to be sure, i create platform specific files and identification of the platform is on you (Icenium) ? :-)
0
Accepted
Steve
Telerik team
answered on 27 Jan 2014, 01:56 PM
Hi Tamir,

Correct, the "identification" unlike the device.platform check in Cordova, is made on build level i.e. when you push build for Android, we would only use the name.android.extension file for the build and the name.ios.extension would not be included in the app at all.

Regards,
Steve
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
HTML5, CSS, JavaScript
Asked by
Tamir
Top achievements
Rank 2
Answers by
Steve
Telerik team
Tamir
Top achievements
Rank 2
Share this question
or