Skip to content

Instantly share code, notes, and snippets.

@airen
Created August 6, 2014 09:03
Show Gist options
  • Save airen/4d862505eed2f4b41ea9 to your computer and use it in GitHub Desktop.
Save airen/4d862505eed2f4b41ea9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
@for $i from 1 to 30 {
.itemLink_#{$i}{
@if $i < 15 {
//$linkH: -76px;
$j: $i - 1;
background: url(../images/txt_img_bg.png) -75 * $j * 1px 0 no-repeat;
} @else {
$j: $i - 16;
background: url(../images/txt_img_bg.png) -75 * $j * 1px -76px no-repeat;
}
}
}
.itemLink_1 {
background: url(../images/txt_img_bg.png) 0px 0 no-repeat;
}
.itemLink_2 {
background: url(../images/txt_img_bg.png) -75px 0 no-repeat;
}
.itemLink_3 {
background: url(../images/txt_img_bg.png) -150px 0 no-repeat;
}
.itemLink_4 {
background: url(../images/txt_img_bg.png) -225px 0 no-repeat;
}
.itemLink_5 {
background: url(../images/txt_img_bg.png) -300px 0 no-repeat;
}
.itemLink_6 {
background: url(../images/txt_img_bg.png) -375px 0 no-repeat;
}
.itemLink_7 {
background: url(../images/txt_img_bg.png) -450px 0 no-repeat;
}
.itemLink_8 {
background: url(../images/txt_img_bg.png) -525px 0 no-repeat;
}
.itemLink_9 {
background: url(../images/txt_img_bg.png) -600px 0 no-repeat;
}
.itemLink_10 {
background: url(../images/txt_img_bg.png) -675px 0 no-repeat;
}
.itemLink_11 {
background: url(../images/txt_img_bg.png) -750px 0 no-repeat;
}
.itemLink_12 {
background: url(../images/txt_img_bg.png) -825px 0 no-repeat;
}
.itemLink_13 {
background: url(../images/txt_img_bg.png) -900px 0 no-repeat;
}
.itemLink_14 {
background: url(../images/txt_img_bg.png) -975px 0 no-repeat;
}
.itemLink_15 {
background: url(../images/txt_img_bg.png) 75px -76px no-repeat;
}
.itemLink_16 {
background: url(../images/txt_img_bg.png) 0px -76px no-repeat;
}
.itemLink_17 {
background: url(../images/txt_img_bg.png) -75px -76px no-repeat;
}
.itemLink_18 {
background: url(../images/txt_img_bg.png) -150px -76px no-repeat;
}
.itemLink_19 {
background: url(../images/txt_img_bg.png) -225px -76px no-repeat;
}
.itemLink_20 {
background: url(../images/txt_img_bg.png) -300px -76px no-repeat;
}
.itemLink_21 {
background: url(../images/txt_img_bg.png) -375px -76px no-repeat;
}
.itemLink_22 {
background: url(../images/txt_img_bg.png) -450px -76px no-repeat;
}
.itemLink_23 {
background: url(../images/txt_img_bg.png) -525px -76px no-repeat;
}
.itemLink_24 {
background: url(../images/txt_img_bg.png) -600px -76px no-repeat;
}
.itemLink_25 {
background: url(../images/txt_img_bg.png) -675px -76px no-repeat;
}
.itemLink_26 {
background: url(../images/txt_img_bg.png) -750px -76px no-repeat;
}
.itemLink_27 {
background: url(../images/txt_img_bg.png) -825px -76px no-repeat;
}
.itemLink_28 {
background: url(../images/txt_img_bg.png) -900px -76px no-repeat;
}
.itemLink_29 {
background: url(../images/txt_img_bg.png) -975px -76px no-repeat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment