Comments (2)
This happens with scoped
CSS because vue-loader
"scoped" the rules under a hashed parent selector. That isolates platform-specific rules from being observed inside the scoped style tag.
You could remove scoped
but make sure you're using unique class names.
from nativescript-platform-css.
Thank you for your answer @grgur
Actually I just found it easier to use tns-core-modules/platform and use isIOS or isAndroid to do the same stuff as this plugin, but where I need it, either page or component. So I'll close down this issue.
from nativescript-platform-css.
Related Issues (20)
- Does not work in Router-Outlets HOT 1
- incorrect calculation of space when using (true type) fonts HOT 2
- Webpack with uglify build fails in Angular app HOT 4
- It is not in ES5 HOT 1
- Use :host instead of /deep/ HOT 1
- .ios/.androidXXX not working on platform.android/ios.css HOT 4
- Doesn't work when go back HOT 7
- Not working for me HOT 17
- Not picking the style when using className HOT 5
- support the new iPhones name HOT 1
- NativeScript Angular - Styles not applied in app.component HOT 7
- Applying styles in NS Angular HOT 1
- Work on all pages without requiring in every single page HOT 3
- Not Working Effectively with Navigation HOT 16
- Fails to load plugin in Angular NS 5.4+ "Events name(s) must be string." HOT 6
- Unable to install - getting 'Not Found' HOT 1
- Cannot add new proPlugins HOT 1
- Unfinished description of enhanced modes in README. HOT 2
- TypeError: nsPlatform.screen is not a function HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-platform-css.