Giter Club home page Giter Club logo

postcss-cyspriter's People

Contributors

hitmands avatar lughino avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

postcss-cyspriter's Issues

Options manager

Create a system that manages the options in a hierarchical way:

  • selector
  • plugin configuration
  • default configuration

Eg:

if a determinate option is set on the selector, use it, otherwise check in plugin configuration, finally use the default configuration.

Image name with space

If image name have space character break a css.
Create a regex for replace space.

helpers for including sprites in other css classes

Could be nice to have a method that allows the ability to include a sprite in other selectors.

Considering a simple case:

.my-class {
   cy-include: 'icons-foo';
}

A nice result could be:

.icons,
.icons-foo,
.my-class {
   ...
}

Sprite Layout

Provide a simple system that allows different layouts

Refactoring CYSprite

  • update model with all properties needed by the spriter to work
  • parse file path
  • make a sanitizer for cleaning the input rule

Improve retina support

At present support to the retina performs only the creation of sprites retina compatible.

Create a system that gives the possibility to create two different sprites for a retina and a normal, and create the correct media queries.

Media queries example:

/* CSS for devices with normal screens */
.icons {
    background-image: url(icon-sprite.png);
    background-repeat: no-repeat;
}

/* CSS for high-resolution devices */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
    .icons {
        background-image: url(icon-sprite-2x.png);
        background-size: 200px 100px;
        background-repeat: no-repeat;
    }
}

Documentation

Create basic documentation in order to give to the users the ability to implement and test the pre-release

Remove q

Remove q in favor of bluebird.

Inline base64 sprites

We should add the ability to save the spritemap directly in the stylesheet (base64?) instead of the fs.

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.