compass
https://github.com/chriseppstein/compass
CSS
Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
Compass::SassExtensions::Functions::Sprites#sprite_map
Creates a Compass::SassExtensions::Sprites::SpriteMap object. A sprite map, when used in a property is the same
as calling sprite-url. So the following background properties are equivalent:
$icons: sprite-map("icons/*.png");
background: sprite-url($icons) no-repeat;
background: $icons no-repeat;
The sprite map object will generate the sprite map image, if necessary,
the first time it is converted to a url. Simply constructing it has no side-effects.Edit
git clone [email protected]:chriseppstein/compass.git
cd compass
open cli/lib/compass/sass_extensions/functions/sprites.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Compass--SassExtensions--Functions--Sprites-sprite_map-for-pr
# Commit to gitgit add cli/lib/compass/sass_extensions/functions/sprites.rbgit commit -m "better docs for Compass::SassExtensions::Functions::Sprites#sprite_map"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Compass--SassExtensions--Functions--Sprites-sprite_map-for-pr
hub pull-request
# Celebrate!