W
W
Web Lizard2016-04-12 14:38:37
Sass
Web Lizard, 2016-04-12 14:38:37

How to create 2 or more sprites in SASS (compass)?

At the moment I connect the sprites in this way

@import "compass/utilities/sprites";
$icons-spacing: 20px;
$icons-sprite-dimensions: true; 
$icons-layout:smart;
@import "icons/*.png";
@include all-icons-sprites;

As a result, I have the .icons-* class through which you can insert pictures.
But is it possible to create another sprite? And then the current sprite has somehow grown too much ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Web Lizard, 2016-04-12
@Lizard-108

Seems to have figured it out.
In short, you can stupidly do this:
@import "icons-2/*.png";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question