Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose sprite map width and height #21

Merged
merged 1 commit into from
Jun 9, 2016
Merged

Conversation

agrobbin
Copy link
Owner

If a user doesn't provide an image name when using spritely-height and spritely-width, we now return the whole sprite maps' height and width, respectively.

For example, if a sprite map's outer width and height are 100px and 200px:

.test {
  width: spritely-width('test');
  height: spritely-height('test');
}

This CSS will be returned:

.test {
  width: 100px;
  height: 200px;
}

Closes #20.

If a user doesn't provide an image name when using `spritely-height` and `spritely-width`, we now return the whole sprite maps' `height` and `width`, respectively.
@agrobbin agrobbin mentioned this pull request May 30, 2016
@agrobbin agrobbin merged commit 39755ce into master Jun 9, 2016
@agrobbin agrobbin deleted the sprite-map-width-height branch June 9, 2016 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant