postcss-for icon indicating copy to clipboard operation
postcss-for copied to clipboard

Not calculating i+1

Open djmtype opened this issue 2 years ago • 0 comments

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); }

djmtype avatar Mar 05 '22 16:03 djmtype