Giter VIP home page Giter VIP logo

Comments (4)

noprompt avatar noprompt commented on May 18, 2024

First, I want to say that I like garden.

Thanks! I appreciate it. :)

A clojurescript port would be very nice... using the library for in-browser dynamic CSS generation...

I think you're right. This is a good idea and eventually I'd like to see this happen.

Could you please allow for generic media queries to be made so that vendor specific media queries can be created?

Yes, this is definitely in order. The problem is I made media queries too strict (see here) basing them solely on what was put forward in the specs.

This morning I also discovered it's not possible to express something like only screen.

Taking these two problems in to account I think it's probably best that Garden avoid the business of validating media query properties and just focus on the semantics of values. This would solve your issue and (potentially) prevent others like it in the future.

I'll get started on a patch and keep an eye on this issue. Please let me know if you spot anything else.

from garden.

jborden avatar jborden commented on May 18, 2024

Thanks for the timely response.

I think it's probably best that Garden avoid the business of validating media query properties

I agree. Even if you had a clojure CSS3 parser that was fully compliant with W3 standards that you could use for proper validation, you would still need the parser to recognize CSS3 vendor-specific grammar subsets... e.g. maybe the parser would accept a keyword/value pair like {:include-grammar "webkit"} or {:include-grammar "mozilla"}. Better to leave validation to another library!

from garden.

noprompt avatar noprompt commented on May 18, 2024

OK. That should do it. I've pushed up a new version of the library so we should be good to go.

Thanks for bringing this to my attention! I appreciate it.

from garden.

jborden avatar jborden commented on May 18, 2024

Thanks for making media queries like this possible:

repl> (css (at-media {:screen true :min-device-width (px 1080) :orientation :portrait :-webkit-min-device-pixel-ratio "3"} [:html {:width (px 1080)}]))
"@media screen and (min-device-width:1080px) and (orientation:portrait) and (-webkit-min-device-pixel-ratio:3){html{width:1080px}}"

from garden.

Related Issues (20)

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.