code-y / postcss-cyspriter Goto Github PK
View Code? Open in Web Editor NEWPostCSS Plugin for Working With Sprites
License: MIT License
PostCSS Plugin for Working With Sprites
License: MIT License
Give to the user the ability to set relatives and wildcard path in configuration.
Create a system that manages the options in a hierarchical way:
Eg:
if a determinate option is set on the selector, use it, otherwise check in plugin configuration, finally use the default configuration.
Implement caching system that goes only to create sprites that have changed.
After careful analysis no longer have the option to put the retina in the global options!
If image name have space character break a css.
Create a regex for replace space.
Do not pass system files (.DS_Store and others) to spritesmith because crashes.
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 {
...
}
Provide a simple system that allows different layouts
Each sprite should recognize magic-selectors such as :hover, :active, :ecc.
Create a sanitizer for replace character (eg. "+") who break the css rule.
from cy-
to cys-
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;
}
}
Create basic documentation in order to give to the users the ability to implement and test the pre-release
Remove q in favor of bluebird.
We should add the ability to save the spritemap directly in the stylesheet (base64?) instead of the fs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.