Giter Site home page Giter Site logo

Comments (5)

Munter avatar Munter commented on June 22, 2024

ping @papandreou

Just noticed you're not watching this repository :)

from assetgraph-sprite.

papandreou avatar papandreou commented on June 22, 2024

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.

Munter avatar Munter commented on June 22, 2024

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.

papandreou avatar papandreou commented on June 22, 2024

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.

Munter avatar Munter commented on June 22, 2024

I think I reduced the error message as good as possible. Closing

from assetgraph-sprite.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.