Skip to content

Instantly share code, notes, and snippets.

@mturjak
Created November 1, 2013 20:16
Show Gist options
  • Select an option

  • Save mturjak/7271324 to your computer and use it in GitHub Desktop.

Select an option

Save mturjak/7271324 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$max: 100;
$step: 3;
@for $i from 1 through ceil($max/$step) {
$value: ($i - 1)*$step + 1;
.test_#{$value} { index: $i; value: $value; }
}
.test_1 {
index: 1;
value: 1;
}
.test_4 {
index: 2;
value: 4;
}
.test_7 {
index: 3;
value: 7;
}
.test_10 {
index: 4;
value: 10;
}
.test_13 {
index: 5;
value: 13;
}
.test_16 {
index: 6;
value: 16;
}
.test_19 {
index: 7;
value: 19;
}
.test_22 {
index: 8;
value: 22;
}
.test_25 {
index: 9;
value: 25;
}
.test_28 {
index: 10;
value: 28;
}
.test_31 {
index: 11;
value: 31;
}
.test_34 {
index: 12;
value: 34;
}
.test_37 {
index: 13;
value: 37;
}
.test_40 {
index: 14;
value: 40;
}
.test_43 {
index: 15;
value: 43;
}
.test_46 {
index: 16;
value: 46;
}
.test_49 {
index: 17;
value: 49;
}
.test_52 {
index: 18;
value: 52;
}
.test_55 {
index: 19;
value: 55;
}
.test_58 {
index: 20;
value: 58;
}
.test_61 {
index: 21;
value: 61;
}
.test_64 {
index: 22;
value: 64;
}
.test_67 {
index: 23;
value: 67;
}
.test_70 {
index: 24;
value: 70;
}
.test_73 {
index: 25;
value: 73;
}
.test_76 {
index: 26;
value: 76;
}
.test_79 {
index: 27;
value: 79;
}
.test_82 {
index: 28;
value: 82;
}
.test_85 {
index: 29;
value: 85;
}
.test_88 {
index: 30;
value: 88;
}
.test_91 {
index: 31;
value: 91;
}
.test_94 {
index: 32;
value: 94;
}
.test_97 {
index: 33;
value: 97;
}
.test_100 {
index: 34;
value: 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment