Skip to content

Instantly share code, notes, and snippets.

@scottdavis
Created December 14, 2011 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottdavis/1478564 to your computer and use it in GitHub Desktop.
Save scottdavis/1478564 to your computer and use it in GitHub Desktop.
@mixin slider-nav($sprite, $total-width) {
position:absolute;
$sprite-height:slider-sprite-height($sprite);
$sprite-width:slider-sprite-width($sprite);
$margin:($base-line-height/2) - ($sprite-height/2);
margin-top: $margin;
margin-bottom: $margin;
left: (($total-width - $sprite-width) / 2);
@include slider-sprite($sprite, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment