npm.io
6.0.5 • Published 9 years ago

stylecow-plugin-prefixes

Licence
MIT
Version
6.0.5
Deps
1
Vulns
0
Weekly
0

stylecow plugin prefixes

Build Status

Stylecow plugin to add automatically all vendor prefixes needed. It uses the caniuse database to get the data about the browsers support.

You write:

.foo {
    user-select: none;
    hyphens: auto;
    transition: background-color 2s;
}

And stylecow converts to:

.foo {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    -moz-transition: background-color 2s;
    -webkit-transition: background-color 2s;
    -o-transition: background-color 2s;
    transition: background-color 2s;
}

More demos in the tests folder