#sprite #compass #css #url #image #page #web

compass-sprite

Implement sprites for CSS usage on a web page

3 releases

Uses old Rust 2015

0.0.3 Apr 19, 2015
0.0.2 Apr 19, 2015
0.0.1 Apr 18, 2015

#9 in #compass

MIT license

8KB
136 lines

sprite

Work in progress towards implementing Compass' sprite helpers: http://compass-style.org/reference/compass/helpers/sprites/

[Travis build status:] (https://travis-ci.org/compass-rs/sprite) ![Travis build status] (https://travis-ci.org/compass-rs/sprite.svg?branch=master)

Documentation: http://compass-rs.github.io/sprite/

This is work in progress. To test that it works run the examples

cargo run --example build-sprite data/my-icons/

Running `target/debug/examples/build-sprite data/my-icons/`

.edit3 {
  background-url: url('/imagesbuild-sprite-out/sprite.png') -64px 0 no-repeat;
 }

.edit1 {
  background-url: url('/imagesbuild-sprite-out/sprite.png') 0 0 no-repeat;
 }

.edit2 {
  background-url: url('/imagesbuild-sprite-out/sprite.png') -32px 0 no-repeat;
 }

lib.rs:

This project provides an implementation of the Compass sprite helpers reference

For image processing we use the image code library which is part of Piston.

Dependencies

~9.5MB
~27K SLoC