Code Monkey home page Code Monkey logo

Comments (13)

dciccale avatar dciccale commented on June 20, 2024

I think your solution is a good one, we could make a method to sub-process that line of the @media and return the stuff. So that we have to call that method inside the ìf` you are talking and things should keep simple.

Anyway I will think about other solutions.. thanks

from css2stylus.js.

JaKXz avatar JaKXz commented on June 20, 2024

I'm seeing this issue as well.

from css2stylus.js.

dciccale avatar dciccale commented on June 20, 2024

Seems a pretty good fix to do by adding an additional check. Didn't have the time yet to implement it. I will try it whenever I have time for this, please feel free to contribute

from css2stylus.js.

KyleKing avatar KyleKing commented on June 20, 2024

I'm still having this issue as well, given:

@media(min-width:1200px) {
    .timeline>li {
        min-height: 170px;
    }
}

Css2stylus outputs:

@media(min-width
  &:1200px)
    .timeline>li {
        min-height 170px

from css2stylus.js.

 avatar commented on June 20, 2024

Still having this issue too

@media
    (max-width
      &:
        767px)
          before {
        left 40px

ul
  &.timeline
    & > li
      margin-bottom 20px
      position relative
      width 100%
      float left
      clear left

from css2stylus.js.

dciccale avatar dciccale commented on June 20, 2024

this needs to be addressed in a special case. open to contributions :)

will try to fix it at some point

from css2stylus.js.

JonDum avatar JonDum commented on June 20, 2024

Honestly, it's not a feature, but a straight up bug. :|

from css2stylus.js.

dciccale avatar dciccale commented on June 20, 2024

well as I see it is a feature. because this version i never made any special implementation for handling media queries. so if support is something is needed to be implemented (not fixed) is a feature. not a bug

from css2stylus.js.

dciccale avatar dciccale commented on June 20, 2024

and what i meant above in my previous comment by "fix" was about fixing the github issue by implementing this feature.

thanks for the contribution

from css2stylus.js.

NeXTs avatar NeXTs commented on June 20, 2024

+1
I also faced @media issue

from css2stylus.js.

martpie avatar martpie commented on June 20, 2024

Hi, any news on this ?

from css2stylus.js.

dciccale avatar dciccale commented on June 20, 2024

i am pretty busy to handle this now, please feel free to contribute.

On Wed, Oct 28, 2015 at 10:08 AM, Pierre de la Martinière <
[email protected]> wrote:

Hi, any news on this ?


Reply to this email directly or view it on GitHub
#7 (comment)
.

from css2stylus.js.

KyleKing avatar KyleKing commented on June 20, 2024

I just submitted a pull request that should fix this issue

from css2stylus.js.

Related Issues (16)

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.