Skip to content

Commit

Permalink
adding description
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Weiss committed Mar 28, 2013
1 parent df7a365 commit f761f91
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion mixins.css.sass
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@
// * @file mxixins // * @file mxixins
// * @description usage for all sprites // * @description usage for all sprites
// **************************************************************** // ****************************************************************
/****************************************************************/
/* @description wrapper to get the image from the spritemap
/* @param {string} - image name
/* @param {integer} - x axis
/* @param {integer} - y axis
/****************************************************************/
=icons-sprite($name, $x: 0, $y: 0) =icons-sprite($name, $x: 0, $y: 0)
+retina-sprite($name, $x, $y, $sprites, $sprites2x) +retina-sprite($name, $x, $y, $sprites, $sprites2x)



/****************************************************************/
/* @description gets the file from the sprite map that we defined
/* in the sprites and switch between retina and normal
/* @param {string} - image name
/* @param {map} - sprite map
/* @param {map} - retina sprite map
/* @param {bool} - set the dimensions, default true
/* @param {integer} - set the padding between the images
/****************************************************************/
=retina-sprite($name, $x, $y, $sprites, $sprites2x, $dimensions: true, $padding: 0) =retina-sprite($name, $x, $y, $sprites, $sprites2x, $dimensions: true, $padding: 0)
@if $dimensions == true @if $dimensions == true
+sprite-dimensions($sprites, $name) +sprite-dimensions($sprites, $name)
Expand Down

0 comments on commit f761f91

Please sign in to comment.