Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Notifications You must be signed in to change notification settings

coderm/cssprefixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

66 Commits

Repository files navigation

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

$ 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)

With Django or Flask

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /