Skip to content

Not calculating i+1 #24

@djmtype

Description

@djmtype

Why doesn't this work?

@for $i from 1 to 12 {
  .col-$(i) { --span: $i; }
  .col-start-$(i) { grid-column-start: $i; }
  .col-end-$(i+1) { grid-column-end: $(i+1); }
}

All of the .col-start-* output correctly, but the .col-end-* do not.
All instances render as .col-end-$(i+1) { grid-column-end: $(i+1); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions