Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created January 16, 2011 19:50
Show Gist options
  • Save chriseppstein/782084 to your computer and use it in GitHub Desktop.
Save chriseppstein/782084 to your computer and use it in GitHub Desktop.
@import "compass/utilities/sprites/base";
$toolbar-icon-sprites: sprite-map("icons/toolbar_*.png");
$sidebar-icon-sprites: sprite-map("icons/sidebar_*.png");
.toolbar-icon { background: $toolbar-icon-sprites; }
.sidebar-icon { background: $sidebar-icon-sprites; }
#toolbar {
.favorite {
@extend .toolbar-icon;
@include sprite($toolbar-icon-sprites, "toolbar_favorite");
}
}
#sidebar {
.favorite {
@extend .sidebar-icon;
@include sprite($sidebar-icon-sprites, "sidebar_favorite")
}
}
@chriseppstein
Copy link
Author

I don't know why you would do this instead of creating two folders, but you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment