peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Additions #7

Closed denis-g closed 13 years ago

denis-g commented 13 years ago

Hello. I like your script, and new features. This is cool 8) I have a couple of additions to your script.

  1. Minify function ignores ' !important' value - not delete first space. Need add new rule in $replacements function

    '#\s*!#' => '!'
  2. Macros script need extended
    • csscrush_Opacity

      You can use short line (IE5.5+)

      filter: progid:DXImageTransform.Microsoft.Alpha(Opacity={$msval});

      change to

      filter:alpha(opacity={$msval});
    • csscrush_Border_Radius

      Add webkit prefix for old Safari support

      return "-webkit-{$prop}:{$val};-moz-{$prop}:{$val};{$prop}:{$val}";
    • csscrush_Transition

      Add IE10 support

      return "-webkit-{$prop}:{$val};-moz-{$prop}:{$val};-ms-{$prop}:{$val};-o-{$prop}:{$val};{$prop}:{$val}";
    • csscrush_Hyphens

      Also add this new function. info. Or not... this is not popular :)

    • csscrush_Background_Image

      Need add IE10 support. Also add old Safari support. For example use this tools.

      Add IE6-IE9 'filter' properties - spoils text rendering not critical. Realy.

      And add horizontal orientation support.

  3. You can make reference to css-file and a link to the script file? Without any additional file was created, such as Conditional-CSS script.
peteboere commented 13 years ago

Taken into account, added the minification for !important