Comments (6)
Could you give an example please? It seems to work just fine for me.
from vue-component-media-queries.
I am developing using Nuxt Js and in the <style> tag, I am trying to write a media query. A media query with a single parameter works just fine and I am able to view it for that specific screen size, but then, when I want to put 2 parameters and use the 'and' keyword, the media query itself stops working. I know that because when when I am testing on a mobile browser, the styles gets all haywire removing the 'and' part of they query reverts the views back to how it was.
When I inspect the element, without the 'and' keyword, I could see the specific style for the specific elements, on a specific device screen size. With the 'and' keyword, it just shows the default CSS.
Check out the screen shot, whatever before the 'and' works perfectly, when using 'and', none of these parameters, before or after takes effect.
from vue-component-media-queries.
Can you show how you're using the library please? It doesn't work with CSS in any shape or form, it's for programmatic control (JS) only.
from vue-component-media-queries.
The screenshot shows exactly how I use it. In Nuxt Js, there is the <style> tag.
<style> @media query(....){ //css here } </style>It works well in the format described.
from vue-component-media-queries.
This library is unrelated to how you write CSS, you should only use it if you need JS code to know about media queries.
from vue-component-media-queries.
Thank you for your reply.
from vue-component-media-queries.
Related Issues (2)
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 vue-component-media-queries.