Coder Social home page Coder Social logo

Comments (5)

waynetheisinger avatar waynetheisinger commented on August 20, 2024

actually, this is not just a typo, when I change to 1, I now get the first item in the list twice... column-rule: 1px 1px solid #eee; so you are intending to use 2, not sure why the first is repeated though and not sure how to stop the out of index error if I change to 2 -- I'm now reading up on sass systax in order to debug...

from compass-mixins.

waynetheisinger avatar waynetheisinger commented on August 20, 2024

This seems to do what I want

  @for $i from 1 through length($items) {
      @if $i != 1 {
        $item: nth($items, $i);
        @if $item != null {
          $full: $full $item;
        }
      }
    }

from compass-mixins.

shadcn avatar shadcn commented on August 20, 2024

I'm having the same issue with the latest version. The fix by @waynetheisinger works.

from compass-mixins.

xzyfer avatar xzyfer commented on August 20, 2024

I think this work around is red herring for the real issue. Sass lists are 1 indexed so nth($list, length($list)) is within bounds. This is not the case for 0 indexed arrays common in other languages.

from compass-mixins.

shadcn avatar shadcn commented on August 20, 2024

@xzyfer I'm using the fix by @waynetheisinger on a project temporarily. But I agree, we need to figure out where it's really coming from.

from compass-mixins.

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.