Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Using the plugin with different devices #33

Open
rickdps opened this issue Dec 9, 2018 · 3 comments
Open

Using the plugin with different devices #33

rickdps opened this issue Dec 9, 2018 · 3 comments

Comments

@rickdps
Copy link

rickdps commented Dec 9, 2018

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.

@NathanaelA
Copy link
Owner

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.

@rickdps
Copy link
Author

rickdps commented Dec 9, 2018

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.

@YaakovDavid
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants