cssprefixer 1.4.1

A tool that rewrites your CSS files, adding vendor-prefixed versions of CSS3 rules.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
The Apache License 2.0 
USER RATING:
5.0/5 1
DEVELOPED BY:
MyFreeWeb
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
cssprefixer is a tool that rewrites your CSS files, adding vendor-prefixed versions of (popular) CSS3 rules. It also can combine and minify your stylesheets. Keep your styles clean!

For example, this

#wrapper {
 border-radius: 1em;
 transform: rotate(45deg)
}


becomes this:

#wrapper {
 border-radius: 1em;
 transform: rotate(45deg);
 -webkit-border-radius: 1em;
 -moz-border-radius: 1em;
 -webkit-transform: rotate(45deg);
 -moz-transform: rotate(45deg);
 -o-transform: rotate(45deg)
}


Requires cssutils.

How to install

easy_install cssutils #or 'pip install cssutils' if you have pip
sudo python setup.py install


How to use


From console

Like this: cssprefixer my1.css my2.css --minify > result.css

From Python

import cssprefixer
cssprefixer.process(open('my.css').read(), debug=False, minify=True)


Django stuff (filters for django-assets and django-media-bundler) coming soon.

Last updated on May 12th, 2011

requirements

#CSS3 rules #CSS rewriter #CSS #CSS3 #rules #fixer

Add your review!

SUBMIT