blob: a1f6bc0840ce0cda8b8288169b8532b563759b13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
@option compress:no;
$images: sprite-map("squares/*.png", $cache-buster: false);
.mod {
background: $images;
&.ten-by-ten {
$file: sprite-file($images, "ten-by-ten");
width: image-width($file);
height: image-height($file);
background-position: sprite-position($images, "ten-by-ten");
}
&.twenty-by-twenty {
$file: sprite-file($images, "twenty-by-twenty");
width: image-width($file);
height: image-height($file);
background-position: sprite-position($images, "twenty-by-twenty");
}
}
|