Skip to content

Counter variable is lost inside of @content block #120

@sergeylukin

Description

@sergeylukin

Similar to #90 and #93

@mixin respond-to($media) {
  // ..strip $media conditional logic for the sake of simplicity
  @content;
}

@include respond-to(handhelds) {
  @for $i from 1 through 2 {
    .grid-#{$i} { width: 100%; }
  }
}

outputs:

.grid- {
  width: 100%; }

.grid- {
  width: 100%; }

instead of:

.grid-1 {
  width: 100%; }

.grid-2 {
  width: 100%; }

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