nativescript-orientation icon indicating copy to clipboard operation
nativescript-orientation copied to clipboard

Using the plugin with different devices

Open rickdps opened this issue 6 years ago • 3 comments

Hi, Nathanael. First of all, thank you very much for this plugin. It has helped me a lot.

My questions is:

Is it possible to use the plugin like this: .landscape .tablet .classname {

}

I have tried it but it did not work and just wanted to check if it's because it doesn't work or if I'm doing something wrong.

Thank you.

rickdps avatar Dec 09 '18 01:12 rickdps

Yes, you can combine css rules; it really depends on what assigned the .tablet part of the rule. If you use this with my NS-platform-css you can then you can use the .tablet and the .landscape together easier since the ns-platform-css will defined .tablet for you.

NathanaelA avatar Dec 09 '18 03:12 NathanaelA

Ok. I have them both, nativescript-platform-css and nativescript-orientation plugins. Could you please give me an example of how to implement it. As I said, '.landscape .tablet .classname {}' is not working.

rickdps avatar Dec 09 '18 11:12 rickdps

Each plugin separately works but together I can't get it to work for (CSS), I tried .tablet .landscape and the reverse .landscape .tablet. If there is an example of how to combine the two it would be appreciated.

YaakovDavid avatar May 22 '19 15:05 YaakovDavid