Created
October 6, 2017 13:54
-
-
Save aderaaij/e540120caa191f0a7dce5ba36a6fa7de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin svg(id, viewbox, className) | |
if viewbox | |
svg(viewbox='#{viewbox}', class!=className) | |
use(xlink:href='assets/img/sprite.svg#' + id) | |
else | |
svg(viewbox='0 0 50 50', class!=className) | |
use(xlink:href='assets/img/sprite.svg#' + id) | |
//- Usage: +svg('symbolID', 'viewbox parameters', 'classnames') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment