Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding description

  • Loading branch information...
commit f761f916fc201bddad1517490ae92cc944845d6b 1 parent df7a365
@this-chris authored
Showing with 16 additions and 1 deletion.
  1. +16 −1 mixins.css.sass
View
17 mixins.css.sass
@@ -2,10 +2,25 @@
// * @file mxixins
// * @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)
+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)
@if $dimensions == true
+sprite-dimensions($sprites, $name)
Please sign in to comment.
Something went wrong with that request. Please try again.