Comments (5)
ping @papandreou
Just noticed you're not watching this repository :)
from assetgraph-sprite.
Hmm, could you post a complete example? It's happening because the compiled output of multiple .sass files end up including multiple occurrences of the same CSS rule with -sprite-selector-for-group: mySpriteGroup;
?
I guess an easy fix would be to only emit that warning if there are multiple incompatible definitions, and somehow make sure that the CSS rules are merged together otherwise.
Just noticed you're not watching this repository :)
Whoopsie. Fixed :)
from assetgraph-sprite.
exactly. Think of the spriting stylesheet as a sass partial that get included in multiple output css files, which I try to model in the same graph.
There are both duplicate -sprite-selector-for-group
-properties and implicit sprite declarations using the sprite=
url parametres.
I was wondering if I could just iterate over my css assets and call the spriting transform asynchronously for each of them in order to avoid the clash.
from assetgraph-sprite.
Would still be nice to see a complete, boiled down example, including the expected output. At least it would make it easier for me to picture exactly what's going on.
It sounds like you intend for all the images to be added to different sprites? Maybe it could be handled with a sass variable that holds the sprite group name, and then put that as the value of the sprite
parameter and -sprite-selector-for-group
value?
from assetgraph-sprite.
I think I reduced the error message as good as possible. Closing
from assetgraph-sprite.
Related Issues (10)
- Sprite instructions don't get removed from the CSS HOT 2
- Investigate why the spriting isn't always deterministic
- Paddings and offsets HOT 1
- spriting fails HOT 2
- Different bin packing algorithm
- canvas-heroku HOT 1
- Retina images (pixel density) HOT 11
- Emit warning on non-supported background-size
- Support percentage dimensions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assetgraph-sprite.