Created
July 23, 2014 20:47
-
-
Save rattlion/299523e5ae214d26c041 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "compass"; | |
@import "compass/reset"; | |
@import "icon/*.png"; | |
@include all-icon-sprites; | |
@import "logo/*.png"; | |
@include all-logo-sprites; | |
@import "pencil/*.png"; | |
@include all-pencil-sprites; | |
.icon-sprite, | |
.logo-sprite, | |
.pencil-sprite { | |
display: block; | |
text-indent: -99999em; | |
} | |
$icons: 'clock', 'people', 'truck'; | |
@for $i from 1 through length($icons) { | |
.icon-#{nth($icons, $i)} { | |
$image: "#{nth($icons, $i)}"; | |
height: icon-sprite-height($image); | |
width: icon-sprite-width($image); | |
} | |
} | |
$logos: 'large', 'small'; | |
@for $i from 1 through length($logos) { | |
.logo-#{nth($logos, $i)} { | |
$image: "#{nth($logos, $i)}"; | |
height: logo-sprite-height($image); | |
width: logo-sprite-width($image); | |
} | |
} | |
$pencils: 'large-button', 'button'; | |
@for $i from 1 through length($pencils) { | |
.pencil-#{nth($pencils, $i)} { | |
$image: "#{nth($pencils, $i)}"; | |
height: pencil-sprite-height($image); | |
width: pencil-sprite-width($image); | |
} | |
} |
Author
rattlion
commented
Jul 23, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment