-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add support for platform specific css rules for multiple platforms in the same file #5180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @erkanarslan, If I understand you correctly you would like NativeScript to support for CSS media queries in the CSS. Let me know if the case is different and I will reopen this issue. |
Hi @erkanarslan, |
This comment was marked as abuse.
This comment was marked as abuse.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is a feature request.
In current situation, we need to create a css file for common rules and 2 files for android and iOS specific rules even if it is just a few lines. Also if you create a platform specific css file you have to create another file for other platform even if you put nothing in it, otherwise angular or file import codes will complain about the missing file.
To solve this problem, allow us to define platform specific css rules in the same file. Maybe we can use media queries for this. For example, when developing for web, you can define different css rules based on screen resolution and whether it is for screen or print. For Nativescript, we can check the platform in media queries.
The text was updated successfully, but these errors were encountered: