Coder Social home page Coder Social logo

Comments (6)

CyberAP avatar CyberAP commented on June 15, 2024

Could you give an example please? It seems to work just fine for me.

from vue-component-media-queries.

Abdo-461 avatar Abdo-461 commented on June 15, 2024

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.

Screen Shot 2021-10-27 at 6 59 03 am

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.

CyberAP avatar CyberAP commented on June 15, 2024

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.

Abdo-461 avatar Abdo-461 commented on June 15, 2024

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.

CyberAP avatar CyberAP commented on June 15, 2024

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.

Abdo-461 avatar Abdo-461 commented on June 15, 2024

Thank you for your reply.

from vue-component-media-queries.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.