WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

CSS Crush for WordPress

Integrates an extensible CSS preprocessor for WordPress: upload, activate, and you're done. No further configuration needed.

CSS allows you to do lots of things, but some features are missing to developers. What about variables, constants, and general faster syntax? Normal CSS can not do that, that is why you have preprocessors, like CSS Crush.

CSS Crush for WordPress allows the use of variables in CSS files.

This plugin will automaticly process all your theme's stylesheets for you! No configuration needed. However, you can customize it from the Settings page.

By default your stylesheet will be minified, cached and have it's vendor prefixes automatically generated.

examples of generated prefixes

/* Before */
div { background: red linear-gradient( left, red, white ); }

/* After */
div {
  background: red -webkit-linear-gradient( left, red, white );
  background: red -moz-linear-gradient( left, red, white );
  background: red -o-linear-gradient( left, red, white );
  background: red linear-gradient( left, red, white );
}

example with the use of variables

/* Defining variables */
@define {
    brand-blue: #C1D9F5;    
    helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;    
}

ul, p {
    font-family: $( helvetica );
    color: $( brand-blue );
}

More Features

  • Declare variables in your CSS
  • Direct @import
  • A small collection of custom math functions are built-in
  • Block nesting
  • The experimental :any pseudo class is supported

Current CSS Crush version: 1.6.1

For a full list of features please visit http://the-echoplex.net/csscrush/.

Related Links:

Translations

If you like to contribute a language, please send them to info@codepress.nl.

Requires: 3.1 or higher
Compatible up to: 3.4.2
Last Updated: 2012-8-30
Downloads: 2,240

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,2,2