Code Monkey home page Code Monkey logo

Comments (7)

KittyGiraudel avatar KittyGiraudel commented on May 18, 2024 1

We’ll likely use or or || rather than |. | is a bitwise operator.

from include-media.

robsonsobral avatar robsonsobral commented on May 18, 2024 1

My vote is on or, boss!

from include-media.

KittyGiraudel avatar KittyGiraudel commented on May 18, 2024

I am doing shit with GitHub this morning. My apologies. I'll let @eduardoboucas have a look. :)

from include-media.

eduardoboucas avatar eduardoboucas commented on May 18, 2024

A lot of people seem to be interested in this (#104 and #132), but it's not something we currently support.

I appreciate something like this would be useful and I'm open to the discussion, but I can't think of a syntax that would be both meaningful and simple to use.

Any ideas?

from include-media.

nirazul avatar nirazul commented on May 18, 2024

For me the most readable (but unfortunately most breaking-changey) would be:

@include media('xs' 'retina2x', 'some-other-expr' 'height>small') {
    ...
}

So you'd have , for OR and for AND. This would be sort of in line with css properties. Commas separate lists of same expressions. Spaces separate items of a list that belong together.

div {
    border: 2px solid red, 1px dashed purple;
}

from include-media.

robsonsobral avatar robsonsobral commented on May 18, 2024

I'm sorry for jump into the discussion, but... Why not | for OR? Split the list of breaking points by | and them by ,.

from include-media.

eduardoboucas avatar eduardoboucas commented on May 18, 2024

Closing this. See #144 and include-media-or.

from include-media.

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.