summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 7fd1fd6..380aba1 100644
--- a/README.rst
+++ b/README.rst
@@ -171,9 +171,10 @@ Examples
background: $icons;
}
@each $icon in sprites($icons) {
+ $icon_file: sprite-file($icons, $icon);
div .$icon {
- width: image-width(sprite-file($icons, $icon));
- height: image-height(sprite-file($icons, $icon));
+ width: image-width($icon_file);
+ height: image-height($icon_file);
background-position: sprite-position($icons, $icon);
}
}