cssprefixer 1.4.1

A tool that rewrites your CSS files, adding vendor-prefixed versions of CSS3 rules.
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, 0:08 GMT
price:
FREE!
developed by:
MyFreeWeb
homepage:
github.com
license type:
The Apache License 2.0 
category:
ROOT \ Internet \ HTTP (WWW)
cssprefixer
Download Button

In a hurry? Add it to your Download Basket!

user rating 1

5.0/5
 

0/5

Rate it!

291 DOWNLOADS

Add your review!

SUBMIT