asciidisco / grunt-imagine

Grunt tasks for optimizing & inlining images
MIT License
153 stars 21 forks source link

Add stylus support for sprites #51

Closed alpadev closed 10 years ago

alpadev commented 10 years ago

Adds support for stylus output. Generates placeholders - pretty much like the sass generator.

Sample output:

$icons36_styl
  background: url("../img/icons36_stylus.png") no-repeat

$sprite-test_01
  @extend $icons36_styl
  background-position: 0 0

$sprite-test_02
  @extend $icons36_styl
  background-position: 0 -32px

$sprite-test_03
  @extend $icons36_styl
  background-position: 0 -64px

$sprite-test_04
  @extend $icons36_styl
  background-position: 0 -96px

See: https://github.com/asciidisco/grunt-imagine/issues/50

LaurentGoderre commented 10 years ago

:+1:

alpadev commented 10 years ago

Thx Laurent :)