Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Merge pull request #35 from denis-sokolov/master

cursor: zoom-in and cursor: zoom-out
latest commit 2838e28403
Greg V authored
Octocat-spinner-32 cssprefixer cursor: zoom-in|zoom-out May 18, 2013
Octocat-spinner-32 scripts Fix encoding error. February 04, 2012
Octocat-spinner-32 .gitignore -o-border-image January 11, 2011
Octocat-spinner-32 README.md more readme stuff August 14, 2012
Octocat-spinner-32 setup.py pep8 October 30, 2011
Octocat-spinner-32 tests.py cursor: zoom-in|zoom-out May 18, 2013
README.md

CSSPrefixer

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!

It supports many CSS3 stuff including keyframe animations, Flexbox and gradients.

For example, this

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

becomes this:

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

Requires cssutils.

Contributors

How to install

From PyPI

$ sudo pip install cssprefixer

from git

$ git clone git://github.com/myfreeweb/cssprefixer.git
$ cd cssprefixer
$ sudo pip install cssutils
$ 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)

With Django or Flask

or any other Python web framework — latest git version of webassets has a filter for cssprefixer.

Something went wrong with that request. Please try again.